summaryrefslogtreecommitdiffstats
path: root/c/src/libchip
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-03 14:48:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-03 14:48:27 +0000
commita1efd7a98a96db2083d252e8b81d8e5ce1aa275f (patch)
treede704b2d4b5bc2d8d4ad4344d04ff180e335723d /c/src/libchip
parentAdded dec21140 to Makefile.am. (diff)
downloadrtems-a1efd7a98a96db2083d252e8b81d8e5ce1aa275f.tar.bz2
Made to compile on other CPU families.
Diffstat (limited to 'c/src/libchip')
-rw-r--r--c/src/libchip/network/dec21140.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c
index 4b3dbd3c24..cf8bd72936 100644
--- a/c/src/libchip/network/dec21140.c
+++ b/c/src/libchip/network/dec21140.c
@@ -10,6 +10,23 @@
* $Id$
*/
+#include <rtems.h>
+
+/*
+ * This driver only supports architectures with the new style
+ * exception processing. The following checks try to keep this
+ * from being compiled on systems which can't support this driver.
+ */
+
+#if defined(__i386)
+#define DEC21140_SUPPORTED
+#endif
+
+#if defined(__PPC) && (defined(mpc604) || defined(mpc750))
+#define DEC21140_SUPPORTED
+#endif
+
+#if defined(DEC21140_SUPPORTED)
#include <bsp.h>
#if defined(i386)
#include <pcibios.h>
@@ -901,4 +918,5 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config)
return 1;
};
+#endif /* DEC21140_SUPPORTED */