Home | History | Annotate | Download | only in netboot

Lines Matching full:nic

57 #include "nic.h"
221 struct nic *natsemi_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci);
224 static void natsemi_init(struct nic *nic);
225 static void natsemi_reset(struct nic *nic);
226 static void natsemi_init_rxfilter(struct nic *nic);
227 static void natsemi_init_txd(struct nic *nic);
228 static void natsemi_init_rxd(struct nic *nic);
229 static void natsemi_set_rx_mode(struct nic *nic);
230 static void natsemi_check_duplex(struct nic *nic);
231 static void natsemi_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p);
232 static int natsemi_poll(struct nic *nic);
233 static void natsemi_disable(struct nic *nic);
239 * globals required by other routines, and initializes the NIC, making it
246 * Returns: struct nic *: pointer to NIC data structure
249 struct nic *
250 natsemi_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci)
284 nic->node_addr[i*2] = (eedata << 1) + (prev_eedata >> 15);
285 nic->node_addr[i*2+1] = eedata >> 7;
290 nic->node_addr, ioaddr);
319 natsemi_init(nic);
321 nic->reset = natsemi_init;
322 nic->poll = natsemi_poll;
323 nic->transmit = natsemi_transmit;
324 nic->disable = natsemi_disable;
326 return nic;
404 * Arguments: struct nic *nic: NIC data structure
410 natsemi_init(struct nic *nic)
412 natsemi_reset(nic);
422 natsemi_init_rxfilter(nic);
424 natsemi_init_txd(nic);
425 natsemi_init_rxd(nic);
440 natsemi_check_duplex(nic);
441 natsemi_set_rx_mode(nic);
451 * Arguments: struct nic *nic: NIC data structure
456 natsemi_reset(struct nic *nic)
481 * Arguments: struct nic *nic: NIC data structure
487 natsemi_init_rxfilter(struct nic *nic)
493 outw(nic->node_addr[i] + (nic->node_addr[i+1] << 8), ioaddr + RxFilterData);
502 * Arguments: struct nic *nic: NIC data structure
508 natsemi_init_txd(struct nic *nic)
525 * Arguments: struct nic *nic: NIC data structure
531 natsemi_init_rxd(struct nic *nic)
561 * Arguments: struct nic *nic: NIC data structure
566 static void natsemi_set_rx_mode(struct nic *nic)
573 static void natsemi_check_duplex(struct nic *nic)
605 natsemi_transmit(struct nic *nic,
624 memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN);
667 * Arguments: struct nic *nic: NIC data structure
673 * Returns (copies) the packet to the array nic->packet.
674 * Returns the length of the packet in nic->packetlen.
678 natsemi_poll(struct nic *nic)
693 nic->packetlen = (rx_status & DSIZE) - CRC_SIZE;
702 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen);
723 * Arguments: struct nic *nic: NIC data structure
729 natsemi_disable(struct nic *nic)