Home | History | Annotate | Download | only in netboot

Lines Matching refs:nic

18 #include "nic.h"
167 /* NIC specific static variables go here */
195 static void ni5010_reset(struct nic *nic)
209 outb(nic->node_addr[i], EDLC_ADDR + i);
221 static int ni5010_poll(struct nic *nic)
230 nic->packetlen = inw(IE_RCNT);
234 insb(IE_RBUF, nic->packet, nic->packetlen);
241 static void ni5010_transmit(struct nic *nic,
260 outsb(IE_XBUF, nic->node_addr, ETH_ALEN);/* Put src in buffer */
280 static void ni5010_disable(struct nic *nic)
292 static int ni5010_probe1(struct nic *nic)
320 nic->node_addr[i] = inb(IE_SAPROM);
322 printf("\nNI5010 ioaddr %#hX, addr %!\n", ioaddr, nic->node_addr);
349 struct nic *ni5010_probe(struct nic *nic, unsigned short *probe_addrs)
359 if (ni5010_probe1(nic))
364 ni5010_reset(nic);
365 /* point to NIC specific routines */
366 nic->reset = ni5010_reset;
367 nic->poll = ni5010_poll;
368 nic->transmit = ni5010_transmit;
369 nic->disable = ni5010_disable;
370 return (nic);