Home | History | Annotate | Download | only in netboot

Lines Matching refs:nic

46 #include "nic.h"
166 struct nic *davicom_probe(struct nic *nic, unsigned short *io_addrs,
168 static void davicom_init_chain(struct nic *nic); /* Sten 10/9 */
169 static void davicom_reset(struct nic *nic);
170 static void davicom_transmit(struct nic *nic, const char *d, unsigned int t,
172 static int davicom_poll(struct nic *nic);
173 static void davicom_disable(struct nic *nic);
183 static void davicom_media_chk(struct nic *);
367 static void davicom_media_chk(struct nic * nic)
447 static void davicom_init_chain(struct nic *nic)
466 txb[0] = nic->node_addr[0];
467 txb[1] = nic->node_addr[1];
468 txb[4] = nic->node_addr[2];
469 txb[5] = nic->node_addr[3];
470 txb[8] = nic->node_addr[4];
471 txb[9] = nic->node_addr[5];
495 static void davicom_reset(struct nic *nic)
514 davicom_init_chain(nic); /* Sten 10/9 */
522 davicom_media_chk(nic);
561 static void davicom_transmit(struct nic *nic, const char *d, unsigned int t,
573 memcpy(&txb[ETH_ALEN], nic->node_addr, ETH_ALEN); /* SA 6byte*/
603 static int davicom_poll(struct nic *nic)
612 nic->packetlen = (rxd[rxd_tail].status & 0x3FFF0000) >> 16;
626 memcpy(nic->packet, rxb + rxd_tail * BUFLEN, nic->packetlen);
640 static void davicom_disable(struct nic *nic)
658 struct nic *davicom_probe(struct nic *nic, unsigned short *io_addrs,
690 nic->node_addr[i] = ee_data[20+i];
692 printf("Davicom %! at ioaddr %#hX\n", nic->node_addr, ioaddr);
695 davicom_reset(nic);
697 nic->reset = davicom_reset;
698 nic->poll = davicom_poll;
699 nic->transmit = davicom_transmit;
700 nic->disable = davicom_disable;
702 return nic;