Lines Matching full:nic
4 TIARA (Fujitsu Etherstar) NIC driver for Etherboot
23 #include "nic.h"
107 /* NIC specific static variables go here */
114 static void tiara_reset(struct nic *nic)
129 outb(nic->node_addr[i], ioaddr + DLCR_NODE_ID + i);
137 static int tiara_poll(struct nic *nic)
150 insw(ioaddr + BMPR_MEM_PORT, nic->packet, len / 2);
152 if (memcmp(nic->packet + ETH_ALEN, nic->node_addr, ETH_ALEN) == 0)
154 nic->packetlen = len;
162 struct nic *nic,
176 outsw(ioaddr + BMPR_MEM_PORT, nic->node_addr, ETH_ALEN / 2);
196 static void tiara_disable(struct nic *nic)
202 static int tiara_probe1(struct nic *nic)
210 nic->node_addr[i] = inb(ioaddr + PROM_ID + i);
211 if (memcmp(nic->node_addr, vendor_prefix, sizeof(vendor_prefix)) != 0)
213 if (memcmp(nic->node_addr, all_ones, sizeof(all_ones)) == 0)
215 printf("\nTiara ioaddr %#hX, addr %!\n", ioaddr, nic->node_addr);
222 struct nic *tiara_probe(struct nic *nic, unsigned short *probe_addrs)
240 if (tiara_probe1(nic))
245 tiara_reset(nic);
246 /* point to NIC specific routines */
247 nic->reset = tiara_reset;
248 nic->poll = tiara_poll;
249 nic->transmit = tiara_transmit;
250 nic->disable = tiara_disable;
251 return nic;