summaryrefslogtreecommitdiffstats
path: root/nicrealtek.c
diff options
context:
space:
mode:
Diffstat (limited to 'nicrealtek.c')
-rw-r--r--nicrealtek.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nicrealtek.c b/nicrealtek.c
index 80291f1..d145886 100644
--- a/nicrealtek.c
+++ b/nicrealtek.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>
@@ -93,3 +95,7 @@ uint8_t nicrealtek_chip_readb(const chipaddr addr)
return val;
}
+
+#else
+#error PCI port I/O access is not supported on this architecture yet.
+#endif
OpenPOWER on IntegriCloud