Lines Matching defs:nic
53 #include "nic.h"
3438 e1000_poll (struct nic *nic, int retrieve)
3441 /* nic->packet should contain data on return */
3442 /* nic->packetlen should contain length of data */
3452 memcpy (nic->packet, packet, rd->length);
3453 nic->packetlen = rd->length;
3462 e1000_transmit (struct nic *nic, const char *d, /* Destination */
3478 memcpy (&hdr.src_addr, nic->node_addr, ETH_ALEN);
3496 udelay(10); /* give the nic a chance to write to the register */
3531 static void e1000_irq(struct nic *nic __unused, irq_action_t action __unused)
3554 struct nic *nic = (struct nic *)dev;
3591 nic->ioaddr = p->ioaddr & ~3;
3592 nic->irqno = 0;
3614 memcpy (nic->node_addr, hw.mac_addr, ETH_ALEN);
3616 printf("Ethernet addr: %!\n", nic->node_addr);
3635 nic->poll = e1000_poll;
3636 nic->transmit = e1000_transmit;
3637 nic->irq = e1000_irq;