path: root/chipset_enable.c
diff options
authorCarl-Daniel Hailfinger <>2010-07-27 22:03:46 +0000
committerCarl-Daniel Hailfinger <>2010-07-27 22:03:46 +0000
commit1d3a2fefbc636fb569bd1d018fb97b1b17c08e99 (patch)
treea384be3a9c9c890870117baf435a0312ecfd4a78 /chipset_enable.c
parent695fb5d0ac60c399fac4bac8595bfb8a0efdb30f (diff)
Convert MMIO accesses of non-internal PCI-based programmers to be endian-agnostic
Convert all PCI-based external programmers to use special little-endian accessors for all MMIO regions of PCI devices. This patch does _not_ touch the internal programmer (which is PCI-based as well). Huge thanks go to Misha Manulis who worked with me to create a first version of this patch for the satasii programmer based on modification of generic code. Huge thanks also go to Segher Boessenkool for suggesting the pci_mmio_ prefix for the abstraction layer. NOTE to package maintainers: With this patch, compilation and usage of flashrom should be safe on x86, x86_64, MIPS (little and big endian) and PowerPC (big endian). The internal programmer is disabled on non-x86/x86_64 (but it compiles). The atahpt, nic3com, nicnatsemi, nicrealtek and rayer_spi can not be compiled on non-x86/x86_64 because port space I/O is not (yet) supported. Please compile with default settings on x86/x86_64 and with the following settings on all other architectures: make CONFIG_NIC3COM=no CONFIG_NICREALTEK=no CONFIG_NICNATSEMI=no CONFIG_RAYER_SPI=no Corresponding to flashrom svn r1111. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Misha Manulis <>
Diffstat (limited to 'chipset_enable.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index 8d64e0c..6254d2f 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -33,10 +33,10 @@
#include <unistd.h>
#include "flash.h"
-#if defined(__i386__) || defined(__x86_64__)
#define NOT_DONE_YET 1
+#if defined(__i386__) || defined(__x86_64__)
static int enable_flash_ali_m1533(struct pci_dev *dev, const char *name)
uint8_t tmp;
OpenPOWER on IntegriCloud