Lines Matching defs:nic
98 #include "nic.h"
365 static void eepro100_irq(struct nic *nic __unused, irq_action_t action __unused)
387 static void eepro100_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p)
407 memcpy (&hdr.src_addr, nic->node_addr, ETH_ALEN);
478 * returns the packet in the array nic->packet.
479 * returns the length of the packet in nic->packetlen.
482 static int eepro100_poll(struct nic *nic, int retrieve)
523 nic->packetlen = ACCESS(rxfd)count & 0x3fff;
524 memcpy (nic->packet, ACCESS(rxfd)packet, nic->packetlen);
526 hd (nic->packet, 0x30);
575 struct nic *nic = (struct nic *)dev;
589 nic->ioaddr = ioaddr;
594 /* nic->irqno = pci->irq; */
595 nic->irqno = 0;
614 nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
616 printf ("Ethernet addr: %!\n", nic->node_addr);
640 ACCESS(rxfd)rx_buf_addr = virt_to_bus(&nic->packet);
673 t[i] = nic->node_addr[i];
741 nic->poll = eepro100_poll;
742 nic->transmit = eepro100_transmit;
743 nic->irq = eepro100_irq;