summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/tulip.c
diff options
context:
space:
mode:
authorMarty Connor2006-09-15 14:54:11 +0200
committerMarty Connor2006-09-15 14:54:11 +0200
commita9cb4ca0795652c222483c334f2a0bb22105a478 (patch)
treed4118fcf2eccf62680bdea0f08c3018e3ec31520 /src/drivers/net/tulip.c
parentchange MAC address printout to DBG using eth_ntoa (temporary legacy support) (diff)
downloadipxe-a9cb4ca0795652c222483c334f2a0bb22105a478.tar.gz
ipxe-a9cb4ca0795652c222483c334f2a0bb22105a478.tar.xz
ipxe-a9cb4ca0795652c222483c334f2a0bb22105a478.zip
DBG MAC addr printout in driver
Diffstat (limited to 'src/drivers/net/tulip.c')
-rw-r--r--src/drivers/net/tulip.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/drivers/net/tulip.c b/src/drivers/net/tulip.c
index 15067e90..f5fdbaad 100644
--- a/src/drivers/net/tulip.c
+++ b/src/drivers/net/tulip.c
@@ -108,6 +108,8 @@
#include "etherboot.h"
#include "nic.h"
+
+#include <gpxe/ethernet.h>
#include <gpxe/pci.h>
/* User settable parameters */
@@ -496,7 +498,7 @@ static void tulip_reset(struct nic *nic);
static void tulip_transmit(struct nic *nic, const char *d, unsigned int t,
unsigned int s, const char *p);
static int tulip_poll(struct nic *nic, int retrieve);
-static void tulip_disable(struct nic *nic, struct pci_device *pci);
+static void tulip_disable(struct nic *nic);
static void nway_start(struct nic *nic);
static void pnic_do_nway(struct nic *nic);
static void select_media(struct nic *nic, int startup);
@@ -1184,13 +1186,12 @@ static int tulip_poll(struct nic *nic, int retrieve)
/*********************************************************************/
/* eth_disable - Disable the interface */
/*********************************************************************/
-static void tulip_disable ( struct nic *nic, struct pci_device *pci __unused ) {
+static void tulip_disable ( struct nic *nic ) {
#ifdef TULIP_DEBUG_WHERE
whereami("tulip_disable\n");
#endif
- /* merge reset and disable */
tulip_reset(nic);
/* disable interrupts */
@@ -1403,9 +1404,7 @@ static int tulip_probe ( struct nic *nic, struct pci_device *pci ) {
for (i = 0; i < ETH_ALEN; i++)
last_phys_addr[i] = nic->node_addr[i];
-/* FIXME: This should be printed out in a higher-level routine.
- printf("%s: %! at ioaddr %hX\n", tp->nic_name, nic->node_addr, ioaddr);
-*/
+ DBG ( "%s: %s at ioaddr %hX\n", tp->nic_name, eth_ntoa ( nic->node_addr ), ioaddr );
tp->chip_id = chip_idx;
tp->revision = chip_rev;