075c56f
From 87752ba22d3dbeedb93e2f8a299bf6377c6ba491 Mon Sep 17 00:00:00 2001
a1e5088
From: Peter Lemenkov <lemenkov@gmail.com>
a1e5088
Date: Sat, 18 Sep 2010 09:40:01 +0400
fbe6f19
Subject: [PATCH 4/7] Kill some x86-related ifdefs in code - this is now
4a6317d
 controlled via autotools
a1e5088
a1e5088
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
a1e5088
---
075c56f
 amd_imc.c         | 4 ----
5977150
 atahpt.c          | 6 ------
5977150
 ich_descriptors.c | 3 ---
5977150
 ich_descriptors.h | 2 --
5977150
 ichspi.c          | 4 ----
5977150
 it85spi.c         | 4 ----
5977150
 it87spi.c         | 4 ----
5977150
 mcp6x_spi.c       | 4 ----
5977150
 nic3com.c         | 6 ------
5977150
 nicnatsemi.c      | 6 ------
5977150
 nicrealtek.c      | 6 ------
5977150
 rayer_spi.c       | 5 -----
5977150
 satamv.c          | 5 -----
5977150
 sb600spi.c        | 4 ----
5977150
 wbsio_spi.c       | 4 ----
075c56f
 15 files changed, 67 deletions(-)
a1e5088
075c56f
diff --git a/amd_imc.c b/amd_imc.c
075c56f
index b05390c..9aabe3f 100644
075c56f
--- a/amd_imc.c
075c56f
+++ b/amd_imc.c
075c56f
@@ -19,8 +19,6 @@
075c56f
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
075c56f
  */
075c56f
 
075c56f
-#if defined(__i386__) || defined(__x86_64__)
075c56f
-
075c56f
 #include "flash.h"
075c56f
 #include "programmer.h"
075c56f
 #include "hwaccess.h"
075c56f
@@ -155,5 +153,3 @@ int amd_imc_shutdown(struct pci_dev *dev)
075c56f
 
075c56f
 	return ret;
075c56f
 }
075c56f
-
075c56f
-#endif
2026e4b
diff --git a/atahpt.c b/atahpt.c
e626e6d
index f8be8c4..aa98711 100644
2026e4b
--- a/atahpt.c
2026e4b
+++ b/atahpt.c
2026e4b
@@ -18,8 +18,6 @@
2026e4b
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
2026e4b
  */
2026e4b
 
2026e4b
-#if defined(__i386__) || defined(__x86_64__)
2026e4b
-
2026e4b
 #include <stdlib.h>
2026e4b
 #include <string.h>
2026e4b
 #include "flash.h"
e626e6d
@@ -93,7 +91,3 @@ static uint8_t atahpt_chip_readb(const struct flashctx *flash,
2026e4b
 	OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR);
2026e4b
 	return INB(io_base_addr + BIOS_ROM_DATA);
2026e4b
 }
2026e4b
-
2026e4b
-#else
2026e4b
-#error PCI port I/O access is not supported on this architecture yet.
2026e4b
-#endif
eab8405
diff --git a/ich_descriptors.c b/ich_descriptors.c
075c56f
index 528717b..b479b6a 100644
eab8405
--- a/ich_descriptors.c
eab8405
+++ b/ich_descriptors.c
eab8405
@@ -19,8 +19,6 @@
eab8405
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
eab8405
  */
eab8405
 
eab8405
-#if defined(__i386__) || defined(__x86_64__)
eab8405
-
eab8405
 #include "ich_descriptors.h"
2aeb792
 
2aeb792
 #ifdef ICH_DESCRIPTORS_FROM_DUMP
5977150
@@ -821,4 +819,3 @@ int read_ich_descriptors_via_fdo(void *spibar, struct ich_descriptors *desc)
eab8405
 	return ICH_RET_OK;
eab8405
 }
2aeb792
 #endif /* ICH_DESCRIPTORS_FROM_DUMP */
eab8405
-#endif /* defined(__i386__) || defined(__x86_64__) */
eab8405
diff --git a/ich_descriptors.h b/ich_descriptors.h
5977150
index 3a44740..3af4fe7 100644
eab8405
--- a/ich_descriptors.h
eab8405
+++ b/ich_descriptors.h
eab8405
@@ -19,7 +19,6 @@
eab8405
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
eab8405
  */
eab8405
 
eab8405
-#if defined(__i386__) || defined(__x86_64__)
eab8405
 #ifndef __ICH_DESCRIPTORS_H__
eab8405
 #define __ICH_DESCRIPTORS_H__ 1
eab8405
 
