Lines Matching defs:nic
9 #include "nic.h"
53 static int epic100_poll(struct nic *nic, int retrieve);
54 static void epic100_transmit(struct nic *nic, const char *destaddr,
60 static void epic100_irq(struct nic *nic, irq_action_t action);
100 struct nic *nic = (struct nic *)dev;
114 nic->irqno = 0;
115 nic->ioaddr = pci->ioaddr & ~3;
177 ap = (unsigned short*)nic->node_addr;
181 printf(" I/O %#hX %! ", ioaddr, nic->node_addr);
205 nic->poll = epic100_poll;
206 nic->transmit = epic100_transmit;
207 nic->irq = epic100_irq;
301 epic100_transmit(struct nic *nic, const char *destaddr, unsigned int type,
322 memcpy(txp + ETH_ALEN, nic->node_addr, ETH_ALEN);
363 * returns the packet in the array nic->packet.
364 * returns the length of the packet in nic->packetlen.
368 epic100_poll(struct nic *nic, int retrieve)
397 nic->packetlen = le32_to_cpu((rx_ring[entry].buflength))- 4;
398 memcpy(nic->packet, &rx_packet[entry * PKT_BUF_SZ], nic->packetlen);
422 static void epic100_irq(struct nic *nic __unused, irq_action_t action __unused)