Home | History | Annotate | Download | only in netboot

Lines Matching refs:nic

28 #include "nic.h"
63 static void t509_reset(struct nic *nic)
107 outb(nic->node_addr[i], BASE + EP_W2_ADDR_0 + i);
155 struct nic *nic,
201 outsw(BASE + EP_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2);
218 static int t509_poll(struct nic *nic)
259 insw(BASE + EP_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2);
261 nic->packet[rx_fifo-1]=inb(BASE + EP_W1_RX_PIO_RD_1);
262 nic->packetlen=rx_fifo;
271 insw(BASE + EP_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2);
273 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + EP_W1_RX_PIO_RD_1);
274 nic->packetlen+=rx_fifo;
281 printf("=%d",nic->packetlen);
292 type = (nic->packet[12]<<8) | nic->packet[13];
293 if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+
294 nic->packet[5] == 0xFF*ETH_ALEN)
374 static void t509_disable(struct nic *nic)
383 struct nic *t529_probe(struct nic *nic, unsigned short *probe_addrs)
385 struct nic *t509_probe(struct nic *nic, unsigned short *probe_addrs)
397 t509_disable(nic); /* in case board was active */
398 /* note that nic is not used */
596 p = (unsigned short *) nic->node_addr;
603 printf("Ethernet address: %!\n", nic->node_addr);
604 t509_reset(nic);
605 nic->reset = t509_reset;
606 nic->poll = t509_poll;
607 nic->transmit = t509_transmit;
608 nic->disable = t509_disable;
609 return nic;