2aeb792
@@ -572,4 +571,3 @@ int getFCBA_component_density(const struct ich_descriptors *desc, uint8_t idx);
eab8405
 
2aeb792
 #endif /* ICH_DESCRIPTORS_FROM_DUMP */
eab8405
 #endif /* __ICH_DESCRIPTORS_H__ */
eab8405
-#endif /* defined(__i386__) || defined(__x86_64__) */
a1e5088
diff --git a/ichspi.c b/ichspi.c
075c56f
index 4f6a1b1..71a715b 100644
a1e5088
--- a/ichspi.c
a1e5088
+++ b/ichspi.c
2026e4b
@@ -23,8 +23,6 @@
2026e4b
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
a1e5088
 #include <string.h>
eab8405
 #include <stdlib.h>
a1e5088
 #include "flash.h"
075c56f
@@ -1887,5 +1885,3 @@ int via_init_spi(struct pci_dev *dev, uint32_t mmio_base)
a1e5088
 
a1e5088
 	return 0;
a1e5088
 }
a1e5088
-
a1e5088
-#endif
bbd9bbe
diff --git a/it85spi.c b/it85spi.c
5977150
index 0b074eb..ec893da 100644
bbd9bbe
--- a/it85spi.c
bbd9bbe
+++ b/it85spi.c
bbd9bbe
@@ -24,8 +24,6 @@
bbd9bbe
  * Contains the ITE IT85* SPI specific routines
bbd9bbe
  */
bbd9bbe
 
bbd9bbe
-#if defined(__i386__) || defined(__x86_64__)
bbd9bbe
-
bbd9bbe
 #include <string.h>
bbd9bbe
 #include <stdio.h>
bbd9bbe
 #include <stdlib.h>
5977150
@@ -370,5 +368,3 @@ static int it85xx_spi_send_command(struct flashctx *flash,
4a6317d
 
4a6317d
 	return 0;
bbd9bbe
 }
bbd9bbe
-
bbd9bbe
-#endif
a1e5088
diff --git a/it87spi.c b/it87spi.c
e626e6d
index 8e4e0ad..7fcf6d8 100644
a1e5088
--- a/it87spi.c
a1e5088
+++ b/it87spi.c
a1e5088
@@ -23,8 +23,6 @@
a1e5088
  * Contains the ITE IT87* SPI specific routines
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
a1e5088
 #include <string.h>
a1e5088
 #include <stdlib.h>
a1e5088
 #include "flash.h"
e626e6d
@@ -403,5 +401,3 @@ static int it8716f_spi_chip_write_256(struct flashctx *flash, uint8_t *buf,
a1e5088
 
a1e5088
 	return 0;
a1e5088
 }
a1e5088
-
a1e5088
-#endif
a1e5088
diff --git a/mcp6x_spi.c b/mcp6x_spi.c
5977150
index ac40557..b40c3e8 100644
a1e5088
--- a/mcp6x_spi.c
a1e5088
+++ b/mcp6x_spi.c
a1e5088
@@ -23,8 +23,6 @@
a1e5088
  * created by Michael Karcher.
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
a1e5088
 #include <stdlib.h>
a1e5088
 #include <ctype.h>
a1e5088
 #include "flash.h"
5977150
@@ -169,5 +167,3 @@ int mcp6x_spi_init(int want_spi)
a1e5088
 
a1e5088
 	return 0;
a1e5088
 }
a1e5088
-
a1e5088
-#endif
a1e5088
diff --git a/nic3com.c b/nic3com.c
e626e6d
index 8d67b54..27c698c 100644
a1e5088
--- a/nic3com.c
a1e5088
+++ b/nic3com.c
a1e5088
@@ -18,8 +18,6 @@
a1e5088
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
a1e5088
 #include <stdlib.h>
a1e5088
 #include "flash.h"
a1e5088
 #include "programmer.h"
e626e6d
@@ -139,7 +137,3 @@ static uint8_t nic3com_chip_readb(const struct flashctx *flash,
a1e5088
 	OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR);
a1e5088
 	return INB(io_base_addr + BIOS_ROM_DATA);
a1e5088
 }
a1e5088
-
a1e5088
-#else
a1e5088
-#error PCI port I/O access is not supported on this architecture yet.
a1e5088
-#endif
a1e5088
diff --git a/nicnatsemi.c b/nicnatsemi.c
e626e6d
index d62a73f..5cf73ab 100644
a1e5088
--- a/nicnatsemi.c
a1e5088
+++ b/nicnatsemi.c
a1e5088
@@ -18,8 +18,6 @@
a1e5088
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
a1e5088
 #include <stdlib.h>
a1e5088
 #include "flash.h"
a1e5088
 #include "programmer.h"
