Lines Matching refs:nic
3 LANCE NIC driver for Etherboot
18 #include "nic.h"
212 static void lance_reset(struct nic *nic)
262 lp->init_block.phys_addr[i] = nic->node_addr[i];
302 static int lance_poll(struct nic *nic)
315 memcpy(nic->packet, lp->rbuf[lp->rx_idx], nic->packetlen = lp->rx_ring[lp->rx_idx].msg_length);
336 struct nic *nic,
346 memcpy(&lp->tbuf[ETH_ALEN], nic->node_addr, ETH_ALEN); /* src */
383 static void lance_disable(struct nic *nic)
398 static int lance_probe1(struct nic *nic, struct pci_device *pci)
400 static int lance_probe1(struct nic *nic)
455 nic->node_addr[i] = inb(ioaddr+LANCE_ETH_ADDR+i);
486 chip_table[lance_version].name, ioaddr, dma, nic->node_addr);
488 printf(" %s base %#hX, addr %!\n", chip_table[lance_version].name, ioaddr, nic->node_addr);
505 struct nic *lancepci_probe(struct nic *nic, unsigned short *probe_addrs, struct pci_device *pci)
508 struct nic *ne2100_probe(struct nic *nic, unsigned short *probe_addrs)
511 struct nic *ni6510_probe(struct nic *nic, unsigned short *probe_addrs)
535 if (lance_probe1(nic) >= 0)
541 if (lance_probe1(nic) >= 0)
546 if (lance_probe1(nic, pci) >= 0)
553 /* point to NIC specific routines */
554 lance_reset(nic);
555 nic->reset = lance_reset;
556 nic->poll = lance_poll;
557 nic->transmit = lance_transmit;
558 nic->disable = lance_disable;
559 return nic;