2012-02-02 11:18:14 +00:00
|
|
|
From 5381ae7e3423475d5ade49bd11b5844e68f4fdc7 Mon Sep 17 00:00:00 2001
|
2010-10-26 08:31:54 +00:00
|
|
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
Date: Sat, 18 Sep 2010 09:40:01 +0400
|
2011-10-21 13:38:55 +00:00
|
|
|
Subject: [PATCH 04/10] Kill some x86-related ifdefs in code - this is now
|
2011-05-14 14:03:39 +00:00
|
|
|
controlled via autotools
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
---
|
2011-10-21 13:38:55 +00:00
|
|
|
atahpt.c | 6 ------
|
|
|
|
ich_descriptors.c | 3 ---
|
|
|
|
ich_descriptors.h | 2 --
|
|
|
|
ichspi.c | 4 ----
|
|
|
|
it85spi.c | 4 ----
|
|
|
|
it87spi.c | 4 ----
|
|
|
|
mcp6x_spi.c | 4 ----
|
|
|
|
nic3com.c | 6 ------
|
|
|
|
nicnatsemi.c | 6 ------
|
|
|
|
nicrealtek.c | 6 ------
|
|
|
|
rayer_spi.c | 5 -----
|
|
|
|
satamv.c | 5 -----
|
|
|
|
sb600spi.c | 4 ----
|
|
|
|
wbsio_spi.c | 4 ----
|
|
|
|
14 files changed, 0 insertions(+), 63 deletions(-)
|
2010-10-26 08:31:54 +00:00
|
|
|
|
2011-08-12 18:44:38 +00:00
|
|
|
diff --git a/atahpt.c b/atahpt.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 4234f6d..27b106d 100644
|
2011-08-12 18:44:38 +00:00
|
|
|
--- a/atahpt.c
|
|
|
|
+++ b/atahpt.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* 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"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -97,7 +95,3 @@ static uint8_t atahpt_chip_readb(const struct flashctx *flash,
|
2011-08-12 18:44:38 +00:00
|
|
|
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
|
2011-10-21 13:38:55 +00:00
|
|
|
diff --git a/ich_descriptors.c b/ich_descriptors.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 726f5e0..a83911f 100644
|
2011-10-21 13:38:55 +00:00
|
|
|
--- a/ich_descriptors.c
|
|
|
|
+++ b/ich_descriptors.c
|
|
|
|
@@ -19,8 +19,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include "ich_descriptors.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
|
|
|
|
#ifdef ICH_DESCRIPTORS_FROM_DUMP
|
|
|
|
@@ -840,4 +838,3 @@ int read_ich_descriptors_via_fdo(void *spibar, struct ich_descriptors *desc)
|
2011-10-21 13:38:55 +00:00
|
|
|
return ICH_RET_OK;
|
|
|
|
}
|
2012-02-02 11:18:14 +00:00
|
|
|
#endif /* ICH_DESCRIPTORS_FROM_DUMP */
|
2011-10-21 13:38:55 +00:00
|
|
|
-#endif /* defined(__i386__) || defined(__x86_64__) */
|
|
|
|
diff --git a/ich_descriptors.h b/ich_descriptors.h
|
2012-02-02 11:18:14 +00:00
|
|
|
index 34bcc6a..690ba6a 100644
|
2011-10-21 13:38:55 +00:00
|
|
|
--- a/ich_descriptors.h
|
|
|
|
+++ b/ich_descriptors.h
|
|
|
|
@@ -19,7 +19,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
#ifndef __ICH_DESCRIPTORS_H__
|
|
|
|
#define __ICH_DESCRIPTORS_H__ 1
|
|
|
|
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -572,4 +571,3 @@ int getFCBA_component_density(const struct ich_descriptors *desc, uint8_t idx);
|
2011-10-21 13:38:55 +00:00
|
|
|
|
2012-02-02 11:18:14 +00:00
|
|
|
#endif /* ICH_DESCRIPTORS_FROM_DUMP */
|
2011-10-21 13:38:55 +00:00
|
|
|
#endif /* __ICH_DESCRIPTORS_H__ */
|
|
|
|
-#endif /* defined(__i386__) || defined(__x86_64__) */
|
2010-10-26 08:31:54 +00:00
|
|
|
diff --git a/ichspi.c b/ichspi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 163ecf1..f81d88c 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/ichspi.c
|
|
|
|
+++ b/ichspi.c
|
2011-08-12 18:44:38 +00:00
|
|
|
@@ -23,8 +23,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2010-10-26 08:31:54 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <string.h>
|
2011-10-21 13:38:55 +00:00
|
|
|
#include <stdlib.h>
|
2010-10-26 08:31:54 +00:00
|
|
|
#include "flash.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -1839,5 +1837,3 @@ int via_init_spi(struct pci_dev *dev)
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
2011-03-09 11:11:12 +00:00
|
|
|
diff --git a/it85spi.c b/it85spi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 01cb086..e911ddf 100644
|
2011-03-09 11:11:12 +00:00
|
|
|
--- a/it85spi.c
|
|
|
|
+++ b/it85spi.c
|
|
|
|
@@ -24,8 +24,6 @@
|
|
|
|
* Contains the ITE IT85* SPI specific routines
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -368,5 +366,3 @@ static int it85xx_spi_send_command(struct flashctx *flash,
|
2011-05-14 14:03:39 +00:00
|
|
|
|
|
|
|
return 0;
|
2011-03-09 11:11:12 +00:00
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
2010-10-26 08:31:54 +00:00
|
|
|
diff --git a/it87spi.c b/it87spi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index f089d78..fbd8db2 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/it87spi.c
|
|
|
|
+++ b/it87spi.c
|
|
|
|
@@ -23,8 +23,6 @@
|
|
|
|
* Contains the ITE IT87* SPI specific routines
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -404,5 +402,3 @@ static int it8716f_spi_chip_write_256(struct flashctx *flash, uint8_t *buf,
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
diff --git a/mcp6x_spi.c b/mcp6x_spi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 23f39a5..34be29e 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/mcp6x_spi.c
|
|
|
|
+++ b/mcp6x_spi.c
|
|
|
|
@@ -23,8 +23,6 @@
|
|
|
|
* created by Michael Karcher.
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "flash.h"
|
2011-05-14 14:03:39 +00:00
|
|
|
@@ -168,5 +166,3 @@ int mcp6x_spi_init(int want_spi)
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
diff --git a/nic3com.c b/nic3com.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 473c7b1..338da53 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/nic3com.c
|
|
|
|
+++ b/nic3com.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
|
|
|
#include "programmer.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -133,7 +131,3 @@ static uint8_t nic3com_chip_readb(const struct flashctx *flash,
|
2010-10-26 08:31:54 +00:00
|
|
|
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
|
|
|
|
diff --git a/nicnatsemi.c b/nicnatsemi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index eb2a7f8..1bf412c 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/nicnatsemi.c
|
|
|
|
+++ b/nicnatsemi.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
|
|
|
#include "programmer.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -107,7 +105,3 @@ static uint8_t nicnatsemi_chip_readb(const struct flashctx *flash,
|
2010-10-26 08:31:54 +00:00
|
|
|
*/
|
|
|
|
return INB(io_base_addr + BOOT_ROM_DATA);
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-#error PCI port I/O access is not supported on this architecture yet.
|
|
|
|
-#endif
|
|
|
|
diff --git a/nicrealtek.c b/nicrealtek.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 32aa434..4a50ec5 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/nicrealtek.c
|
|
|
|
+++ b/nicrealtek.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
|
|
|
#include "programmer.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -112,7 +110,3 @@ static uint8_t nicrealtek_chip_readb(const struct flashctx *flash,
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
return val;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-#error PCI port I/O access is not supported on this architecture yet.
|
|
|
|
-#endif
|
|
|
|
diff --git a/rayer_spi.c b/rayer_spi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 0011bc0..c88360d 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/rayer_spi.c
|
|
|
|
+++ b/rayer_spi.c
|
|
|
|
@@ -28,7 +28,6 @@
|
|
|
|
* most OS parport drivers will perform many unnecessary accesses although
|
|
|
|
* this driver just treats the parallel port as a GPIO set.
|
|
|
|
*/
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
2011-10-21 13:38:55 +00:00
|
|
|
#include <string.h>
|
|
|
|
@@ -177,7 +176,3 @@ int rayer_spi_init(void)
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-#error PCI port I/O access is not supported on this architecture yet.
|
2011-08-12 18:44:38 +00:00
|
|
|
-#endif
|
|
|
|
diff --git a/satamv.c b/satamv.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index e39385b..45a62f7 100644
|
2011-08-12 18:44:38 +00:00
|
|
|
--- a/satamv.c
|
|
|
|
+++ b/satamv.c
|
|
|
|
@@ -19,7 +19,6 @@
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Datasheets are not public (yet?) */
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "flash.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -199,7 +198,3 @@ static uint8_t satamv_chip_readb(const struct flashctx *flash,
|
2011-08-12 18:44:38 +00:00
|
|
|
{
|
|
|
|
return satamv_indirect_chip_readb(addr);
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-#error PCI port I/O access is not supported on this architecture yet.
|
2010-10-26 08:31:54 +00:00
|
|
|
-#endif
|
|
|
|
diff --git a/sb600spi.c b/sb600spi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index c3d7710..458206a 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/sb600spi.c
|
|
|
|
+++ b/sb600spi.c
|
|
|
|
@@ -21,8 +21,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include "flash.h"
|
|
|
|
#include "programmer.h"
|
2011-10-21 13:38:55 +00:00
|
|
|
#include "spi.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -321,5 +319,3 @@ int sb600_probe_spi(struct pci_dev *dev)
|
2011-05-14 14:03:39 +00:00
|
|
|
register_spi_programmer(&spi_programmer_sb600);
|
2010-10-26 08:31:54 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
diff --git a/wbsio_spi.c b/wbsio_spi.c
|
2012-02-02 11:18:14 +00:00
|
|
|
index 740a48c..7c4ff57 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/wbsio_spi.c
|
|
|
|
+++ b/wbsio_spi.c
|
|
|
|
@@ -18,8 +18,6 @@
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
-
|
|
|
|
#include "flash.h"
|
|
|
|
#include "chipdrivers.h"
|
|
|
|
#include "programmer.h"
|
2012-02-02 11:18:14 +00:00
|
|
|
@@ -204,5 +202,3 @@ static int wbsio_spi_read(struct flashctx *flash, uint8_t *buf,
|
2010-10-26 08:31:54 +00:00
|
|
|
{
|
|
|
|
return read_memmapped(flash, buf, start, len);
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
--
|
2012-02-02 11:18:14 +00:00
|
|
|
1.7.7.5
|
2010-10-26 08:31:54 +00:00
|
|
|
|