forked from Imagelibrary/rtems
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:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -78,6 +78,10 @@
|
||||
#define ELNK_SUPPORTED
|
||||
#endif
|
||||
|
||||
#if !defined(PCI_DRAM_OFFSET)
|
||||
#undef ELNK_SUPPORTED
|
||||
#endif
|
||||
|
||||
/* #undef ELNK_SUPPORTED */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user