Home | History | Annotate | Download | only in netboot

Lines Matching full:nic

3 Intel EEPRO/10 NIC driver for Etherboot
28 #include "nic.h"
296 static void eepro_reset(struct nic *nic)
309 outb(nic->node_addr[i], ioaddr + I_ADD_REG0 + i);
341 static int eepro_poll(struct nic *nic)
348 /* nic->packet should contain data on return */
349 /* nic->packetlen should contain length of data */
371 insw(ioaddr + IO_PORT, nic->packet, ((rcv_size + 3) >> 1));
374 printf("%hhX", nic->packet[i]);
378 nic->packetlen = rcv_size;
391 struct nic *nic,
420 outsw(ioaddr + IO_PORT, nic->node_addr, ETH_ALEN / 2);
450 static void eepro_disable(struct nic *nic)
502 static int eepro_probe1(struct nic *nic)
546 nic->node_addr[i] = station_addr.caddr[i];
548 printf("\n%s ioaddr %#hX, addr %!", name, ioaddr, nic->node_addr);
564 struct nic *eepro_probe(struct nic *nic, unsigned short *probe_addrs)
574 if (eepro_probe1(nic))
579 eepro_reset(nic);
580 /* point to NIC specific routines */
581 nic->reset = eepro_reset;
582 nic->poll = eepro_poll;
583 nic->transmit = eepro_transmit;
584 nic->disable = eepro_disable;
585 return (nic);