Author: hailfinger Date: Tue Jul 26 00:07:05 2011 New Revision: 1388 URL: http://flashrom.org/trac/flashrom/changeset/1388
Log: 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 <[email protected]> Acked-by: Carl-Daniel Hailfinger <[email protected]> Modified: trunk/atahpt.c trunk/satamv.c Modified: trunk/atahpt.c ============================================================================== --- trunk/atahpt.c Mon Jul 25 23:12:57 2011 (r1387) +++ trunk/atahpt.c Tue Jul 26 00:07:05 2011 (r1388) @@ -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 @@ 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 Modified: trunk/satamv.c ============================================================================== --- trunk/satamv.c Mon Jul 25 23:12:57 2011 (r1387) +++ trunk/satamv.c Tue Jul 26 00:07:05 2011 (r1388) @@ -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 @@ { return satamv_indirect_chip_readb(addr); } + +#else +#error PCI port I/O access is not supported on this architecture yet. +#endif _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
