diff options
author | Marty Connor <mdc@etherboot.org> | 2007-07-04 05:52:56 -0400 |
---|---|---|
committer | Marty Connor <mdc@etherboot.org> | 2007-07-04 05:52:56 -0400 |
commit | 1af1668c95e43b55a23e06efe3720cd95ea02f33 (patch) | |
tree | 8ad69c7cebe75c6a702b8ba9c264389742a8700e /src/drivers/net/eepro.c | |
parent | ac69b85adb8f3f58e2b9eb70bedf69de5c820934 (diff) | |
download | ipxe-1af1668c95e43b55a23e06efe3720cd95ea02f33.tar.gz |
Warnings purge of drivers (continued)
Diffstat (limited to 'src/drivers/net/eepro.c')
-rw-r--r-- | src/drivers/net/eepro.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/drivers/net/eepro.c b/src/drivers/net/eepro.c index 521c720d..2ea4b000 100644 --- a/src/drivers/net/eepro.c +++ b/src/drivers/net/eepro.c @@ -265,11 +265,12 @@ static unsigned eeprom_reg = EEPROM_REG_PRO; #define eepro_full_reset(ioaddr) outb(RESET_CMD, ioaddr); udelay(255); /* do a nice reset */ -#define eepro_sel_reset(ioaddr) { \ - outb(SEL_RESET_CMD, ioaddr); \ - SLOW_DOWN; \ - SLOW_DOWN; \ - } +#define eepro_sel_reset(ioaddr) \ + do { \ + outb ( SEL_RESET_CMD, ioaddr ); \ + (void) SLOW_DOWN; \ + (void) SLOW_DOWN; \ + } while (0) /* clear all interrupts */ #define eepro_clear_int(ioaddr) outb(ALL_MASK, ioaddr + STATUS_REG) @@ -332,7 +333,7 @@ static void eepro_reset(struct nic *nic) /* Intialise XMT */ outw((XMT_LOWER_LIMIT << 8), nic->ioaddr + xmt_bar); eepro_sel_reset(nic->ioaddr); - tx_start = tx_end = (XMT_LOWER_LIMIT << 8); + tx_start = tx_end = (unsigned int) (XMT_LOWER_LIMIT << 8); tx_last = 0; eepro_en_rx(nic->ioaddr); } |