diff options
author | Andrew Morgan <ziltro@ziltro.com> | 2011-07-25 22:07:05 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-07-25 22:07:05 +0000 |
commit | a07438302eac1eb8eb6831366d2e36dd14489f4b (patch) | |
tree | a099eaaf6f37612952110f627ad51d5fc5a1f38f /satamv.c | |
parent | 941a273c6956e2ec435c14126e064d7805629349 (diff) | |
download | ast2050-flashrom-a07438302eac1eb8eb6831366d2e36dd14489f4b.zip ast2050-flashrom-a07438302eac1eb8eb6831366d2e36dd14489f4b.tar.gz |
Enforce compile-time errors in satamv and atahp for non-x86 targets
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.
Corresponding to flashrom svn r1388.
Signed-off-by: Andrew Morgan <ziltro@ziltro.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'satamv.c')
-rw-r--r-- | satamv.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |