diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-12-14 13:30:50 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-12-14 13:30:50 +0000 |
commit | f09ac26862ec43a1b0379c7e6e4c80f57ccc6679 (patch) | |
tree | a1b57312556d202ed5e727eddea15319e9353206 /c/src/libchip | |
parent | Patch from Eric Norum <eric@cls.usask.ca> to change to gen68360 clock handling. (diff) | |
download | rtems-f09ac26862ec43a1b0379c7e6e4c80f57ccc6679.tar.bz2 |
More warnings removed after email with Emmanuel Raguet.
Diffstat (limited to 'c/src/libchip')
-rw-r--r-- | c/src/libchip/network/dec21140.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c index a393642ca9..296c0744a1 100644 --- a/c/src/libchip/network/dec21140.c +++ b/c/src/libchip/network/dec21140.c @@ -174,7 +174,7 @@ struct MD { #define CPU_CACHE_ALIGNMENT_FOR_BUFFER PPC_CACHE_ALIGNMENT #else #define phys_to_bus(address) (unsigned int) address -#define bus_to_phys(address) address +#define bus_to_phys(address) (unsigned int) address #define delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 ) #define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE @@ -343,7 +343,6 @@ dec21140Enet_initialize_hardware (struct dec21140_softc *sc) { rtems_status_code st; volatile unsigned int *tbase; - union {char c[64]; unsigned short s[32];} rombuf; int i; volatile unsigned char *cp, *setup_frm, *eaddrs; volatile unsigned char *buffer; @@ -836,7 +835,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config) pcib_conf_read32(signature, 20, &value); if (_CPU_is_paging_enabled()) - _CPU_map_phys_address(&(sc->base), + _CPU_map_phys_address((void **) &(sc->base), (void *)(value & ~MEM_MASK), DEC_REGISTER_SIZE , PTE_CACHE_DISABLE | PTE_WRITABLE); |