2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>

* libchip/network/dec21140.c, libchip/network/elnk.c,
	libchip/network/if_dc.c: Ensure PCI drivers are built on all
	supported configurations. PowerPC conditionals were not current and
	code was not being built on supported BSPs.
This commit is contained in:
Joel Sherrill
2009-12-08 16:54:20 +00:00
parent e0e2cb8ec0
commit a5b5b50866
4 changed files with 22 additions and 10 deletions

View File

@@ -1,3 +1,10 @@
2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/network/dec21140.c, libchip/network/elnk.c,
libchip/network/if_dc.c: Ensure PCI drivers are built on all
supported configurations. PowerPC conditionals were not current and
code was not being built on supported BSPs.
2009-11-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* libchip/network/smc91111.c: Formatting.

View File

@@ -49,17 +49,18 @@
#define DEC21140_SUPPORTED
#define PCI_DRAM_OFFSET 0
#endif
#if defined(__PPC__) && (defined(mpc604) || defined(mpc750) || defined(ppc603e))
#if defined(__PPC__)
#define DEC21140_SUPPORTED
#endif
#include <bsp.h>
#include <rtems/pci.h>
#if !defined(PCI_DRAM_OFFSET)
#undef DEC21140_SUPPORTED
#endif
#if defined(DEC21140_SUPPORTED)
#include <bsp.h>
#include <rtems/pci.h>
#if defined(__PPC__)
#include <libcpu/byteorder.h>

View File

@@ -75,10 +75,13 @@
#define PCI_DRAM_OFFSET 0
#endif
#if defined(__PPC__) && (defined(mpc604) || defined(mpc750) || defined(ppc603e))
#if defined(__PPC__)
#define ELNK_SUPPORTED
#endif
#include <bsp.h>
#include <rtems/pci.h>
#if !defined(PCI_DRAM_OFFSET)
#undef ELNK_SUPPORTED
#endif
@@ -87,8 +90,6 @@
#if defined(ELNK_SUPPORTED)
#include <bsp.h>
#include <rtems/pci.h>
#if defined(__PPC__)
#include <libcpu/byteorder.h>

View File

@@ -108,16 +108,19 @@
#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
#include <bsp.h>
#include <rtems/pci.h>
#if !defined(PCI_DRAM_OFFSET)
#undef DRIVER_SUPPORTED
#endif
#if defined(DRIVER_SUPPORTED) /* this covers the file "globally"... */
#include <bsp.h>
#include <rtems.h>
#include <rtems/pci.h>
#include <rtems/error.h>
#include <errno.h>