Lines Matching refs:nic
296 static void eepro_reset(struct nic *nic) in eepro_reset() argument
309 outb(nic->node_addr[i], ioaddr + I_ADD_REG0 + i); in eepro_reset()
341 static int eepro_poll(struct nic *nic) in eepro_poll() argument
371 insw(ioaddr + IO_PORT, nic->packet, ((rcv_size + 3) >> 1)); in eepro_poll()
374 printf("%hhX", nic->packet[i]); in eepro_poll()
378 nic->packetlen = rcv_size; in eepro_poll()
391 struct nic *nic, in eepro_transmit() argument
420 outsw(ioaddr + IO_PORT, nic->node_addr, ETH_ALEN / 2); in eepro_transmit()
450 static void eepro_disable(struct nic *nic) in eepro_disable() argument
502 static int eepro_probe1(struct nic *nic) in eepro_probe1() argument
546 nic->node_addr[i] = station_addr.caddr[i]; in eepro_probe1()
548 printf("\n%s ioaddr %#hX, addr %!", name, ioaddr, nic->node_addr); in eepro_probe1()
564 struct nic *eepro_probe(struct nic *nic, unsigned short *probe_addrs) in eepro_probe() argument
574 if (eepro_probe1(nic)) in eepro_probe()
579 eepro_reset(nic); in eepro_probe()
581 nic->reset = eepro_reset; in eepro_probe()
582 nic->poll = eepro_poll; in eepro_probe()
583 nic->transmit = eepro_transmit; in eepro_probe()
584 nic->disable = eepro_disable; in eepro_probe()
585 return (nic); in eepro_probe()