e626e6d
@@ -106,7 +104,3 @@ static uint8_t nicnatsemi_chip_readb(const struct flashctx *flash,
a1e5088
 	 */
a1e5088
 	return INB(io_base_addr + BOOT_ROM_DATA);
a1e5088
 }
a1e5088
-
a1e5088
-#else
a1e5088
-#error PCI port I/O access is not supported on this architecture yet.
a1e5088
-#endif
a1e5088
diff --git a/nicrealtek.c b/nicrealtek.c
e626e6d
index fb8e9e1..b504cf0 100644
a1e5088
--- a/nicrealtek.c
a1e5088
+++ b/nicrealtek.c
a1e5088
@@ -18,8 +18,6 @@
a1e5088
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
a1e5088
 #include <stdlib.h>
a1e5088
 #include "flash.h"
a1e5088
 #include "programmer.h"
e626e6d
@@ -129,7 +127,3 @@ static uint8_t nicrealtek_chip_readb(const struct flashctx *flash, const chipadd
a1e5088
 
a1e5088
 	return val;
a1e5088
 }
a1e5088
-
a1e5088
-#else
a1e5088
-#error PCI port I/O access is not supported on this architecture yet.
a1e5088
-#endif
a1e5088
diff --git a/rayer_spi.c b/rayer_spi.c
5977150
index b312610..08dff07 100644
a1e5088
--- a/rayer_spi.c
a1e5088
+++ b/rayer_spi.c
a1e5088
@@ -28,7 +28,6 @@
a1e5088
  * most OS parport drivers will perform many unnecessary accesses although
a1e5088
  * this driver just treats the parallel port as a GPIO set.
a1e5088
  */
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
 
a1e5088
 #include <stdlib.h>
5977150
 #include <strings.h>
5977150
@@ -180,7 +179,3 @@ int rayer_spi_init(void)
a1e5088
 
a1e5088
 	return 0;
a1e5088
 }
a1e5088
-
a1e5088
-#else
a1e5088
-#error PCI port I/O access is not supported on this architecture yet.
2026e4b
-#endif
2026e4b
diff --git a/satamv.c b/satamv.c
e626e6d
index c3f27e7..b8f175b 100644
2026e4b
--- a/satamv.c
2026e4b
+++ b/satamv.c
2026e4b
@@ -19,7 +19,6 @@
2026e4b
  */
2026e4b
 
2026e4b
 /* Datasheets are not public (yet?) */
2026e4b
-#if defined(__i386__) || defined(__x86_64__)
2026e4b
 
2026e4b
 #include <stdlib.h>
2026e4b
 #include "flash.h"
e626e6d
@@ -194,7 +193,3 @@ static uint8_t satamv_chip_readb(const struct flashctx *flash,
2026e4b
 {
2026e4b
 	return satamv_indirect_chip_readb(addr);
2026e4b
 }
2026e4b
-
2026e4b
-#else
2026e4b
-#error PCI port I/O access is not supported on this architecture yet.
a1e5088
-#endif
a1e5088
diff --git a/sb600spi.c b/sb600spi.c
075c56f
index e76c04a..0514acd 100644
a1e5088
--- a/sb600spi.c
a1e5088
+++ b/sb600spi.c
a1e5088
@@ -21,8 +21,6 @@
a1e5088
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
075c56f
 #include <string.h>
075c56f
 #include <stdlib.h>
a1e5088
 #include "flash.h"
075c56f
@@ -359,5 +357,3 @@ int sb600_probe_spi(struct pci_dev *dev)
4a6317d
 	register_spi_programmer(&spi_programmer_sb600);
a1e5088
 	return 0;
a1e5088
 }
a1e5088
-
a1e5088
-#endif
a1e5088
diff --git a/wbsio_spi.c b/wbsio_spi.c
5977150
index 7d4bb2a..6e6eec1 100644
a1e5088
--- a/wbsio_spi.c
a1e5088
+++ b/wbsio_spi.c
a1e5088
@@ -18,8 +18,6 @@
a1e5088
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
a1e5088
  */
a1e5088
 
a1e5088
-#if defined(__i386__) || defined(__x86_64__)
a1e5088
-
a1e5088
 #include "flash.h"
a1e5088
 #include "chipdrivers.h"
a1e5088
 #include "programmer.h"
5977150
@@ -207,5 +205,3 @@ static int wbsio_spi_read(struct flashctx *flash, uint8_t *buf,
f4ee62f
 	mmio_readn((void *)(flash->virtual_memory + start), buf, len);
f4ee62f
 	return 0;
a1e5088
 }
a1e5088
-
a1e5088
-#endif
a1e5088
-- 
075c56f
1.8.3.1
a1e5088