diff options
author | Marty Connor <mdc@etherboot.org> | 2006-09-26 21:06:29 +0000 |
---|---|---|
committer | Marty Connor <mdc@etherboot.org> | 2006-09-26 21:06:29 +0000 |
commit | 097c1b341d3c8f702c5b62a7f2ebbbfd9572ff5d (patch) | |
tree | ec7e7850c65e5b64c816cf0898b41cf35f1d9702 /src/drivers/net/eepro.c | |
parent | 7952bb76ec8ea407e038d5138bfa74aeaccaffc9 (diff) | |
download | ipxe-097c1b341d3c8f702c5b62a7f2ebbbfd9572ff5d.tar.gz |
eth_ntoa fixes
Diffstat (limited to 'src/drivers/net/eepro.c')
-rw-r--r-- | src/drivers/net/eepro.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/drivers/net/eepro.c b/src/drivers/net/eepro.c index 65c6c8f59..5de3fa075 100644 --- a/src/drivers/net/eepro.c +++ b/src/drivers/net/eepro.c @@ -31,13 +31,11 @@ has 34 pins, the top row of 2 are not used. * your option) any later version. */ -/* to get some global routines like printf */ #include "etherboot.h" -/* to get the interface to the body of the program */ #include "nic.h" #include "isa.h" -/* we use timer2 for microsecond waits */ #include "timer.h" +#include <gpxe/ethernet.h> /* Different 82595 chips */ #define LAN595 0 @@ -463,7 +461,6 @@ static void eepro_transmit( DISABLE - Turn off ethernet interface ***************************************************************************/ static void eepro_disable ( struct nic *nic, struct isa_device *isa __unused ) { - nic_disable ( nic ); eepro_sw2bank0(nic->ioaddr); /* Switch to bank 0 */ /* Flush the Tx and disable Rx */ outb(STOP_RCV_CMD, nic->ioaddr); @@ -596,7 +593,9 @@ static int eepro_probe ( struct nic *nic, struct isa_device *isa ) { for (i = 0; i < ETH_ALEN; i++) { nic->node_addr[i] = station_addr.caddr[i]; } - DBG("%s ioaddr %#hX, addr %!", isa->name, nic->ioaddr, nic->node_addr); + + DBG ( "%s ioaddr %#hX, addr %s", isa->name, nic->ioaddr, eth_ntoa ( nic->node_addr ) ); + mem_start = RCV_LOWER_LIMIT << 8; if ((mem_end & 0x3F) < 3 || (mem_end & 0x3F) > 29) mem_end = RCV_UPPER_LIMIT << 8; |