summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/eepro.c
diff options
context:
space:
mode:
authorMarty Connor2007-07-04 11:52:56 +0200
committerMarty Connor2007-07-04 11:52:56 +0200
commit1af1668c95e43b55a23e06efe3720cd95ea02f33 (patch)
tree8ad69c7cebe75c6a702b8ba9c264389742a8700e /src/drivers/net/eepro.c
parentUNDI loader entry point implemented; seems to work. (diff)
downloadipxe-1af1668c95e43b55a23e06efe3720cd95ea02f33.tar.gz
ipxe-1af1668c95e43b55a23e06efe3720cd95ea02f33.tar.xz
ipxe-1af1668c95e43b55a23e06efe3720cd95ea02f33.zip
Warnings purge of drivers (continued)
Diffstat (limited to 'src/drivers/net/eepro.c')
-rw-r--r--src/drivers/net/eepro.c13
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);
}