Lines Matching refs:nic
78 #include "nic.h"
259 /* NIC specific static variables go here */
317 static void w89c840_reset(struct nic *nic)
331 writeb(nic->node_addr[i], ioaddr + StationAddr + i);
390 static int w89c840_poll(struct nic *nic)
393 /* nic->packet should contain data on return */
394 /* nic->packetlen should contain length of data */
439 w89c840_reset(nic);
452 nic->packetlen = pkt_len;
457 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len);
460 /* Release buffer to NIC */
468 nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3],
469 nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7],
470 nic->packet[8], nic->packet[9], nic->packet[10],
471 nic->packet[11], nic->packet[12], nic->packet[13],
472 nic->packet[14], nic->packet[15], nic->packet[16],
473 nic->packet[17]);
494 struct nic *nic,
511 memcpy (tx_packet + ETH_ALEN, nic->node_addr, ETH_ALEN);/* src */
595 static void w89c840_disable(struct nic *nic)
598 /* Yes, a live NIC can corrupt the loaded memory later [Ken] */
606 struct nic *w89c840_probe(struct nic *nic, unsigned short *probe_addrs, struct pci_device *p)
631 /* detected "Winbond W89c840 Fast Ethernet PCI NIC" */
636 /* detected "Compex RL100ATX Fast Ethernet PCI NIC" */
640 printf("device ID : %X - is not a Compex RL100ATX NIC.\n", p->dev_id);
656 nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
658 printf ("Ethernet addr: %!\n", nic->node_addr);
691 /* point to NIC specific routines */
692 nic->reset = w89c840_reset;
693 nic->poll = w89c840_poll;
694 nic->transmit = w89c840_transmit;
695 nic->disable = w89c840_disable;
697 w89c840_reset(nic);
699 return nic;