satamv.c requires PCI port I/O which isn't currently available on anything other than x86/x86_64. Generate the same compiler error as other programmers eg. rayer_spi.c, which is where I copied the code from.

Signed-off-by: Andrew Morgan <[email protected]>

--

Andrew.

Index: satamv.c
===================================================================
--- satamv.c	(revision 1357)
+++ satamv.c	(working copy)
@@ -19,6 +19,7 @@
  */
 
 /* Datasheets are not public (yet?) */
+#if defined(__i386__) || defined(__x86_64__)
 
 #include <stdlib.h>
 #include "flash.h"
@@ -182,3 +183,6 @@
 {
 	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

Reply via email to