summaryrefslogtreecommitdiffstats
path: root/platform.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2016-02-25 20:10:26 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2016-02-25 20:10:26 +0000
commit8d0d53fdd017897b698584326229ebd287708c2f (patch)
treec2072492ba8d691ef6cf5aca53da47478ac7e478 /platform.h
parentfdec7475bf9e321a3729d5ba2100e30e110870ea (diff)
downloadflashrom-8d0d53fdd017897b698584326229ebd287708c2f.tar.gz
flashrom-8d0d53fdd017897b698584326229ebd287708c2f.tar.bz2
flashrom-8d0d53fdd017897b698584326229ebd287708c2f.zip
Partial architecture support for alpha hppa m68k sh s390
Only hardware not needing raw access (PCI, memory, port I/O) is supported. Corresponding to flashrom svn r1943. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'platform.h')
-rw-r--r--platform.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/platform.h b/platform.h
index 9cde05409..c5a52ef89 100644
--- a/platform.h
+++ b/platform.h
@@ -48,9 +48,24 @@
#elif defined (__sparc__) || defined (__sparc)
#define __FLASHROM_ARCH__ "sparc"
#define IS_SPARC 1
+#elif defined (__alpha__)
+ #define __FLASHROM_ARCH__ "alpha"
+ #define IS_ALPHA 1
+#elif defined (__hppa__) || defined (__hppa)
+ #define __FLASHROM_ARCH__ "hppa"
+ #define IS_HPPA 1
+#elif defined (__m68k__)
+ #define __FLASHROM_ARCH__ "m68k"
+ #define IS_M68K 1
+#elif defined (__sh__)
+ #define __FLASHROM_ARCH__ "sh"
+ #define IS_SH 1
+#elif defined(__s390__) || defined(__s390x__) || defined(__zarch__)
+ #define __FLASHROM_ARCH__ "s390"
+ #define IS_S390 1
#endif
-#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC)
+#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_SH || IS_S390)
#error Unknown architecture
#endif