summaryrefslogtreecommitdiff
path: root/hwaccess.h
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-29 13:17:37 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-07-29 13:17:37 +0000
commit4938b961c57c8968d18b735a4e1c1c291d795fbc (patch)
treebc6156de503d10205b42e8bece184fd354b6a3bf /hwaccess.h
parentd5f310ecab72c18c9bded903d8b8f6914e62ba2b (diff)
downloadflashrom-4938b961c57c8968d18b735a4e1c1c291d795fbc.tar.gz
Allow compilation on all architectures even if direct hardware access
primitives are missing, if all you need is userspace access to the serial port (serprog, buspirate) or no access at all (dummy). Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1116 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'hwaccess.h')
-rw-r--r--hwaccess.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwaccess.h b/hwaccess.h
index a230fa1..2d17326 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -160,6 +160,7 @@ cpu_to_be(64)
#define le_to_cpu32 cpu_to_le32
#define le_to_cpu64 cpu_to_le64
+#if NEED_PCI == 1
#if defined (__i386__) || defined (__x86_64__)
#define __FLASHROM_HAVE_OUTB__ 1
@@ -320,5 +321,6 @@ int freebsd_wrmsr(int addr, msr_t msr);
#error Unknown architecture, please check if it supports PCI port IO.
#endif
+#endif
#endif /* !__HWACCESS_H__ */