summaryrefslogtreecommitdiffstats
path: root/nic3com.c
diff options
context:
space:
mode:
Diffstat (limited to 'nic3com.c')
-rw-r--r--nic3com.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nic3com.c b/nic3com.c
index d3dcce5..8064b57 100644
--- a/nic3com.c
+++ b/nic3com.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 <sys/types.h>
@@ -112,3 +114,7 @@ uint8_t nic3com_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
OpenPOWER on IntegriCloud