Lines Matching defs:nic
81 #include "nic.h"
303 static void w89c840_reset(struct nic *nic)
317 writeb(nic->node_addr[i], ioaddr + StationAddr + i);
379 static int w89c840_poll(struct nic *nic, int retrieve)
382 /* nic->packet should contain data on return */
383 /* nic->packetlen should contain length of data */
434 w89c840_reset(nic);
447 nic->packetlen = pkt_len;
452 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len);
463 nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3],
464 nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7],
465 nic->packet[8], nic->packet[9], nic->packet[10],
466 nic->packet[11], nic->packet[12], nic->packet[13],
467 nic->packet[14], nic->packet[15], nic->packet[16],
468 nic->packet[17]);
485 struct nic *nic,
502 memcpy (tx_packet + ETH_ALEN, nic->node_addr, ETH_ALEN);/* src */
584 struct nic *nic = (struct nic *)dev;
586 w89c840_reset(nic);
597 static void w89c840_irq(struct nic *nic __unused, irq_action_t action __unused)
614 struct nic *nic = (struct nic *)dev;
623 nic->ioaddr = p->ioaddr & ~3;
624 nic->irqno = 0;
662 nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
664 printf ("Ethernet addr: %!\n", nic->node_addr);
699 nic->poll = w89c840_poll;
700 nic->transmit = w89c840_transmit;
701 nic->irq = w89c840_irq;
703 w89c840_reset(nic);