Lines Matching refs:nic
36 #include "nic.h"
114 static void fa311_reset(struct nic *nic);
115 static int fa311_poll(struct nic *nic);
116 static void fa311_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p);
117 static void fa311_disable(struct nic *nic);
122 struct nic * fa311_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci)
155 nic->node_addr[i] = macaddr[i];
156 printf("%! ", nic->node_addr);
160 fa311_reset(nic);
162 nic->reset = fa311_reset;
163 nic->disable = fa311_disable;
164 nic->poll = fa311_poll;
165 nic->transmit = fa311_transmit;
210 return nic;
214 static void fa311_reset(struct nic *nic)
228 static int fa311_poll(struct nic *nic)
253 nic->packetlen = (desc_status & 0x0fff) - 4; /* Omit CRC size. */
254 memcpy(nic->packet, (char*)(dev->rx_ring[entry].addr), nic->packetlen);
269 static void fa311_transmit(struct nic *nic, const char *destaddr, unsigned int type, unsigned int len, const char *data)
284 memcpy(txp + ETH_ALEN, nic->node_addr, ETH_ALEN);
320 static void fa311_disable(struct nic *nic)