aboutsummaryrefslogtreecommitdiffstats
path: root/atahpt.c
diff options
context:
space:
mode:
authorAndrew Morgan <ziltro@ziltro.com>2011-07-25 22:07:05 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-07-25 22:07:05 +0000
commita07438302eac1eb8eb6831366d2e36dd14489f4b (patch)
treea099eaaf6f37612952110f627ad51d5fc5a1f38f /atahpt.c
parent941a273c6956e2ec435c14126e064d7805629349 (diff)
downloadflashrom-a07438302eac1eb8eb6831366d2e36dd14489f4b.tar.gz
flashrom-a07438302eac1eb8eb6831366d2e36dd14489f4b.tar.bz2
flashrom-a07438302eac1eb8eb6831366d2e36dd14489f4b.zip
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 'atahpt.c')
-rw-r--r--atahpt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/atahpt.c b/atahpt.c
index 2bf4a114..de888b0c 100644
--- a/atahpt.c
+++ b/atahpt.c
@@ -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