Lines Matching defs:nic
57 #include "nic.h"
216 static void natsemi_init(struct nic *nic);
217 static void natsemi_reset(struct nic *nic);
218 static void natsemi_init_rxfilter(struct nic *nic);
219 static void natsemi_init_txd(struct nic *nic);
220 static void natsemi_init_rxd(struct nic *nic);
221 static void natsemi_set_rx_mode(struct nic *nic);
222 static void natsemi_check_duplex(struct nic *nic);
223 static void natsemi_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p);
224 static int natsemi_poll(struct nic *nic, int retrieve);
226 static void natsemi_irq(struct nic *nic, irq_action_t action);
239 * Returns: struct nic *: pointer to NIC data structure
245 struct nic *nic = (struct nic *)dev;
257 nic->irqno = 0;
258 nic->ioaddr = pci->ioaddr & ~3;
281 nic->node_addr[i*2] = (eedata << 1) + (prev_eedata >> 15);
282 nic->node_addr[i*2+1] = eedata >> 7;
287 nic->node_addr, ioaddr);
316 natsemi_init(nic);
319 nic->poll = natsemi_poll;
320 nic->transmit = natsemi_transmit;
321 nic->irq = natsemi_irq;
401 * Arguments: struct nic *nic: NIC data structure
407 natsemi_init(struct nic *nic)
409 natsemi_reset(nic);
419 natsemi_init_rxfilter(nic);
421 natsemi_init_txd(nic);
422 natsemi_init_rxd(nic);
437 natsemi_check_duplex(nic);
438 natsemi_set_rx_mode(nic);
448 * Arguments: struct nic *nic: NIC data structure
453 natsemi_reset(struct nic *nic __unused)
478 * Arguments: struct nic *nic: NIC data structure
484 natsemi_init_rxfilter(struct nic *nic)
490 outw(nic->node_addr[i] + (nic->node_addr[i+1] << 8), ioaddr + RxFilterData);
499 * Arguments: struct nic *nic: NIC data structure
505 natsemi_init_txd(struct nic *nic __unused)
522 * Arguments: struct nic *nic: NIC data structure
528 natsemi_init_rxd(struct nic *nic __unused)
558 * Arguments: struct nic *nic: NIC data structure
563 static void natsemi_set_rx_mode(struct nic *nic __unused)
571 static void natsemi_check_duplex(struct nic *nic __unused)
603 natsemi_transmit(struct nic *nic,
622 memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN);
665 * Arguments: struct nic *nic: NIC data structure
671 * Returns (copies) the packet to the array nic->packet.
672 * Returns the length of the packet in nic->packetlen.
676 natsemi_poll(struct nic *nic, int retrieve)
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
731 struct nic *nic = (struct nic *)dev;
733 natsemi_init(nic);
750 * Arguments: struct nic *nic: NIC data structure
757 natsemi_irq(struct nic *nic __unused, irq_action_t action __unused)