2008-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>

* libchip/network/dec21140.c, libchip/network/elnk.c: Detect when there
	is no PCI bus based upon the BSP not having a base address defined.
	This means this driver cannot be supported on that board.
This commit is contained in:
Joel Sherrill
2008-09-20 22:20:14 +00:00
parent 2785a80d3e
commit 0b6ca8aa24
3 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2008-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/network/dec21140.c, libchip/network/elnk.c: Detect when there
is no PCI bus based upon the BSP not having a base address defined.
This means this driver cannot be supported on that board.
2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/network/dec21140.c, libchip/network/elnk.c,

View File

@@ -52,6 +52,12 @@
#define DEC21140_SUPPORTED
#endif
#if !defined(PCI_DRAM_OFFSET)
#undef DEC21140_SUPPORTED
#endif
#define phys_to_bus(address) ((unsigned int)((address)) + PCI_DRAM_OFFSET)
#if defined(DEC21140_SUPPORTED)
#include <bsp.h>
#include <rtems/pci.h>

View File

@@ -78,6 +78,10 @@
#define ELNK_SUPPORTED
#endif
#if !defined(PCI_DRAM_OFFSET)
#undef ELNK_SUPPORTED
#endif
/* #undef ELNK_SUPPORTED */