diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-20 22:20:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-20 22:20:14 +0000 |
commit | 0b6ca8aa241b149df3ceccf79c84a121383dc001 (patch) | |
tree | e6b2761f95bece57265e373b871f398646b1e5f7 /c/src/libchip/network/dec21140.c | |
parent | 2008-09-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-0b6ca8aa241b149df3ceccf79c84a121383dc001.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/libchip/network/dec21140.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c index 40123f133f..26e18a224a 100644 --- a/c/src/libchip/network/dec21140.c +++ b/c/src/libchip/network/dec21140.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> |