Lines Matching refs:nic
63 static void t509_reset(struct nic *nic) in t509_reset() argument
107 outb(nic->node_addr[i], BASE + EP_W2_ADDR_0 + i); in t509_reset()
155 struct nic *nic, in t509_transmit() argument
201 outsw(BASE + EP_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2); in t509_transmit()
218 static int t509_poll(struct nic *nic) in t509_poll() argument
259 insw(BASE + EP_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2); in t509_poll()
261 nic->packet[rx_fifo-1]=inb(BASE + EP_W1_RX_PIO_RD_1); in t509_poll()
262 nic->packetlen=rx_fifo; in t509_poll()
271 insw(BASE + EP_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t509_poll()
273 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + EP_W1_RX_PIO_RD_1); in t509_poll()
274 nic->packetlen+=rx_fifo; in t509_poll()
281 printf("=%d",nic->packetlen); in t509_poll()
292 type = (nic->packet[12]<<8) | nic->packet[13]; in t509_poll()
293 if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+ in t509_poll()
294 nic->packet[5] == 0xFF*ETH_ALEN) in t509_poll()
374 static void t509_disable(struct nic *nic) in t509_disable() argument
383 struct nic *t529_probe(struct nic *nic, unsigned short *probe_addrs) in t529_probe() argument
385 struct nic *t509_probe(struct nic *nic, unsigned short *probe_addrs) in t529_probe()
397 t509_disable(nic); /* in case board was active */ in t529_probe()
596 p = (unsigned short *) nic->node_addr; in t529_probe()
603 printf("Ethernet address: %!\n", nic->node_addr); in t529_probe()
604 t509_reset(nic); in t529_probe()
605 nic->reset = t509_reset; in t529_probe()
606 nic->poll = t509_poll; in t529_probe()
607 nic->transmit = t509_transmit; in t529_probe()
608 nic->disable = t509_disable; in t529_probe()
609 return nic; in t529_probe()