diff options
author | Marty Connor <mdc@etherboot.org> | 2006-09-27 03:05:21 +0000 |
---|---|---|
committer | Marty Connor <mdc@etherboot.org> | 2006-09-27 03:05:21 +0000 |
commit | 757618edea4c457021a18c94edbeb23494edf4af (patch) | |
tree | 88c9ee03ca482fdb2ccae0961407a37a8b573fc2 /src/drivers/net/w89c840.c | |
parent | cd8168b071f201051a638b1bb2a251179fac1398 (diff) | |
download | ipxe-757618edea4c457021a18c94edbeb23494edf4af.tar.gz |
eth_ntoa and warnings cleanup
Diffstat (limited to 'src/drivers/net/w89c840.c')
-rw-r--r-- | src/drivers/net/w89c840.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drivers/net/w89c840.c b/src/drivers/net/w89c840.c index bff379230..9e3622644 100644 --- a/src/drivers/net/w89c840.c +++ b/src/drivers/net/w89c840.c @@ -80,6 +80,7 @@ #include "etherboot.h" #include "nic.h" #include <gpxe/pci.h> +#include <gpxe/ethernet.h> #include "timer.h" static const char *w89c840_version = "driver Version 0.94 - December 12, 2003"; @@ -575,9 +576,8 @@ static void w89c840_transmit( /************************************************************************** w89c840_disable - Turn off ethernet interface ***************************************************************************/ -static void w89c840_disable ( struct nic *nic, struct pci_device *pci __unused ) { +static void w89c840_disable ( struct nic *nic ) { - /* merge reset and disable */ w89c840_reset(nic); /* Don't know what to do to disable the board. Is this needed at all? */ @@ -674,7 +674,8 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) { for (i=0;i<ETH_ALEN;i++) { nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff; } - printf ("Ethernet addr: %!\n", nic->node_addr); + + DBG ( "Ethernet addr: %s\n", eth_ntoa ( nic->node_addr ) ); #if defined(W89C840_DEBUG) printf("winbond-840: EEPROM checksum %hX, got eeprom", sum); |