From f09ac26862ec43a1b0379c7e6e4c80f57ccc6679 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 14 Dec 1999 13:30:50 +0000 Subject: More warnings removed after email with Emmanuel Raguet. --- c/src/libchip/network/dec21140.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'c/src/libchip') 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); -- cgit v1.2.3