diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-07-25 22:07:05 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-07-25 22:07:05 +0000 |
commit | bdf32a50df23b9d91e6e196a9add429af457e841 (patch) | |
tree | a099eaaf6f37612952110f627ad51d5fc5a1f38f | |
parent | a0ae4d5e82786c9a67703da580e973c4d30ee7e0 (diff) | |
download | flashrom-bdf32a50df23b9d91e6e196a9add429af457e841.tar.gz |
satamv and atahpt require PCI port I/O which isn't currently supported
on any architecture except x86/x86_64.
Generate the same compiler error as other programmer drivers.
Signed-off-by: Andrew Morgan <ziltro@ziltro.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1388 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | atahpt.c | 6 | ||||
-rw-r--r-- | satamv.c | 5 |
2 files changed, 11 insertions, 0 deletions
@@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if defined(__i386__) || defined(__x86_64__) + #include <stdlib.h> #include <string.h> #include "flash.h" @@ -77,3 +79,7 @@ uint8_t atahpt_chip_readb(const chipaddr addr) OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR); return INB(io_base_addr + BIOS_ROM_DATA); } + +#else +#error PCI port I/O access is not supported on this architecture yet. +#endif @@ -19,6 +19,7 @@ */ /* Datasheets are not public (yet?) */ +#if defined(__i386__) || defined(__x86_64__) #include <stdlib.h> #include "flash.h" @@ -182,3 +183,7 @@ uint8_t satamv_chip_readb(const chipaddr addr) { return satamv_indirect_chip_readb(addr); } + +#else +#error PCI port I/O access is not supported on this architecture yet. +#endif |