Lines Matching defs:nic
47 #include "nic.h"
419 void r8169_irq ( struct nic *nic __unused, irq_action_t action ) {
446 static int r8169_poll(struct nic *nic, int retreive)
449 /* nic->packet should contain data on return */
450 /* nic->packetlen should contain length of data */
467 nic->packetlen = (int) (tpc->RxDescArray[cur_rx].
469 memcpy(nic->packet, tpc->RxBufferRing[cur_rx],
470 nic->packetlen);
500 static void r8169_transmit(struct nic *nic, const char *d, /* Destination */
515 memcpy(ptxb + ETH_ALEN, nic->node_addr, ETH_ALEN);
544 static void rtl8169_set_rx_mode(struct nic *nic __unused)
564 static void rtl8169_hw_start(struct nic *nic)
606 rtl8169_set_rx_mode(nic);
612 static void rtl8169_init_ring(struct nic *nic __unused)
641 static void r8169_reset(struct nic *nic)
668 rtl8169_init_ring(nic);
669 rtl8169_hw_start(nic);
675 txb[0] = nic->node_addr[0];
676 txb[1] = nic->node_addr[1];
677 txb[2] = nic->node_addr[2];
678 txb[3] = nic->node_addr[3];
679 txb[4] = nic->node_addr[4];
680 txb[5] = nic->node_addr[5];
714 struct nic *nic = (struct nic *) dev;
734 nic->node_addr[i] = RTL_R8(MAC0 + i);
739 printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr,
831 r8169_reset(nic);
834 nic->poll = r8169_poll;
835 nic->transmit = r8169_transmit;
836 nic->irqno = pci->irq;
837 nic->irq = r8169_irq;
838 nic->ioaddr = ioaddr;