1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

Allow compilation on architectures without direct hardware access primitives

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).

Corresponding to flashrom svn r1116.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Carl-Daniel Hailfinger 2010-07-29 13:17:37 +00:00
parent fd7075ae75
commit 41bea03aa5

View File

@ -160,6 +160,7 @@ cpu_to_be(64)
#define le_to_cpu32 cpu_to_le32 #define le_to_cpu32 cpu_to_le32
#define le_to_cpu64 cpu_to_le64 #define le_to_cpu64 cpu_to_le64
#if NEED_PCI == 1
#if defined (__i386__) || defined (__x86_64__) #if defined (__i386__) || defined (__x86_64__)
#define __FLASHROM_HAVE_OUTB__ 1 #define __FLASHROM_HAVE_OUTB__ 1
@ -319,6 +320,7 @@ int freebsd_wrmsr(int addr, msr_t msr);
#error Unknown architecture, please check if it supports PCI port IO. #error Unknown architecture, please check if it supports PCI port IO.
#endif
#endif #endif
#endif /* !__HWACCESS_H__ */ #endif /* !__HWACCESS_H__ */