Home | History | Annotate | Download | only in netboot

Lines Matching refs:nic

26 #include "nic.h"
158 static void tulip_reset(struct nic *nic)
224 txb[0] = nic->node_addr[0];
225 txb[1] = nic->node_addr[1];
226 txb[4] = nic->node_addr[2];
227 txb[5] = nic->node_addr[3];
228 txb[8] = nic->node_addr[4];
229 txb[9] = nic->node_addr[5];
267 static void tulip_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p)
274 memcpy(&ehdr[ETH_ALEN], nic->node_addr, ETH_ALEN);
312 static int tulip_poll(struct nic *nic)
316 nic->packetlen = (rxd[rxd_tail].status & 0x3FFF0000) >> 16;
323 memcpy(nic->packet, rxb + rxd_tail * BUFLEN, nic->packetlen);
333 static void tulip_disable(struct nic *nic)
341 struct nic *otulip_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci)
363 nic->node_addr[i] = srom[20+i];
365 printf("Tulip %! at ioaddr %#hX\n", nic->node_addr, ioaddr);
367 tulip_reset(nic);
369 nic->reset = tulip_reset;
370 nic->poll = tulip_poll;
371 nic->transmit = tulip_transmit;
372 nic->disable = tulip_disable;
373 return nic;