#include "etherboot.h"
#include "nic.h"
+
+#include <gpxe/ethernet.h>
#include <gpxe/pci.h>
/* User settable parameters */
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);
/*********************************************************************/
/* 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 */
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;