summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/if_dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/libchip/network/if_dc.c')
-rw-r--r--c/src/libchip/network/if_dc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/c/src/libchip/network/if_dc.c b/c/src/libchip/network/if_dc.c
index bdd1d8874f..b99e2967e8 100644
--- a/c/src/libchip/network/if_dc.c
+++ b/c/src/libchip/network/if_dc.c
@@ -108,17 +108,20 @@
#define DRIVER_SUPPORTED
#endif
-#if defined(__PPC__) && (defined(mpc604) || defined(mpc750) || defined(ppc603e))
+#if defined(__PPC__)
#define DRIVER_SUPPORTED
#warning The if_dc driver is untested on the PPC platform !!!
#endif
-
-#if defined(DRIVER_SUPPORTED) /* this covers the file "globally"... */
#include <bsp.h>
-#include <rtems.h>
#include <rtems/pci.h>
+#if !defined(PCI_DRAM_OFFSET)
+ #undef DRIVER_SUPPORTED
+#endif
+
+#if defined(DRIVER_SUPPORTED) /* this covers the file "globally"... */
+
#include <rtems/error.h>
#include <errno.h>
#include <rtems/rtems_bsdnet.h>