• Home
  • Raw
  • Download

Lines Matching refs:nic

65 static void t595_reset(struct nic *nic)  in t595_reset()  argument
109 outb(nic->node_addr[i], BASE + VX_W2_ADDR_0 + i); in t595_reset()
163 struct nic *nic, in t595_transmit() argument
211 outsw(BASE + VX_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2); in t595_transmit()
228 static int t595_poll(struct nic *nic) 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()
303 type = (nic->packet[12]<<8) | nic->packet[13]; in t595_poll()
304 if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+ in t595_poll()
305 nic->packet[5] == 0xFF*ETH_ALEN) in t595_poll()
441 static void t595_disable(struct nic *nic) in t595_disable() argument
453 struct nic *t595_probe(struct nic *nic, unsigned short *probeaddrs, struct pci_device *pci) in t595_probe() argument
479 p = (unsigned short *) nic->node_addr; in t595_probe()
487 printf("Ethernet address: %!\n", nic->node_addr); in t595_probe()
489 t595_reset(nic); in t595_probe()
490 nic->reset = t595_reset; in t595_probe()
491 nic->poll = t595_poll; in t595_probe()
492 nic->transmit = t595_transmit; in t595_probe()
493 nic->disable = t595_disable; in t595_probe()
494 return nic; in t595_probe()