Lines Matching refs:nic

64 static void t595_reset(struct nic *nic)  in t595_reset()  argument
108 outb(nic->node_addr[i], BASE + VX_W2_ADDR_0 + i); in t595_reset()
162 struct nic *nic, in t595_transmit() argument
210 outsw(BASE + VX_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2); in t595_transmit()
227 static int t595_poll(struct nic *nic, int retrieve) in t595_poll() argument
269 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2); in t595_poll()
271 nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
272 nic->packetlen=rx_fifo; in t595_poll()
282 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t595_poll()
284 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
285 nic->packetlen+=rx_fifo; in t595_poll()
292 printf("=%d",nic->packetlen); in t595_poll()
305 type = (nic->packet[12]<<8) | nic->packet[13]; in t595_poll()
306 if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+ in t595_poll()
307 nic->packet[5] == 0xFF*ETH_ALEN) in t595_poll()
445 struct nic *nic = (struct nic *)dev; in t595_disable() local
446 t595_reset(nic); in t595_disable()
455 static void t595_irq(struct nic *nic __unused, irq_action_t action __unused) in t595_irq()
472 struct nic *nic = (struct nic *)dev; in t595_probe() local
481 nic->irqno = 0; in t595_probe()
482 nic->ioaddr = pci->ioaddr & ~3; in t595_probe()
500 p = (unsigned short *) nic->node_addr; in t595_probe()
508 printf("Ethernet address: %!\n", nic->node_addr); in t595_probe()
510 t595_reset(nic); in t595_probe()
512 nic->poll = t595_poll; in t595_probe()
513 nic->transmit = t595_transmit; in t595_probe()
514 nic->irq = t595_irq; in t595_probe()