Symbol: nic
usr/src/cmd/ipf/tools/ip_fil.c
811
void frsync(command, version, nic, data, ifs)
usr/src/cmd/ipf/tools/ip_fil.c
813
void *nic;
usr/src/cmd/ldmad/ldma_device.c
220
char *nic = NULL;
usr/src/cmd/ldmad/ldma_device.c
229
nic = malloc(nlen + 1);
usr/src/cmd/ldmad/ldma_device.c
230
if (nic == NULL) {
usr/src/cmd/ldmad/ldma_device.c
235
(void) strncpy(nic, LDMA_HDR2DATA(request), nlen);
usr/src/cmd/ldmad/ldma_device.c
236
nic[nlen] = '\0';
usr/src/cmd/ldmad/ldma_device.c
238
LDMA_DBG("VALIDATE_NIC(%s)", nic);
usr/src/cmd/ldmad/ldma_device.c
254
if (dladm_name2info(dlhandle, nic, &linkid, &flag, &class,
usr/src/cmd/ldmad/ldma_device.c
256
LDMA_DBG("VALIDATE_NIC(%s): name2info failed", nic);
usr/src/cmd/ldmad/ldma_device.c
258
LDMA_DBG("VALIDATE_NIC(%s): media=0x%x", nic, media);
usr/src/cmd/ldmad/ldma_device.c
278
(nic)? nic : "<none>", status);
usr/src/cmd/ldmad/ldma_device.c
281
nic, reply->msg_info);
usr/src/cmd/ldmad/ldma_device.c
284
free(nic);
usr/src/compat/bhyve/net/ieee_oui.h
36
#define OUI_FREEBSD(nic) (OUI_FREEBSD_BASE | (nic))
usr/src/grub/grub-0.97/netboot/3c595.c
108
outb(nic->node_addr[i], BASE + VX_W2_ADDR_0 + i);
usr/src/grub/grub-0.97/netboot/3c595.c
162
struct nic *nic,
usr/src/grub/grub-0.97/netboot/3c595.c
210
outsw(BASE + VX_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2);
usr/src/grub/grub-0.97/netboot/3c595.c
227
static int t595_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/3c595.c
269
insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2);
usr/src/grub/grub-0.97/netboot/3c595.c
271
nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1);
usr/src/grub/grub-0.97/netboot/3c595.c
272
nic->packetlen=rx_fifo;
usr/src/grub/grub-0.97/netboot/3c595.c
282
insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2);
usr/src/grub/grub-0.97/netboot/3c595.c
284
nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1);
usr/src/grub/grub-0.97/netboot/3c595.c
285
nic->packetlen+=rx_fifo;
usr/src/grub/grub-0.97/netboot/3c595.c
292
printf("=%d",nic->packetlen);
usr/src/grub/grub-0.97/netboot/3c595.c
305
type = (nic->packet[12]<<8) | nic->packet[13];
usr/src/grub/grub-0.97/netboot/3c595.c
306
if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+
usr/src/grub/grub-0.97/netboot/3c595.c
307
nic->packet[5] == 0xFF*ETH_ALEN)
usr/src/grub/grub-0.97/netboot/3c595.c
445
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/3c595.c
446
t595_reset(nic);
usr/src/grub/grub-0.97/netboot/3c595.c
455
static void t595_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/3c595.c
472
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/3c595.c
481
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/3c595.c
482
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/3c595.c
500
p = (unsigned short *) nic->node_addr;
usr/src/grub/grub-0.97/netboot/3c595.c
508
printf("Ethernet address: %!\n", nic->node_addr);
usr/src/grub/grub-0.97/netboot/3c595.c
510
t595_reset(nic);
usr/src/grub/grub-0.97/netboot/3c595.c
512
nic->poll = t595_poll;
usr/src/grub/grub-0.97/netboot/3c595.c
513
nic->transmit = t595_transmit;
usr/src/grub/grub-0.97/netboot/3c595.c
514
nic->irq = t595_irq;
usr/src/grub/grub-0.97/netboot/3c595.c
64
static void t595_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/3c90x.c
474
a3c90x_transmit(struct nic *nic __unused, const char *d, unsigned int t,
usr/src/grub/grub-0.97/netboot/3c90x.c
602
a3c90x_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/3c90x.c
620
INF_3C90X.ReceiveUPD.DataAddr = virt_to_bus(nic->packet);
usr/src/grub/grub-0.97/netboot/3c90x.c
652
nic->packetlen = (INF_3C90X.ReceiveUPD.UpPktStatus & 0x1FFF);
usr/src/grub/grub-0.97/netboot/3c90x.c
675
static void a3c90x_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/3c90x.c
693
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/3c90x.c
707
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/3c90x.c
708
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/3c90x.c
814
nic->node_addr[i] = (eeprom[HWADDR_OFFSET + i/2] >> (8*((i&1)^1))) & 0xff;
usr/src/grub/grub-0.97/netboot/3c90x.c
954
nic->poll = a3c90x_poll;
usr/src/grub/grub-0.97/netboot/3c90x.c
955
nic->transmit = a3c90x_transmit;
usr/src/grub/grub-0.97/netboot/3c90x.c
956
nic->irq = a3c90x_irq;
usr/src/grub/grub-0.97/netboot/davicom.c
157
static void davicom_init_chain(struct nic *nic); /* Sten 10/9 */
usr/src/grub/grub-0.97/netboot/davicom.c
158
static void davicom_reset(struct nic *nic);
usr/src/grub/grub-0.97/netboot/davicom.c
159
static void davicom_transmit(struct nic *nic, const char *d, unsigned int t,
usr/src/grub/grub-0.97/netboot/davicom.c
161
static int davicom_poll(struct nic *nic, int retrieve);
usr/src/grub/grub-0.97/netboot/davicom.c
171
static void davicom_media_chk(struct nic *);
usr/src/grub/grub-0.97/netboot/davicom.c
350
static void davicom_media_chk(struct nic * nic __unused)
usr/src/grub/grub-0.97/netboot/davicom.c
428
static void davicom_init_chain(struct nic *nic)
usr/src/grub/grub-0.97/netboot/davicom.c
447
txb[0] = nic->node_addr[0];
usr/src/grub/grub-0.97/netboot/davicom.c
448
txb[1] = nic->node_addr[1];
usr/src/grub/grub-0.97/netboot/davicom.c
449
txb[4] = nic->node_addr[2];
usr/src/grub/grub-0.97/netboot/davicom.c
450
txb[5] = nic->node_addr[3];
usr/src/grub/grub-0.97/netboot/davicom.c
451
txb[8] = nic->node_addr[4];
usr/src/grub/grub-0.97/netboot/davicom.c
452
txb[9] = nic->node_addr[5];
usr/src/grub/grub-0.97/netboot/davicom.c
475
static void davicom_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/davicom.c
493
davicom_init_chain(nic); /* Sten 10/9 */
usr/src/grub/grub-0.97/netboot/davicom.c
501
davicom_media_chk(nic);
usr/src/grub/grub-0.97/netboot/davicom.c
539
static void davicom_transmit(struct nic *nic, const char *d, unsigned int t,
usr/src/grub/grub-0.97/netboot/davicom.c
551
memcpy(&txb[ETH_ALEN], nic->node_addr, ETH_ALEN); /* SA 6byte*/
usr/src/grub/grub-0.97/netboot/davicom.c
580
static int davicom_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/davicom.c
591
nic->packetlen = (rxd[rxd_tail].status & 0x3FFF0000) >> 16;
usr/src/grub/grub-0.97/netboot/davicom.c
605
memcpy(nic->packet, rxb + rxd_tail * BUFLEN, nic->packetlen);
usr/src/grub/grub-0.97/netboot/davicom.c
620
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/davicom.c
623
davicom_reset(nic);
usr/src/grub/grub-0.97/netboot/davicom.c
639
static void davicom_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/davicom.c
657
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/davicom.c
669
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/davicom.c
670
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/davicom.c
689
nic->node_addr[i] = ee_data[20+i];
usr/src/grub/grub-0.97/netboot/davicom.c
691
printf("Davicom %! at ioaddr %#hX\n", nic->node_addr, ioaddr);
usr/src/grub/grub-0.97/netboot/davicom.c
694
davicom_reset(nic);
usr/src/grub/grub-0.97/netboot/davicom.c
697
nic->poll = davicom_poll;
usr/src/grub/grub-0.97/netboot/davicom.c
698
nic->transmit = davicom_transmit;
usr/src/grub/grub-0.97/netboot/davicom.c
699
nic->irq = davicom_irq;
usr/src/grub/grub-0.97/netboot/e1000.c
3438
e1000_poll (struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/e1000.c
3452
memcpy (nic->packet, packet, rd->length);
usr/src/grub/grub-0.97/netboot/e1000.c
3453
nic->packetlen = rd->length;
usr/src/grub/grub-0.97/netboot/e1000.c
3462
e1000_transmit (struct nic *nic, const char *d, /* Destination */
usr/src/grub/grub-0.97/netboot/e1000.c
3478
memcpy (&hdr.src_addr, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/e1000.c
3531
static void e1000_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/e1000.c
3554
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/e1000.c
3591
nic->ioaddr = p->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/e1000.c
3592
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/e1000.c
3614
memcpy (nic->node_addr, hw.mac_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/e1000.c
3616
printf("Ethernet addr: %!\n", nic->node_addr);
usr/src/grub/grub-0.97/netboot/e1000.c
3635
nic->poll = e1000_poll;
usr/src/grub/grub-0.97/netboot/e1000.c
3636
nic->transmit = e1000_transmit;
usr/src/grub/grub-0.97/netboot/e1000.c
3637
nic->irq = e1000_irq;
usr/src/grub/grub-0.97/netboot/eepro100.c
365
static void eepro100_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/eepro100.c
387
static void eepro100_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p)
usr/src/grub/grub-0.97/netboot/eepro100.c
407
memcpy (&hdr.src_addr, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/eepro100.c
482
static int eepro100_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/eepro100.c
523
nic->packetlen = ACCESS(rxfd)count & 0x3fff;
usr/src/grub/grub-0.97/netboot/eepro100.c
524
memcpy (nic->packet, ACCESS(rxfd)packet, nic->packetlen);
usr/src/grub/grub-0.97/netboot/eepro100.c
526
hd (nic->packet, 0x30);
usr/src/grub/grub-0.97/netboot/eepro100.c
575
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/eepro100.c
589
nic->ioaddr = ioaddr;
usr/src/grub/grub-0.97/netboot/eepro100.c
595
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/eepro100.c
614
nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
usr/src/grub/grub-0.97/netboot/eepro100.c
616
printf ("Ethernet addr: %!\n", nic->node_addr);
usr/src/grub/grub-0.97/netboot/eepro100.c
640
ACCESS(rxfd)rx_buf_addr = virt_to_bus(&nic->packet);
usr/src/grub/grub-0.97/netboot/eepro100.c
673
t[i] = nic->node_addr[i];
usr/src/grub/grub-0.97/netboot/eepro100.c
741
nic->poll = eepro100_poll;
usr/src/grub/grub-0.97/netboot/eepro100.c
742
nic->transmit = eepro100_transmit;
usr/src/grub/grub-0.97/netboot/eepro100.c
743
nic->irq = eepro100_irq;
usr/src/grub/grub-0.97/netboot/epic100.c
100
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/epic100.c
114
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/epic100.c
115
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/epic100.c
177
ap = (unsigned short*)nic->node_addr;
usr/src/grub/grub-0.97/netboot/epic100.c
181
printf(" I/O %#hX %! ", ioaddr, nic->node_addr);
usr/src/grub/grub-0.97/netboot/epic100.c
205
nic->poll = epic100_poll;
usr/src/grub/grub-0.97/netboot/epic100.c
206
nic->transmit = epic100_transmit;
usr/src/grub/grub-0.97/netboot/epic100.c
207
nic->irq = epic100_irq;
usr/src/grub/grub-0.97/netboot/epic100.c
301
epic100_transmit(struct nic *nic, const char *destaddr, unsigned int type,
usr/src/grub/grub-0.97/netboot/epic100.c
322
memcpy(txp + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/epic100.c
368
epic100_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/epic100.c
397
nic->packetlen = le32_to_cpu((rx_ring[entry].buflength))- 4;
usr/src/grub/grub-0.97/netboot/epic100.c
398
memcpy(nic->packet, &rx_packet[entry * PKT_BUF_SZ], nic->packetlen);
usr/src/grub/grub-0.97/netboot/epic100.c
422
static void epic100_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/epic100.c
53
static int epic100_poll(struct nic *nic, int retrieve);
usr/src/grub/grub-0.97/netboot/epic100.c
54
static void epic100_transmit(struct nic *nic, const char *destaddr,
usr/src/grub/grub-0.97/netboot/epic100.c
60
static void epic100_irq(struct nic *nic, irq_action_t action);
usr/src/grub/grub-0.97/netboot/forcedeth.c
1014
forcedeth_reset(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
1018
nic->poll = forcedeth_poll;
usr/src/grub/grub-0.97/netboot/forcedeth.c
1019
nic->transmit = forcedeth_transmit;
usr/src/grub/grub-0.97/netboot/forcedeth.c
1020
nic->irq = forcedeth_irq;
usr/src/grub/grub-0.97/netboot/forcedeth.c
392
static int mii_rw(struct nic *nic __unused, int addr, int miireg,
usr/src/grub/grub-0.97/netboot/forcedeth.c
451
static void start_rx(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/forcedeth.c
481
static void start_tx(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/forcedeth.c
505
static void txrx_reset(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/forcedeth.c
523
static int alloc_rx(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/forcedeth.c
545
static int update_linkspeed(struct nic *nic)
usr/src/grub/grub-0.97/netboot/forcedeth.c
549
adv = mii_rw(nic, np->phyaddr, MII_ADVERTISE, MII_READ);
usr/src/grub/grub-0.97/netboot/forcedeth.c
550
lpa = mii_rw(nic, np->phyaddr, MII_LPA, MII_READ);
usr/src/grub/grub-0.97/netboot/forcedeth.c
583
static int init_ring(struct nic *nic)
usr/src/grub/grub-0.97/netboot/forcedeth.c
597
return alloc_rx(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
600
static void set_multicast(struct nic *nic)
usr/src/grub/grub-0.97/netboot/forcedeth.c
630
start_rx(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
636
static int forcedeth_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/forcedeth.c
653
txrx_reset(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
658
oom = init_ring(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
665
(nic->node_addr[0] << 0) + (nic->node_addr[1] << 8) +
usr/src/grub/grub-0.97/netboot/forcedeth.c
666
(nic->node_addr[2] << 16) + (nic->node_addr[3] << 24);
usr/src/grub/grub-0.97/netboot/forcedeth.c
668
(nic->node_addr[4] << 0) + (nic->node_addr[5] << 8);
usr/src/grub/grub-0.97/netboot/forcedeth.c
693
id1 = mii_rw(nic, i, MII_PHYSID1, MII_READ);
usr/src/grub/grub-0.97/netboot/forcedeth.c
696
id2 = mii_rw(nic, i, MII_PHYSID2, MII_READ);
usr/src/grub/grub-0.97/netboot/forcedeth.c
703
update_linkspeed(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
780
set_multicast(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
782
start_tx(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
785
(mii_rw(nic, np->phyaddr, MII_BMSR, MII_READ) &
usr/src/grub/grub-0.97/netboot/forcedeth.c
800
static int forcedeth_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/forcedeth.c
821
nic->packetlen = len;
usr/src/grub/grub-0.97/netboot/forcedeth.c
823
memcpy(nic->packet, rxb +
usr/src/grub/grub-0.97/netboot/forcedeth.c
824
(i * RX_NIC_BUFSIZE), nic->packetlen);
usr/src/grub/grub-0.97/netboot/forcedeth.c
828
alloc_rx(nic);
usr/src/grub/grub-0.97/netboot/forcedeth.c
836
static void forcedeth_transmit(struct nic *nic, const char *d, /* Destination */
usr/src/grub/grub-0.97/netboot/forcedeth.c
854
memcpy(ptxb + ETH_ALEN, nic->node_addr, ETH_ALEN); /* src */
usr/src/grub/grub-0.97/netboot/forcedeth.c
910
static void forcedeth_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/forcedeth.c
930
struct nic *nic = (struct nic *) dev;
usr/src/grub/grub-0.97/netboot/forcedeth.c
941
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/forcedeth.c
942
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/forcedeth.c
964
nic->node_addr[0] = (np->orig_mac[1] >> 8) & 0xff;
usr/src/grub/grub-0.97/netboot/forcedeth.c
965
nic->node_addr[1] = (np->orig_mac[1] >> 0) & 0xff;
usr/src/grub/grub-0.97/netboot/forcedeth.c
966
nic->node_addr[2] = (np->orig_mac[0] >> 24) & 0xff;
usr/src/grub/grub-0.97/netboot/forcedeth.c
967
nic->node_addr[3] = (np->orig_mac[0] >> 16) & 0xff;
usr/src/grub/grub-0.97/netboot/forcedeth.c
968
nic->node_addr[4] = (np->orig_mac[0] >> 8) & 0xff;
usr/src/grub/grub-0.97/netboot/forcedeth.c
969
nic->node_addr[5] = (np->orig_mac[0] >> 0) & 0xff;
usr/src/grub/grub-0.97/netboot/forcedeth.c
990
printf("%s: MAC Address %!, ", pci->name, nic->node_addr);
usr/src/grub/grub-0.97/netboot/fsys_tftp.c
141
tr = (struct tftp_t *)&nic.packet[ETH_HLEN];
usr/src/grub/grub-0.97/netboot/fsys_tftp.c
290
tr = (struct tftp_t *) &nic.packet[ETH_HLEN];
usr/src/grub/grub-0.97/netboot/fsys_tftp.c
699
buf = (char *)&nic.packet;
usr/src/grub/grub-0.97/netboot/grub.h
170
extern struct nic nic;
usr/src/grub/grub-0.97/netboot/natsemi.c
216
static void natsemi_init(struct nic *nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
217
static void natsemi_reset(struct nic *nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
218
static void natsemi_init_rxfilter(struct nic *nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
219
static void natsemi_init_txd(struct nic *nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
220
static void natsemi_init_rxd(struct nic *nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
221
static void natsemi_set_rx_mode(struct nic *nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
222
static void natsemi_check_duplex(struct nic *nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
223
static void natsemi_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p);
usr/src/grub/grub-0.97/netboot/natsemi.c
224
static int natsemi_poll(struct nic *nic, int retrieve);
usr/src/grub/grub-0.97/netboot/natsemi.c
226
static void natsemi_irq(struct nic *nic, irq_action_t action);
usr/src/grub/grub-0.97/netboot/natsemi.c
245
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/natsemi.c
257
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/natsemi.c
258
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/natsemi.c
281
nic->node_addr[i*2] = (eedata << 1) + (prev_eedata >> 15);
usr/src/grub/grub-0.97/netboot/natsemi.c
282
nic->node_addr[i*2+1] = eedata >> 7;
usr/src/grub/grub-0.97/netboot/natsemi.c
287
nic->node_addr, ioaddr);
usr/src/grub/grub-0.97/netboot/natsemi.c
316
natsemi_init(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
319
nic->poll = natsemi_poll;
usr/src/grub/grub-0.97/netboot/natsemi.c
320
nic->transmit = natsemi_transmit;
usr/src/grub/grub-0.97/netboot/natsemi.c
321
nic->irq = natsemi_irq;
usr/src/grub/grub-0.97/netboot/natsemi.c
407
natsemi_init(struct nic *nic)
usr/src/grub/grub-0.97/netboot/natsemi.c
409
natsemi_reset(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
419
natsemi_init_rxfilter(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
421
natsemi_init_txd(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
422
natsemi_init_rxd(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
437
natsemi_check_duplex(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
438
natsemi_set_rx_mode(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
453
natsemi_reset(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/natsemi.c
484
natsemi_init_rxfilter(struct nic *nic)
usr/src/grub/grub-0.97/netboot/natsemi.c
490
outw(nic->node_addr[i] + (nic->node_addr[i+1] << 8), ioaddr + RxFilterData);
usr/src/grub/grub-0.97/netboot/natsemi.c
505
natsemi_init_txd(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/natsemi.c
528
natsemi_init_rxd(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/natsemi.c
563
static void natsemi_set_rx_mode(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/natsemi.c
571
static void natsemi_check_duplex(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/natsemi.c
603
natsemi_transmit(struct nic *nic,
usr/src/grub/grub-0.97/netboot/natsemi.c
622
memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/natsemi.c
676
natsemi_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/natsemi.c
693
nic->packetlen = (rx_status & DSIZE) - CRC_SIZE;
usr/src/grub/grub-0.97/netboot/natsemi.c
702
memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen);
usr/src/grub/grub-0.97/netboot/natsemi.c
731
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/natsemi.c
733
natsemi_init(nic);
usr/src/grub/grub-0.97/netboot/natsemi.c
757
natsemi_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/nic.c
122
struct nic nic =
usr/src/grub/grub-0.97/netboot/nic.c
139
(int (*)(struct nic *, int))dummy, /* poll */
usr/src/grub/grub-0.97/netboot/nic.c
140
(void (*)(struct nic *, const char *,
usr/src/grub/grub-0.97/netboot/nic.c
143
(void (*)(struct nic *, irq_action_t))dummy, /* irq */
usr/src/grub/grub-0.97/netboot/nic.c
168
dev = &nic.dev;
usr/src/grub/grub-0.97/netboot/nic.c
187
return ((*nic.poll)(&nic, retrieve));
usr/src/grub/grub-0.97/netboot/nic.c
192
(*nic.transmit)(&nic, d, t, s, p);
usr/src/grub/grub-0.97/netboot/nic.c
204
disable(&nic.dev);
usr/src/grub/grub-0.97/netboot/nic.c
209
(*nic.irq)(&nic,action);
usr/src/grub/grub-0.97/netboot/nic.c
284
if (nic.packetlen < ETH_HLEN + sizeof(struct arprequest))
usr/src/grub/grub-0.97/netboot/nic.c
286
arpreply = (struct arprequest *)&nic.packet[ETH_HLEN];
usr/src/grub/grub-0.97/netboot/nic.c
461
if (nic.packetlen < ETH_HLEN + sizeof(struct arprequest))
usr/src/grub/grub-0.97/netboot/nic.c
463
arpreply = (struct arprequest *)&nic.packet[ETH_HLEN];
usr/src/grub/grub-0.97/netboot/nic.c
535
&nic.packet[ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr)];
usr/src/grub/grub-0.97/netboot/nic.c
536
len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) +
usr/src/grub/grub-0.97/netboot/nic.c
632
&nic.packet[ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr)];
usr/src/grub/grub-0.97/netboot/nic.c
633
len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) +
usr/src/grub/grub-0.97/netboot/nic.c
781
(nic.packetlen < sizeof(struct iphdr) + sizeof(struct igmp))) {
usr/src/grub/grub-0.97/netboot/nic.c
785
igmp = (struct igmp *)&nic.packet[sizeof(struct iphdr)];
usr/src/grub/grub-0.97/netboot/nic.c
919
if (nic.packetlen >= ETH_HLEN) {
usr/src/grub/grub-0.97/netboot/nic.c
920
ptype = ((unsigned short) nic.packet[12]) << 8
usr/src/grub/grub-0.97/netboot/nic.c
921
| ((unsigned short) nic.packet[13]);
usr/src/grub/grub-0.97/netboot/nic.c
925
if ((ptype == IP) && (nic.packetlen >= ETH_HLEN + sizeof(struct iphdr))) {
usr/src/grub/grub-0.97/netboot/nic.c
927
ip = (struct iphdr *)&nic.packet[ETH_HLEN];
usr/src/grub/grub-0.97/netboot/nic.c
949
memmove(&nic.packet[ETH_HLEN + sizeof(struct iphdr)],
usr/src/grub/grub-0.97/netboot/nic.c
950
&nic.packet[ETH_HLEN + iplen],
usr/src/grub/grub-0.97/netboot/nic.c
951
nic.packetlen - ipoptlen);
usr/src/grub/grub-0.97/netboot/nic.c
952
nic.packetlen -= ipoptlen;
usr/src/grub/grub-0.97/netboot/nic.c
957
(nic.packetlen >= ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr))) {
usr/src/grub/grub-0.97/netboot/nic.c
958
udp = (struct udphdr *)&nic.packet[ETH_HLEN + sizeof(struct iphdr)];
usr/src/grub/grub-0.97/netboot/nic.c
978
(nic.packetlen >= ETH_HLEN + sizeof(struct arprequest))) {
usr/src/grub/grub-0.97/netboot/nic.c
982
arpreply = (struct arprequest *)&nic.packet[ETH_HLEN];
usr/src/grub/grub-0.97/netboot/nic.h
26
int (*poll)P((struct nic *, int retrieve));
usr/src/grub/grub-0.97/netboot/nic.h
27
void (*transmit)P((struct nic *, const char *d,
usr/src/grub/grub-0.97/netboot/nic.h
29
void (*irq)P((struct nic *, irq_action_t));
usr/src/grub/grub-0.97/netboot/ns83820.c
1000
ns83820_reset(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
1003
nic->poll = ns83820_poll;
usr/src/grub/grub-0.97/netboot/ns83820.c
1004
nic->transmit = ns83820_transmit;
usr/src/grub/grub-0.97/netboot/ns83820.c
1005
nic->irq = ns83820_irq;
usr/src/grub/grub-0.97/netboot/ns83820.c
415
static void phy_intr(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/ns83820.c
502
static void ns83820_set_multicast(struct nic *nic __unused);
usr/src/grub/grub-0.97/netboot/ns83820.c
503
static void ns83820_setup_rx(struct nic *nic)
usr/src/grub/grub-0.97/netboot/ns83820.c
534
phy_intr(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
551
ns83820_set_multicast(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
556
static void ns83820_do_reset(struct nic *nic __unused, u32 which)
usr/src/grub/grub-0.97/netboot/ns83820.c
566
static void ns83820_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/ns83820.c
573
ns83820_setup_rx(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
587
static void ns83820_getmac(struct nic *nic __unused, u8 * mac)
usr/src/grub/grub-0.97/netboot/ns83820.c
602
static void ns83820_set_multicast(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/ns83820.c
618
static void ns83820_run_bist(struct nic *nic __unused, const char *name,
usr/src/grub/grub-0.97/netboot/ns83820.c
656
static void ns83820_check_intr(struct nic *nic) {
usr/src/grub/grub-0.97/netboot/ns83820.c
660
phy_intr(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
673
static int ns83820_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/ns83820.c
681
ns83820_check_intr(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
693
nic->packetlen = cmdsts & 0xffff;
usr/src/grub/grub-0.97/netboot/ns83820.c
694
memcpy(nic->packet,
usr/src/grub/grub-0.97/netboot/ns83820.c
696
nic->packetlen);
usr/src/grub/grub-0.97/netboot/ns83820.c
708
static inline void kick_tx(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/ns83820.c
717
static void ns83820_transmit(struct nic *nic, const char *d, /* Destination */
usr/src/grub/grub-0.97/netboot/ns83820.c
729
kick_tx(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
732
memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/ns83820.c
753
kick_tx(nic);
usr/src/grub/grub-0.97/netboot/ns83820.c
778
ns83820_do_reset((struct nic *) dev, CR_RST);
usr/src/grub/grub-0.97/netboot/ns83820.c
796
static void ns83820_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/ns83820.c
816
struct nic *nic = (struct nic *) dev;
usr/src/grub/grub-0.97/netboot/ns83820.c
841
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/ns83820.c
842
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/ns83820.c
851
ns83820_do_reset(nic, CR_RST);
usr/src/grub/grub-0.97/netboot/ns83820.c
855
ns83820_run_bist(nic, "sram bist", PTSCR_RBIST_EN,
usr/src/grub/grub-0.97/netboot/ns83820.c
857
ns83820_run_bist(nic, "eeprom bist", PTSCR_EEBIST_EN, 0,
usr/src/grub/grub-0.97/netboot/ns83820.c
859
ns83820_run_bist(nic, "eeprom load", PTSCR_EELOAD_EN, 0, 0);
usr/src/grub/grub-0.97/netboot/ns83820.c
983
ns83820_getmac(nic, nic->node_addr);
usr/src/grub/grub-0.97/netboot/ns83820.c
984
printf("%! at ioaddr 0x%hX, ", nic->node_addr, ns->base);
usr/src/grub/grub-0.97/netboot/ns83820.c
994
nic->node_addr, pci->ioaddr));
usr/src/grub/grub-0.97/netboot/ns8390.c
258
static void ns8390_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/ns8390.c
303
outb(nic->node_addr[i], eth_nic_base+D8390_P1_PAR0+i);
usr/src/grub/grub-0.97/netboot/ns8390.c
328
t503_output = (nic->flags) ? 0 : _3COM_CR_XSEL;
usr/src/grub/grub-0.97/netboot/ns8390.c
333
static int ns8390_poll(struct nic *nic, int retrieve);
usr/src/grub/grub-0.97/netboot/ns8390.c
339
static void eth_rx_overrun(struct nic *nic)
usr/src/grub/grub-0.97/netboot/ns8390.c
376
while (ns8390_poll(nic, 1))
usr/src/grub/grub-0.97/netboot/ns8390.c
390
struct nic *nic,
usr/src/grub/grub-0.97/netboot/ns8390.c
402
memcpy((char *)eth_vmem+ETH_ALEN, nic->node_addr, ETH_ALEN); /* src */
usr/src/grub/grub-0.97/netboot/ns8390.c
424
memcpy((char *)eth_vmem+ETH_ALEN, nic->node_addr, ETH_ALEN); /* src */
usr/src/grub/grub-0.97/netboot/ns8390.c
448
eth_pio_write(nic->node_addr, (eth_tx_start<<8)+ETH_ALEN, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/ns8390.c
488
static int ns8390_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/ns8390.c
500
eth_rx_overrun(nic);
usr/src/grub/grub-0.97/netboot/ns8390.c
543
p = nic->packet;
usr/src/grub/grub-0.97/netboot/ns8390.c
544
nic->packetlen = len; /* available to caller */
usr/src/grub/grub-0.97/netboot/ns8390.c
588
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/ns8390.c
590
ns8390_reset(nic);
usr/src/grub/grub-0.97/netboot/ns8390.c
596
static void ns8390_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/ns8390.c
617
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/ns8390.c
626
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/ns8390.c
653
nic->ioaddr = eth_nic_base;
usr/src/grub/grub-0.97/netboot/ns8390.c
686
nic->node_addr[i] = inb(i+eth_asic_base+WD_LAR);
usr/src/grub/grub-0.97/netboot/ns8390.c
691
printf(", PIO mode, addr %!\n", nic->node_addr);
usr/src/grub/grub-0.97/netboot/ns8390.c
696
printf(", memory %#x, addr %!\n", eth_bmem, nic->node_addr);
usr/src/grub/grub-0.97/netboot/ns8390.c
707
printf(", memory %#x, addr %!\n", eth_bmem, nic->node_addr);
usr/src/grub/grub-0.97/netboot/ns8390.c
732
nic->flags = 1; /* aui */
usr/src/grub/grub-0.97/netboot/ns8390.c
734
nic->flags = 0; /* no aui */
usr/src/grub/grub-0.97/netboot/ns8390.c
818
nic->ioaddr = eth_nic_base;
usr/src/grub/grub-0.97/netboot/ns8390.c
825
nic->node_addr[i] = inb(eth_nic_base+i);
usr/src/grub/grub-0.97/netboot/ns8390.c
827
printf(", %s, addr %!\n", nic->flags ? "AUI" : "internal xcvr",
usr/src/grub/grub-0.97/netboot/ns8390.c
828
nic->node_addr);
usr/src/grub/grub-0.97/netboot/ns8390.c
921
nic->node_addr[i] = romdata[i + ((eth_flags & FLAG_16BIT) ? i : 0)];
usr/src/grub/grub-0.97/netboot/ns8390.c
923
nic->ioaddr = eth_nic_base;
usr/src/grub/grub-0.97/netboot/ns8390.c
926
nic->node_addr);
usr/src/grub/grub-0.97/netboot/ns8390.c
934
ns8390_reset(nic);
usr/src/grub/grub-0.97/netboot/ns8390.c
937
nic->poll = ns8390_poll;
usr/src/grub/grub-0.97/netboot/ns8390.c
938
nic->transmit = ns8390_transmit;
usr/src/grub/grub-0.97/netboot/ns8390.c
939
nic->irq = ns8390_irq;
usr/src/grub/grub-0.97/netboot/pcnet32.c
280
static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num);
usr/src/grub/grub-0.97/netboot/pcnet32.c
282
static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num,
usr/src/grub/grub-0.97/netboot/pcnet32.c
404
static int pcnet32_init_ring(struct nic *nic)
usr/src/grub/grub-0.97/netboot/pcnet32.c
428
lp->init_block.phys_addr[i] = nic->node_addr[i];
usr/src/grub/grub-0.97/netboot/pcnet32.c
437
static void pcnet32_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/pcnet32.c
514
pcnet32_init_ring(nic);
usr/src/grub/grub-0.97/netboot/pcnet32.c
542
static int pcnet32_poll(struct nic *nic __unused, int retrieve)
usr/src/grub/grub-0.97/netboot/pcnet32.c
560
nic->packetlen =
usr/src/grub/grub-0.97/netboot/pcnet32.c
562
memcpy(nic->packet, &rxb[entry], nic->packetlen);
usr/src/grub/grub-0.97/netboot/pcnet32.c
581
static void pcnet32_transmit(struct nic *nic __unused, const char *d, /* Destination */
usr/src/grub/grub-0.97/netboot/pcnet32.c
599
memcpy(ptxb + ETH_ALEN, nic->node_addr, ETH_ALEN); /* src */
usr/src/grub/grub-0.97/netboot/pcnet32.c
652
static void pcnet32_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/pcnet32.c
670
struct nic *nic = (struct nic *) dev;
usr/src/grub/grub-0.97/netboot/pcnet32.c
687
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/pcnet32.c
688
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/pcnet32.c
800
nic->node_addr[i] = promaddr[i];
usr/src/grub/grub-0.97/netboot/pcnet32.c
803
printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr,
usr/src/grub/grub-0.97/netboot/pcnet32.c
873
if (nic->node_addr[0] == 0x00 && nic->node_addr[1] == 0xe0
usr/src/grub/grub-0.97/netboot/pcnet32.c
874
&& nic->node_addr[2] == 0x75)
usr/src/grub/grub-0.97/netboot/pcnet32.c
881
lp->init_block.phys_addr[i] = nic->node_addr[i];
usr/src/grub/grub-0.97/netboot/pcnet32.c
907
pcnet32_reset(nic);
usr/src/grub/grub-0.97/netboot/pcnet32.c
914
int mii_status = mdio_read(nic, phy, MII_BMSR);
usr/src/grub/grub-0.97/netboot/pcnet32.c
918
mdio_read(nic, phy, MII_ADVERTISE);
usr/src/grub/grub-0.97/netboot/pcnet32.c
932
mdio_read(nic, lp->phys[0], MII_ADVERTISE);
usr/src/grub/grub-0.97/netboot/pcnet32.c
934
mii_lpa = mdio_read(nic, lp->phys[0], MII_LPA);
usr/src/grub/grub-0.97/netboot/pcnet32.c
948
nic->poll = pcnet32_poll;
usr/src/grub/grub-0.97/netboot/pcnet32.c
949
nic->transmit = pcnet32_transmit;
usr/src/grub/grub-0.97/netboot/pcnet32.c
951
nic->irq = pcnet32_irq;
usr/src/grub/grub-0.97/netboot/pcnet32.c
955
static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num)
usr/src/grub/grub-0.97/netboot/pcnet32.c
974
static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num,
usr/src/grub/grub-0.97/netboot/pnic.c
100
uint16_t status = pnic_command_quiet ( nic, command,
usr/src/grub/grub-0.97/netboot/pnic.c
128
static int pnic_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/pnic.c
137
if ( pnic_command ( nic, PNIC_CMD_RECV_QLEN, NULL, 0,
usr/src/grub/grub-0.97/netboot/pnic.c
146
if ( pnic_command ( nic, PNIC_CMD_RECV, NULL, 0,
usr/src/grub/grub-0.97/netboot/pnic.c
147
nic->packet, ETH_FRAME_LEN, &length )
usr/src/grub/grub-0.97/netboot/pnic.c
149
nic->packetlen = length;
usr/src/grub/grub-0.97/netboot/pnic.c
157
struct nic *nic,
usr/src/grub/grub-0.97/netboot/pnic.c
172
memcpy ( tx_buffer + ETH_ALEN, nic->node_addr, ETH_ALEN );
usr/src/grub/grub-0.97/netboot/pnic.c
176
pnic_command ( nic, PNIC_CMD_XMIT, tx_buffer, ETH_HLEN + size,
usr/src/grub/grub-0.97/netboot/pnic.c
185
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/pnic.c
186
pnic_command ( nic, PNIC_CMD_RESET, NULL, 0, NULL, 0, NULL );
usr/src/grub/grub-0.97/netboot/pnic.c
192
static void pnic_irq ( struct nic *nic, irq_action_t action )
usr/src/grub/grub-0.97/netboot/pnic.c
200
pnic_command ( nic, PNIC_CMD_MASK_IRQ,
usr/src/grub/grub-0.97/netboot/pnic.c
204
pnic_command ( nic, PNIC_CMD_FORCE_IRQ,
usr/src/grub/grub-0.97/netboot/pnic.c
216
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/pnic.c
224
nic->priv_data = &priv;
usr/src/grub/grub-0.97/netboot/pnic.c
227
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/pnic.c
228
nic->irqno = pci->irq;
usr/src/grub/grub-0.97/netboot/pnic.c
232
status = pnic_command_quiet( nic, PNIC_CMD_API_VER, NULL, 0,
usr/src/grub/grub-0.97/netboot/pnic.c
241
status = pnic_command ( nic, PNIC_CMD_READ_MAC, NULL, 0,
usr/src/grub/grub-0.97/netboot/pnic.c
242
nic->node_addr, ETH_ALEN, NULL );
usr/src/grub/grub-0.97/netboot/pnic.c
244
nic->node_addr, priv.api_version>>8, priv.api_version&0xff,
usr/src/grub/grub-0.97/netboot/pnic.c
245
nic->ioaddr );
usr/src/grub/grub-0.97/netboot/pnic.c
249
nic->poll = pnic_poll;
usr/src/grub/grub-0.97/netboot/pnic.c
250
nic->transmit = pnic_transmit;
usr/src/grub/grub-0.97/netboot/pnic.c
251
nic->irq = pnic_irq;
usr/src/grub/grub-0.97/netboot/pnic.c
48
static uint16_t pnic_command_quiet ( struct nic *nic, uint16_t command,
usr/src/grub/grub-0.97/netboot/pnic.c
58
outw ( input_length, nic->ioaddr + PNIC_REG_LEN );
usr/src/grub/grub-0.97/netboot/pnic.c
61
outb( ((char*)input)[i], nic->ioaddr + PNIC_REG_DATA );
usr/src/grub/grub-0.97/netboot/pnic.c
65
outw ( command, nic->ioaddr + PNIC_REG_CMD );
usr/src/grub/grub-0.97/netboot/pnic.c
67
status = inw ( nic->ioaddr + PNIC_REG_STAT );
usr/src/grub/grub-0.97/netboot/pnic.c
69
_output_length = inw ( nic->ioaddr + PNIC_REG_LEN );
usr/src/grub/grub-0.97/netboot/pnic.c
89
inb ( nic->ioaddr + PNIC_REG_DATA );
usr/src/grub/grub-0.97/netboot/pnic.c
95
static uint16_t pnic_command ( struct nic *nic, uint16_t command,
usr/src/grub/grub-0.97/netboot/pnic.c
99
pnic_priv_data_t *priv = (pnic_priv_data_t*)nic->priv_data;
usr/src/grub/grub-0.97/netboot/r8169.c
419
void r8169_irq ( struct nic *nic __unused, irq_action_t action ) {
usr/src/grub/grub-0.97/netboot/r8169.c
446
static int r8169_poll(struct nic *nic, int retreive)
usr/src/grub/grub-0.97/netboot/r8169.c
467
nic->packetlen = (int) (tpc->RxDescArray[cur_rx].
usr/src/grub/grub-0.97/netboot/r8169.c
469
memcpy(nic->packet, tpc->RxBufferRing[cur_rx],
usr/src/grub/grub-0.97/netboot/r8169.c
470
nic->packetlen);
usr/src/grub/grub-0.97/netboot/r8169.c
500
static void r8169_transmit(struct nic *nic, const char *d, /* Destination */
usr/src/grub/grub-0.97/netboot/r8169.c
515
memcpy(ptxb + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/r8169.c
544
static void rtl8169_set_rx_mode(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/r8169.c
564
static void rtl8169_hw_start(struct nic *nic)
usr/src/grub/grub-0.97/netboot/r8169.c
606
rtl8169_set_rx_mode(nic);
usr/src/grub/grub-0.97/netboot/r8169.c
612
static void rtl8169_init_ring(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/r8169.c
641
static void r8169_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/r8169.c
668
rtl8169_init_ring(nic);
usr/src/grub/grub-0.97/netboot/r8169.c
669
rtl8169_hw_start(nic);
usr/src/grub/grub-0.97/netboot/r8169.c
675
txb[0] = nic->node_addr[0];
usr/src/grub/grub-0.97/netboot/r8169.c
676
txb[1] = nic->node_addr[1];
usr/src/grub/grub-0.97/netboot/r8169.c
677
txb[2] = nic->node_addr[2];
usr/src/grub/grub-0.97/netboot/r8169.c
678
txb[3] = nic->node_addr[3];
usr/src/grub/grub-0.97/netboot/r8169.c
679
txb[4] = nic->node_addr[4];
usr/src/grub/grub-0.97/netboot/r8169.c
680
txb[5] = nic->node_addr[5];
usr/src/grub/grub-0.97/netboot/r8169.c
714
struct nic *nic = (struct nic *) dev;
usr/src/grub/grub-0.97/netboot/r8169.c
734
nic->node_addr[i] = RTL_R8(MAC0 + i);
usr/src/grub/grub-0.97/netboot/r8169.c
739
printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr,
usr/src/grub/grub-0.97/netboot/r8169.c
831
r8169_reset(nic);
usr/src/grub/grub-0.97/netboot/r8169.c
834
nic->poll = r8169_poll;
usr/src/grub/grub-0.97/netboot/r8169.c
835
nic->transmit = r8169_transmit;
usr/src/grub/grub-0.97/netboot/r8169.c
836
nic->irqno = pci->irq;
usr/src/grub/grub-0.97/netboot/r8169.c
837
nic->irq = r8169_irq;
usr/src/grub/grub-0.97/netboot/r8169.c
838
nic->ioaddr = ioaddr;
usr/src/grub/grub-0.97/netboot/rtl8139.c
176
static int read_eeprom(struct nic *nic, int location, int addr_len);
usr/src/grub/grub-0.97/netboot/rtl8139.c
177
static void rtl_reset(struct nic *nic);
usr/src/grub/grub-0.97/netboot/rtl8139.c
178
static void rtl_transmit(struct nic *nic, const char *destaddr,
usr/src/grub/grub-0.97/netboot/rtl8139.c
180
static int rtl_poll(struct nic *nic, int retrieve);
usr/src/grub/grub-0.97/netboot/rtl8139.c
182
static void rtl_irq(struct nic *nic, irq_action_t action);
usr/src/grub/grub-0.97/netboot/rtl8139.c
187
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/rtl8139.c
191
unsigned short *ap = (unsigned short*)nic->node_addr;
usr/src/grub/grub-0.97/netboot/rtl8139.c
198
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/rtl8139.c
201
nic->irqno = pci->irq;
usr/src/grub/grub-0.97/netboot/rtl8139.c
206
outb(0x00, nic->ioaddr + Config1);
usr/src/grub/grub-0.97/netboot/rtl8139.c
208
addr_len = read_eeprom(nic,0,8) == 0x8129 ? 8 : 6;
usr/src/grub/grub-0.97/netboot/rtl8139.c
210
*ap++ = read_eeprom(nic,i + 7,addr_len);
usr/src/grub/grub-0.97/netboot/rtl8139.c
212
speed10 = inb(nic->ioaddr + MediaStatus) & MSRSpeed10;
usr/src/grub/grub-0.97/netboot/rtl8139.c
213
fullduplex = inw(nic->ioaddr + MII_BMCR) & BMCRDuplex;
usr/src/grub/grub-0.97/netboot/rtl8139.c
214
printf("ioaddr %#hX, irq %d, addr %! %sMbps %s-duplex\n", nic->ioaddr,
usr/src/grub/grub-0.97/netboot/rtl8139.c
215
nic->irqno, nic->node_addr, speed10 ? "10" : "100",
usr/src/grub/grub-0.97/netboot/rtl8139.c
218
rtl_reset(nic);
usr/src/grub/grub-0.97/netboot/rtl8139.c
220
if (inb(nic->ioaddr + MediaStatus) & MSRLinkFail) {
usr/src/grub/grub-0.97/netboot/rtl8139.c
226
nic->poll = rtl_poll;
usr/src/grub/grub-0.97/netboot/rtl8139.c
227
nic->transmit = rtl_transmit;
usr/src/grub/grub-0.97/netboot/rtl8139.c
228
nic->irq = rtl_irq;
usr/src/grub/grub-0.97/netboot/rtl8139.c
256
static int read_eeprom(struct nic *nic, int location, int addr_len)
usr/src/grub/grub-0.97/netboot/rtl8139.c
260
long ee_addr = nic->ioaddr + Cfg9346;
usr/src/grub/grub-0.97/netboot/rtl8139.c
297
static void set_rx_mode(struct nic *nic) {
usr/src/grub/grub-0.97/netboot/rtl8139.c
304
outl(rtl8139_rx_config | rx_mode, nic->ioaddr + RxConfig);
usr/src/grub/grub-0.97/netboot/rtl8139.c
306
outl(mc_filter[0], nic->ioaddr + MAR0 + 0);
usr/src/grub/grub-0.97/netboot/rtl8139.c
307
outl(mc_filter[1], nic->ioaddr + MAR0 + 4);
usr/src/grub/grub-0.97/netboot/rtl8139.c
310
static void rtl_reset(struct nic* nic)
usr/src/grub/grub-0.97/netboot/rtl8139.c
314
outb(CmdReset, nic->ioaddr + ChipCmd);
usr/src/grub/grub-0.97/netboot/rtl8139.c
321
while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 &&
usr/src/grub/grub-0.97/netboot/rtl8139.c
326
outb(nic->node_addr[i], nic->ioaddr + MAC0 + i);
usr/src/grub/grub-0.97/netboot/rtl8139.c
329
outb(CmdRxEnb | CmdTxEnb, nic->ioaddr + ChipCmd);
usr/src/grub/grub-0.97/netboot/rtl8139.c
331
nic->ioaddr + RxConfig); /* accept no frames yet! */
usr/src/grub/grub-0.97/netboot/rtl8139.c
332
outl((TX_DMA_BURST<<8)|0x03000000, nic->ioaddr + TxConfig);
usr/src/grub/grub-0.97/netboot/rtl8139.c
345
outl((unsigned long)virt_to_bus(rx_ring), nic->ioaddr + RxBuf);
usr/src/grub/grub-0.97/netboot/rtl8139.c
353
outb(CmdRxEnb | CmdTxEnb, nic->ioaddr + ChipCmd);
usr/src/grub/grub-0.97/netboot/rtl8139.c
355
outl(rtl8139_rx_config, nic->ioaddr + RxConfig);
usr/src/grub/grub-0.97/netboot/rtl8139.c
358
outl(0, nic->ioaddr + RxMissed);
usr/src/grub/grub-0.97/netboot/rtl8139.c
361
set_rx_mode(nic);
usr/src/grub/grub-0.97/netboot/rtl8139.c
364
outw(0, nic->ioaddr + IntrMask);
usr/src/grub/grub-0.97/netboot/rtl8139.c
367
static void rtl_transmit(struct nic *nic, const char *destaddr,
usr/src/grub/grub-0.97/netboot/rtl8139.c
376
memcpy(tx_buffer + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/rtl8139.c
391
outl((unsigned long)virt_to_bus(tx_buffer), nic->ioaddr + TxAddr0 + cur_tx*4);
usr/src/grub/grub-0.97/netboot/rtl8139.c
393
nic->ioaddr + TxStatus0 + cur_tx*4);
usr/src/grub/grub-0.97/netboot/rtl8139.c
398
status = inw(nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/rtl8139.c
402
outw(status & (TxOK | TxErr | PCIErr), nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/rtl8139.c
406
txstatus = inl(nic->ioaddr+ TxStatus0 + cur_tx*4);
usr/src/grub/grub-0.97/netboot/rtl8139.c
419
rtl_reset(nic);
usr/src/grub/grub-0.97/netboot/rtl8139.c
423
static int rtl_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/rtl8139.c
429
if (inb(nic->ioaddr + ChipCmd) & RxBufEmpty) {
usr/src/grub/grub-0.97/netboot/rtl8139.c
436
status = inw(nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/rtl8139.c
438
outw(status & ~(RxFIFOOver | RxOverflow | RxOK), nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/rtl8139.c
452
rtl_reset(nic); /* this clears all interrupts still pending */
usr/src/grub/grub-0.97/netboot/rtl8139.c
457
nic->packetlen = rx_size - 4; /* no one cares about the FCS */
usr/src/grub/grub-0.97/netboot/rtl8139.c
461
memcpy(nic->packet, rx_ring + ring_offs + 4, semi_count);
usr/src/grub/grub-0.97/netboot/rtl8139.c
462
memcpy(nic->packet+semi_count, rx_ring, rx_size-4-semi_count);
usr/src/grub/grub-0.97/netboot/rtl8139.c
467
memcpy(nic->packet, rx_ring + ring_offs + 4, nic->packetlen);
usr/src/grub/grub-0.97/netboot/rtl8139.c
475
nic->packet[12], nic->packet[13], rx_status);
usr/src/grub/grub-0.97/netboot/rtl8139.c
478
outw(cur_rx - 16, nic->ioaddr + RxBufPtr);
usr/src/grub/grub-0.97/netboot/rtl8139.c
482
outw(status & (RxFIFOOver | RxOverflow | RxOK), nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/rtl8139.c
486
static void rtl_irq(struct nic *nic, irq_action_t action)
usr/src/grub/grub-0.97/netboot/rtl8139.c
495
mask = inw(nic->ioaddr + IntrMask);
usr/src/grub/grub-0.97/netboot/rtl8139.c
498
outw(mask, nic->ioaddr + IntrMask);
usr/src/grub/grub-0.97/netboot/rtl8139.c
507
outb(EROK, nic->ioaddr + RxEarlyStatus);
usr/src/grub/grub-0.97/netboot/rtl8139.c
514
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/rtl8139.c
516
rtl_reset(nic);
usr/src/grub/grub-0.97/netboot/rtl8139.c
519
outb(CmdReset, nic->ioaddr + ChipCmd);
usr/src/grub/grub-0.97/netboot/rtl8139.c
523
while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 && timer2_running())
usr/src/grub/grub-0.97/netboot/sis900.c
1026
static void vt6103_read_mode(struct nic *nic __unused, int phy_addr, int *speed, int *duplex)
usr/src/grub/grub-0.97/netboot/sis900.c
1072
sis900_transmit(struct nic *nic,
usr/src/grub/grub-0.97/netboot/sis900.c
1091
memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/sis900.c
1148
sis900_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/sis900.c
1165
nic->packetlen = (rx_status & DSIZE) - CRC_SIZE;
usr/src/grub/grub-0.97/netboot/sis900.c
1174
memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen);
usr/src/grub/grub-0.97/netboot/sis900.c
1204
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/sis900.c
1206
sis900_init(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
1227
sis900_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/sis900.c
138
static void sis900_init(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sis900.c
140
static void sis900_reset(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sis900.c
142
static void sis900_init_rxfilter(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sis900.c
143
static void sis900_init_txd(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sis900.c
144
static void sis900_init_rxd(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sis900.c
145
static void sis900_set_rx_mode(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sis900.c
146
static void sis900_check_mode(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sis900.c
148
static void sis900_transmit(struct nic *nic, const char *d,
usr/src/grub/grub-0.97/netboot/sis900.c
150
static int sis900_poll(struct nic *nic, int retrieve);
usr/src/grub/grub-0.97/netboot/sis900.c
154
static void sis900_irq(struct nic *nic, irq_action_t action);
usr/src/grub/grub-0.97/netboot/sis900.c
165
static int sis900_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic)
usr/src/grub/grub-0.97/netboot/sis900.c
179
((u16 *)(nic->node_addr))[i] = sis900_read_eeprom(i+EEPROMMACAddr);
usr/src/grub/grub-0.97/netboot/sis900.c
199
static int sis96x_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic)
usr/src/grub/grub-0.97/netboot/sis900.c
214
((u16 *)(nic->node_addr))[i] = sis900_read_eeprom(i+EEPROMMACAddr);
usr/src/grub/grub-0.97/netboot/sis900.c
237
static int sis630e_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic)
usr/src/grub/grub-0.97/netboot/sis900.c
259
((u8 *)(nic->node_addr))[i] = inb(0x71);
usr/src/grub/grub-0.97/netboot/sis900.c
276
static int sis635_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic)
usr/src/grub/grub-0.97/netboot/sis900.c
293
*( ((u16 *)nic->node_addr) + i) = inw(ioaddr + rfdr);
usr/src/grub/grub-0.97/netboot/sis900.c
318
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/sis900.c
328
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/sis900.c
329
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/sis900.c
347
ret = sis630e_get_mac_addr(pci, nic);
usr/src/grub/grub-0.97/netboot/sis900.c
349
ret = sis635_get_mac_addr(pci, nic);
usr/src/grub/grub-0.97/netboot/sis900.c
351
ret = sis96x_get_mac_addr(pci, nic);
usr/src/grub/grub-0.97/netboot/sis900.c
353
ret = sis900_get_mac_addr(pci, nic);
usr/src/grub/grub-0.97/netboot/sis900.c
366
nic->node_addr, ioaddr);
usr/src/grub/grub-0.97/netboot/sis900.c
414
sis900_init(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
417
nic->poll = sis900_poll;
usr/src/grub/grub-0.97/netboot/sis900.c
418
nic->transmit = sis900_transmit;
usr/src/grub/grub-0.97/netboot/sis900.c
419
nic->irq = sis900_irq;
usr/src/grub/grub-0.97/netboot/sis900.c
598
sis900_init(struct nic *nic)
usr/src/grub/grub-0.97/netboot/sis900.c
601
sis900_reset(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
603
sis900_init_rxfilter(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
605
sis900_init_txd(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
606
sis900_init_rxd(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
608
sis900_set_rx_mode(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
610
sis900_check_mode(nic);
usr/src/grub/grub-0.97/netboot/sis900.c
626
sis900_reset(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/sis900.c
658
sis900_init_rxfilter(struct nic *nic)
usr/src/grub/grub-0.97/netboot/sis900.c
672
w = (u32) *((u16 *)(nic->node_addr)+i);
usr/src/grub/grub-0.97/netboot/sis900.c
696
sis900_init_txd(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/sis900.c
719
sis900_init_rxd(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/sis900.c
755
static void sis900_set_rx_mode(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/sis900.c
796
sis900_check_mode(struct nic *nic)
usr/src/grub/grub-0.97/netboot/sis900.c
801
mii.chip_info->read_mode(nic, cur_phy, &speed, &duplex);
usr/src/grub/grub-0.97/netboot/sis900.c
83
static void sis900_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
usr/src/grub/grub-0.97/netboot/sis900.c
84
static void amd79c901_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
usr/src/grub/grub-0.97/netboot/sis900.c
841
sis900_read_mode(struct nic *nic __unused, int phy_addr, int *speed, int *duplex)
usr/src/grub/grub-0.97/netboot/sis900.c
85
static void ics1893_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
usr/src/grub/grub-0.97/netboot/sis900.c
86
static void rtl8201_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
usr/src/grub/grub-0.97/netboot/sis900.c
87
static void vt6103_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
usr/src/grub/grub-0.97/netboot/sis900.c
890
amd79c901_read_mode(struct nic *nic __unused, int phy_addr, int *speed, int *duplex)
usr/src/grub/grub-0.97/netboot/sis900.c
93
void (*read_mode) (struct nic *nic, int phy_addr, int *speed, int *duplex);
usr/src/grub/grub-0.97/netboot/sis900.c
942
static void ics1893_read_mode(struct nic *nic __unused, int phy_addr, int *speed, int *duplex)
usr/src/grub/grub-0.97/netboot/sis900.c
982
static void rtl8201_read_mode(struct nic *nic __unused, int phy_addr, int *speed, int *duplex)
usr/src/grub/grub-0.97/netboot/sundance.c
310
static int mdio_read(struct nic *nic, int phy_id, unsigned int location);
usr/src/grub/grub-0.97/netboot/sundance.c
311
static void mdio_write(struct nic *nic, int phy_id, unsigned int location,
usr/src/grub/grub-0.97/netboot/sundance.c
313
static void set_rx_mode(struct nic *nic);
usr/src/grub/grub-0.97/netboot/sundance.c
315
static void check_duplex(struct nic *nic)
usr/src/grub/grub-0.97/netboot/sundance.c
317
int mii_lpa = mdio_read(nic, sdc->phys[0], MII_LPA);
usr/src/grub/grub-0.97/netboot/sundance.c
346
static void init_ring(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/sundance.c
388
static void sundance_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/sundance.c
392
init_ring(nic);
usr/src/grub/grub-0.97/netboot/sundance.c
402
addr16 = (nic->node_addr[0] | (nic->node_addr[1] << 8));
usr/src/grub/grub-0.97/netboot/sundance.c
404
addr16 = (nic->node_addr[2] | (nic->node_addr[3] << 8));
usr/src/grub/grub-0.97/netboot/sundance.c
406
addr16 = (nic->node_addr[4] | (nic->node_addr[5] << 8));
usr/src/grub/grub-0.97/netboot/sundance.c
414
set_rx_mode(nic);
usr/src/grub/grub-0.97/netboot/sundance.c
431
txb[0] = nic->node_addr[0];
usr/src/grub/grub-0.97/netboot/sundance.c
432
txb[1] = nic->node_addr[1];
usr/src/grub/grub-0.97/netboot/sundance.c
433
txb[2] = nic->node_addr[2];
usr/src/grub/grub-0.97/netboot/sundance.c
434
txb[3] = nic->node_addr[3];
usr/src/grub/grub-0.97/netboot/sundance.c
435
txb[4] = nic->node_addr[4];
usr/src/grub/grub-0.97/netboot/sundance.c
436
txb[5] = nic->node_addr[5];
usr/src/grub/grub-0.97/netboot/sundance.c
448
void sundance_irq ( struct nic *nic, irq_action_t action ) {
usr/src/grub/grub-0.97/netboot/sundance.c
454
intr_status = inw(nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/sundance.c
458
outw(intr_status, nic->ioaddr + IntrEnable);
usr/src/grub/grub-0.97/netboot/sundance.c
468
static int sundance_poll(struct nic *nic, int retreive)
usr/src/grub/grub-0.97/netboot/sundance.c
485
intr_status = inw(nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/sundance.c
486
outw(intr_status, nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/sundance.c
497
nic->packetlen = pkt_len;
usr/src/grub/grub-0.97/netboot/sundance.c
498
memcpy(nic->packet, rxb +
usr/src/grub/grub-0.97/netboot/sundance.c
499
(sdc->cur_rx * PKT_BUF_SZ), nic->packetlen);
usr/src/grub/grub-0.97/netboot/sundance.c
508
nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/sundance.c
515
static void sundance_transmit(struct nic *nic, const char *d, /* Destination */
usr/src/grub/grub-0.97/netboot/sundance.c
527
memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/sundance.c
587
struct nic *nic = (struct nic *) dev;
usr/src/grub/grub-0.97/netboot/sundance.c
608
nic->node_addr[i] = ee_data[i];
usr/src/grub/grub-0.97/netboot/sundance.c
627
printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE);
usr/src/grub/grub-0.97/netboot/sundance.c
634
int mii_status = mdio_read(nic, phy, MII_BMSR);
usr/src/grub/grub-0.97/netboot/sundance.c
638
mdio_read(nic, phy, MII_ADVERTISE);
usr/src/grub/grub-0.97/netboot/sundance.c
698
mdio_write(nic, sdc->phys[0], MII_BMCR, mii_ctl);
usr/src/grub/grub-0.97/netboot/sundance.c
709
sundance_reset(nic);
usr/src/grub/grub-0.97/netboot/sundance.c
713
mdio_read(nic, sdc->phys[0], MII_ADVERTISE);
usr/src/grub/grub-0.97/netboot/sundance.c
714
mii_lpa = mdio_read(nic, sdc->phys[0], MII_LPA);
usr/src/grub/grub-0.97/netboot/sundance.c
725
mii_ctl = mdio_read(nic, sdc->phys[0], MII_BMCR);
usr/src/grub/grub-0.97/netboot/sundance.c
732
check_duplex(nic);
usr/src/grub/grub-0.97/netboot/sundance.c
743
nic->poll = sundance_poll;
usr/src/grub/grub-0.97/netboot/sundance.c
744
nic->transmit = sundance_transmit;
usr/src/grub/grub-0.97/netboot/sundance.c
745
nic->irqno = pci->irq;
usr/src/grub/grub-0.97/netboot/sundance.c
746
nic->irq = sundance_irq;
usr/src/grub/grub-0.97/netboot/sundance.c
747
nic->ioaddr = BASE;
usr/src/grub/grub-0.97/netboot/sundance.c
805
mdio_read(struct nic *nic __unused, int phy_id, unsigned int location)
usr/src/grub/grub-0.97/netboot/sundance.c
837
mdio_write(struct nic *nic __unused, int phy_id,
usr/src/grub/grub-0.97/netboot/sundance.c
867
static void set_rx_mode(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tg3.c
1642
addr_high = ((tp->nic->node_addr[0] << 8) |
usr/src/grub/grub-0.97/netboot/tg3.c
1643
tp->nic->node_addr[1]);
usr/src/grub/grub-0.97/netboot/tg3.c
1644
addr_low = ((tp->nic->node_addr[2] << 24) |
usr/src/grub/grub-0.97/netboot/tg3.c
1645
(tp->nic->node_addr[3] << 16) |
usr/src/grub/grub-0.97/netboot/tg3.c
1646
(tp->nic->node_addr[4] << 8) |
usr/src/grub/grub-0.97/netboot/tg3.c
1647
(tp->nic->node_addr[5] << 0));
usr/src/grub/grub-0.97/netboot/tg3.c
1661
addr_high = (tp->nic->node_addr[0] +
usr/src/grub/grub-0.97/netboot/tg3.c
1662
tp->nic->node_addr[1] +
usr/src/grub/grub-0.97/netboot/tg3.c
1663
tp->nic->node_addr[2] +
usr/src/grub/grub-0.97/netboot/tg3.c
1664
tp->nic->node_addr[3] +
usr/src/grub/grub-0.97/netboot/tg3.c
1665
tp->nic->node_addr[4] +
usr/src/grub/grub-0.97/netboot/tg3.c
1666
tp->nic->node_addr[5]) &
usr/src/grub/grub-0.97/netboot/tg3.c
2813
struct nic *nic = tp->nic;
usr/src/grub/grub-0.97/netboot/tg3.c
2824
nic->node_addr[0] = (hi >> 8) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2825
nic->node_addr[1] = (hi >> 0) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2828
nic->node_addr[2] = (lo >> 24) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2829
nic->node_addr[3] = (lo >> 16) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2830
nic->node_addr[4] = (lo >> 8) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2831
nic->node_addr[5] = (lo >> 0) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2836
nic->node_addr[0] = ((hi >> 16) & 0xff);
usr/src/grub/grub-0.97/netboot/tg3.c
2837
nic->node_addr[1] = ((hi >> 24) & 0xff);
usr/src/grub/grub-0.97/netboot/tg3.c
2838
nic->node_addr[2] = ((lo >> 0) & 0xff);
usr/src/grub/grub-0.97/netboot/tg3.c
2839
nic->node_addr[3] = ((lo >> 8) & 0xff);
usr/src/grub/grub-0.97/netboot/tg3.c
2840
nic->node_addr[4] = ((lo >> 16) & 0xff);
usr/src/grub/grub-0.97/netboot/tg3.c
2841
nic->node_addr[5] = ((lo >> 24) & 0xff);
usr/src/grub/grub-0.97/netboot/tg3.c
2848
nic->node_addr[5] = lo & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2849
nic->node_addr[4] = (lo >> 8) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2850
nic->node_addr[3] = (lo >> 16) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2851
nic->node_addr[2] = (lo >> 24) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2852
nic->node_addr[1] = hi & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2853
nic->node_addr[0] = (hi >> 8) & 0xff;
usr/src/grub/grub-0.97/netboot/tg3.c
2992
static int tg3_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/tg3.c
3015
nic->packetlen = len;
usr/src/grub/grub-0.97/netboot/tg3.c
3016
memcpy(nic->packet, bus_to_virt(desc->addr_lo), len);
usr/src/grub/grub-0.97/netboot/tg3.c
3055
static void tg3_transmit(struct nic *nic, const char *dst_addr,
usr/src/grub/grub-0.97/netboot/tg3.c
3093
memcpy(&frame[frame_idx].src_addr, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/tg3.c
3140
static void tg3_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/tg3.c
3158
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/tg3.c
3170
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/tg3.c
3171
nic->ioaddr = pdev->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/tg3.c
3187
tp->nic = nic;
usr/src/grub/grub-0.97/netboot/tg3.c
3234
printf("Ethernet addr: %!\n", nic->node_addr);
usr/src/grub/grub-0.97/netboot/tg3.c
3273
nic->poll = tg3_poll;
usr/src/grub/grub-0.97/netboot/tg3.c
3274
nic->transmit = tg3_transmit;
usr/src/grub/grub-0.97/netboot/tg3.c
3275
nic->irq = tg3_irq;
usr/src/grub/grub-0.97/netboot/tg3.h
2156
struct nic *nic;
usr/src/grub/grub-0.97/netboot/tlan.c
100
static void refill_rx(struct nic *nic __unused);
usr/src/grub/grub-0.97/netboot/tlan.c
102
static int TLan_MiiReadReg(struct nic *nic __unused, u16, u16, u16 *);
usr/src/grub/grub-0.97/netboot/tlan.c
105
static void TLan_MiiWriteReg(struct nic *nic __unused, u16, u16, u16);
usr/src/grub/grub-0.97/netboot/tlan.c
1185
int TLan_MiiReadReg(struct nic *nic __unused, u16 phy, u16 reg, u16 * val)
usr/src/grub/grub-0.97/netboot/tlan.c
1345
void TLan_MiiWriteReg(struct nic *nic __unused, u16 phy, u16 reg, u16 val)
usr/src/grub/grub-0.97/netboot/tlan.c
1397
void TLan_SetMac(struct nic *nic __unused, int areg, char *mac)
usr/src/grub/grub-0.97/netboot/tlan.c
1431
void TLan_PhyDetect(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tlan.c
1443
TLan_MiiReadReg(nic, TLAN_PHY_MAX_ADDR, MII_GEN_ID_HI, &hi);
usr/src/grub/grub-0.97/netboot/tlan.c
1453
TLan_MiiReadReg(nic, phy, MII_GEN_CTL, &control);
usr/src/grub/grub-0.97/netboot/tlan.c
1454
TLan_MiiReadReg(nic, phy, MII_GEN_ID_HI, &hi);
usr/src/grub/grub-0.97/netboot/tlan.c
1455
TLan_MiiReadReg(nic, phy, MII_GEN_ID_LO, &lo);
usr/src/grub/grub-0.97/netboot/tlan.c
1478
void TLan_PhyPowerDown(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tlan.c
1485
TLan_MiiWriteReg(nic, priv->phy[priv->phyNum], MII_GEN_CTL, value);
usr/src/grub/grub-0.97/netboot/tlan.c
1491
TLan_MiiWriteReg(nic, priv->phy[1], MII_GEN_CTL, value);
usr/src/grub/grub-0.97/netboot/tlan.c
1500
TLan_PhyPowerUp(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1505
void TLan_PhyPowerUp(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tlan.c
1512
TLan_MiiWriteReg(nic, priv->phy[priv->phyNum], MII_GEN_CTL, value);
usr/src/grub/grub-0.97/netboot/tlan.c
1519
TLan_PhyReset(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1524
void TLan_PhyReset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tlan.c
1534
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, value);
usr/src/grub/grub-0.97/netboot/tlan.c
1535
TLan_MiiReadReg(nic, phy, MII_GEN_CTL, &value);
usr/src/grub/grub-0.97/netboot/tlan.c
1537
TLan_MiiReadReg(nic, phy, MII_GEN_CTL, &value);
usr/src/grub/grub-0.97/netboot/tlan.c
1546
TLan_PhyStartLink(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1551
void TLan_PhyStartLink(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tlan.c
1563
TLan_MiiReadReg(nic, phy, MII_GEN_STS, &status);
usr/src/grub/grub-0.97/netboot/tlan.c
1564
TLan_MiiReadReg(nic, phy, MII_GEN_STS, &ability);
usr/src/grub/grub-0.97/netboot/tlan.c
1570
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, 0x0000);
usr/src/grub/grub-0.97/netboot/tlan.c
1574
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, 0x0100);
usr/src/grub/grub-0.97/netboot/tlan.c
1577
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, 0x2000);
usr/src/grub/grub-0.97/netboot/tlan.c
1581
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, 0x2100);
usr/src/grub/grub-0.97/netboot/tlan.c
1585
TLan_MiiWriteReg(nic, phy, MII_AN_ADV,
usr/src/grub/grub-0.97/netboot/tlan.c
1588
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, 0x1000);
usr/src/grub/grub-0.97/netboot/tlan.c
1590
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, 0x1200);
usr/src/grub/grub-0.97/netboot/tlan.c
1599
TLan_PhyFinishAutoNeg(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1614
TLan_PhyPowerDown(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1618
TLan_MiiReadReg(nic, phy, TLAN_TLPHY_CTL, &tctl);
usr/src/grub/grub-0.97/netboot/tlan.c
1631
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL, control);
usr/src/grub/grub-0.97/netboot/tlan.c
1632
TLan_MiiWriteReg(nic, phy, TLAN_TLPHY_CTL, tctl);
usr/src/grub/grub-0.97/netboot/tlan.c
1640
TLan_FinishReset(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1644
void TLan_PhyFinishAutoNeg(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tlan.c
1656
TLan_MiiReadReg(nic, phy, MII_GEN_STS, &status);
usr/src/grub/grub-0.97/netboot/tlan.c
1658
TLan_MiiReadReg(nic, phy, MII_GEN_STS, &status);
usr/src/grub/grub-0.97/netboot/tlan.c
1675
TLan_PhyFinishAutoNeg(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1681
TLan_MiiReadReg(nic, phy, MII_AN_ADV, &an_adv);
usr/src/grub/grub-0.97/netboot/tlan.c
1682
TLan_MiiReadReg(nic, phy, MII_AN_LPA, &an_lpa);
usr/src/grub/grub-0.97/netboot/tlan.c
1702
TLan_PhyPowerDown(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1709
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL,
usr/src/grub/grub-0.97/netboot/tlan.c
1714
TLan_MiiWriteReg(nic, phy, MII_GEN_CTL,
usr/src/grub/grub-0.97/netboot/tlan.c
1725
TLan_FinishReset(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1758
TLan_MiiReadReg(nic, phy, MII_GEN_STS, &phy_status);
usr/src/grub/grub-0.97/netboot/tlan.c
1767
TLan_PhyMonitor(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
1784
TLan_PhyMonitor(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
273
void TLan_ResetLists(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tlan.c
333
void TLan_ResetAdapter(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tlan.c
384
TLan_PhyDetect(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
405
TLan_FinishReset(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
407
TLan_PhyPowerDown(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
412
void TLan_FinishReset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tlan.c
438
TLan_MiiReadReg(nic, phy, MII_GEN_ID_HI, &tlphy_id1);
usr/src/grub/grub-0.97/netboot/tlan.c
439
TLan_MiiReadReg(nic, phy, MII_GEN_ID_LO, &tlphy_id2);
usr/src/grub/grub-0.97/netboot/tlan.c
446
TLan_MiiReadReg(nic, phy, MII_GEN_STS, &status);
usr/src/grub/grub-0.97/netboot/tlan.c
448
TLan_MiiReadReg(nic, phy, MII_GEN_STS, &status);
usr/src/grub/grub-0.97/netboot/tlan.c
452
TLan_MiiReadReg(nic, phy, MII_AN_LPA, &partner);
usr/src/grub/grub-0.97/netboot/tlan.c
453
TLan_MiiReadReg(nic, phy, TLAN_TLPHY_PAR,
usr/src/grub/grub-0.97/netboot/tlan.c
485
TLan_PhyMonitor(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
494
TLan_MiiReadReg(nic, phy, TLAN_TLPHY_CTL, &tlphy_ctl);
usr/src/grub/grub-0.97/netboot/tlan.c
496
TLan_MiiWriteReg(nic, phy, TLAN_TLPHY_CTL, tlphy_ctl);
usr/src/grub/grub-0.97/netboot/tlan.c
503
TLan_SetMac(nic, 0, nic->node_addr);
usr/src/grub/grub-0.97/netboot/tlan.c
519
TLan_FinishReset(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
529
static int tlan_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/tlan.c
556
nic->packetlen = framesize;
usr/src/grub/grub-0.97/netboot/tlan.c
562
memcpy(nic->packet, rxb +
usr/src/grub/grub-0.97/netboot/tlan.c
563
(priv->cur_rx * TLAN_MAX_FRAME_SIZE), nic->packetlen);
usr/src/grub/grub-0.97/netboot/tlan.c
567
hex_dump(nic->packet, nic->packetlen);
usr/src/grub/grub-0.97/netboot/tlan.c
588
refill_rx(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
592
static void refill_rx(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tlan.c
611
static void tlan_transmit(struct nic *nic, const char *d, /* Destination */
usr/src/grub/grub-0.97/netboot/tlan.c
655
memcpy(tail_buffer + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/tlan.c
75
static void TLan_ResetLists(struct nic *nic __unused);
usr/src/grub/grub-0.97/netboot/tlan.c
76
static void TLan_ResetAdapter(struct nic *nic __unused);
usr/src/grub/grub-0.97/netboot/tlan.c
77
static void TLan_FinishReset(struct nic *nic __unused);
usr/src/grub/grub-0.97/netboot/tlan.c
779
static void tlan_disable(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tlan.c
799
static void tlan_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/tlan.c
811
static void TLan_SetMulticastList(struct nic *nic) {
usr/src/grub/grub-0.97/netboot/tlan.c
821
TLan_SetMac(nic, i + 1, NULL);
usr/src/grub/grub-0.97/netboot/tlan.c
836
struct nic *nic = (struct nic *) dev;
usr/src/grub/grub-0.97/netboot/tlan.c
838
struct nic *tlan_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci)
usr/src/grub/grub-0.97/netboot/tlan.c
84
static void TLan_PhyDetect(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tlan.c
848
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/tlan.c
849
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/tlan.c
85
static void TLan_PhyPowerDown(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tlan.c
86
static void TLan_PhyPowerUp(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tlan.c
886
(u8 *) & nic->node_addr[i]);
usr/src/grub/grub-0.97/netboot/tlan.c
89
static void TLan_SetMac(struct nic *nic __unused, int areg, char *mac);
usr/src/grub/grub-0.97/netboot/tlan.c
891
printf("\nAddress: %!\n", nic->node_addr);
usr/src/grub/grub-0.97/netboot/tlan.c
896
TLan_ResetLists(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
897
TLan_ResetAdapter(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
908
TLan_SetMulticastList(nic);
usr/src/grub/grub-0.97/netboot/tlan.c
91
static void TLan_PhyReset(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tlan.c
917
nic->poll = tlan_poll;
usr/src/grub/grub-0.97/netboot/tlan.c
918
nic->transmit = tlan_transmit;
usr/src/grub/grub-0.97/netboot/tlan.c
919
nic->irq = tlan_irq;
usr/src/grub/grub-0.97/netboot/tlan.c
92
static void TLan_PhyStartLink(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tlan.c
922
nic->disable = tlan_disable;
usr/src/grub/grub-0.97/netboot/tlan.c
923
nic->poll = tlan_poll;
usr/src/grub/grub-0.97/netboot/tlan.c
924
nic->transmit = tlan_transmit;
usr/src/grub/grub-0.97/netboot/tlan.c
925
nic->irq = tlan_irq;
usr/src/grub/grub-0.97/netboot/tlan.c
926
return nic;
usr/src/grub/grub-0.97/netboot/tlan.c
93
static void TLan_PhyFinishAutoNeg(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tlan.c
96
static void TLan_PhyMonitor(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1021
txb[0] = nic->node_addr[0];
usr/src/grub/grub-0.97/netboot/tulip.c
1022
txb[1] = nic->node_addr[1];
usr/src/grub/grub-0.97/netboot/tulip.c
1023
txb[4] = nic->node_addr[2];
usr/src/grub/grub-0.97/netboot/tulip.c
1024
txb[5] = nic->node_addr[3];
usr/src/grub/grub-0.97/netboot/tulip.c
1025
txb[8] = nic->node_addr[4];
usr/src/grub/grub-0.97/netboot/tulip.c
1026
txb[9] = nic->node_addr[5];
usr/src/grub/grub-0.97/netboot/tulip.c
1037
init_media(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1059
tulip_check_duplex(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1061
set_rx_mode(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1070
static void tulip_transmit(struct nic *nic, const char *d, unsigned int t,
usr/src/grub/grub-0.97/netboot/tulip.c
1085
memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN);
usr/src/grub/grub-0.97/netboot/tulip.c
1130
static int tulip_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/tulip.c
1147
nic->packetlen = (rx_ring[tp->cur_rx].status & 0x3FFF0000) >> 16;
usr/src/grub/grub-0.97/netboot/tulip.c
1158
memcpy(nic->packet, rxb + tp->cur_rx * BUFLEN, nic->packetlen);
usr/src/grub/grub-0.97/netboot/tulip.c
1172
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/tulip.c
1178
tulip_reset(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1193
static void tulip_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/tulip.c
1210
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/tulip.c
1222
nic->ioaddr = pci->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/tulip.c
1223
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/tulip.c
1321
nic->node_addr[i] = value;
usr/src/grub/grub-0.97/netboot/tulip.c
1331
put_unaligned(le16_to_cpu(value), ((u16*)nic->node_addr) + i);
usr/src/grub/grub-0.97/netboot/tulip.c
1336
put_unaligned(inl(ioaddr + 0xA4), (u32 *)nic->node_addr);
usr/src/grub/grub-0.97/netboot/tulip.c
1337
put_unaligned(inl(ioaddr + 0xA8), (u16 *)(nic->node_addr + 4));
usr/src/grub/grub-0.97/netboot/tulip.c
1339
sum += nic->node_addr[i];
usr/src/grub/grub-0.97/netboot/tulip.c
1359
nic->node_addr[i] = ee_data[i + sa_offset];
usr/src/grub/grub-0.97/netboot/tulip.c
1364
if ((nic->node_addr[0] == 0xA0 || nic->node_addr[0] == 0xC0)
usr/src/grub/grub-0.97/netboot/tulip.c
1365
&& nic->node_addr[1] == 0x00)
usr/src/grub/grub-0.97/netboot/tulip.c
1367
char tmp = nic->node_addr[i];
usr/src/grub/grub-0.97/netboot/tulip.c
1368
nic->node_addr[i] = nic->node_addr[i+1];
usr/src/grub/grub-0.97/netboot/tulip.c
1369
nic->node_addr[i+1] = tmp;
usr/src/grub/grub-0.97/netboot/tulip.c
1375
nic->node_addr[i] = last_phys_addr[i];
usr/src/grub/grub-0.97/netboot/tulip.c
1376
nic->node_addr[i] = last_phys_addr[i] + 1;
usr/src/grub/grub-0.97/netboot/tulip.c
1380
last_phys_addr[i] = nic->node_addr[i];
usr/src/grub/grub-0.97/netboot/tulip.c
1382
printf("%s: %! at ioaddr %hX\n", tp->nic_name, nic->node_addr, ioaddr);
usr/src/grub/grub-0.97/netboot/tulip.c
1405
parse_eeprom(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1408
start_link(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1411
tulip_reset(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1414
nic->poll = tulip_poll;
usr/src/grub/grub-0.97/netboot/tulip.c
1415
nic->transmit = tulip_transmit;
usr/src/grub/grub-0.97/netboot/tulip.c
1416
nic->irq = tulip_irq;
usr/src/grub/grub-0.97/netboot/tulip.c
1424
static void start_link(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tulip.c
1441
select_media(nic, 2);
usr/src/grub/grub-0.97/netboot/tulip.c
1450
int mii_status = mdio_read(nic, phy, 1);
usr/src/grub/grub-0.97/netboot/tulip.c
1453
int mii_reg0 = mdio_read(nic, phy, 0);
usr/src/grub/grub-0.97/netboot/tulip.c
1454
int mii_advert = mdio_read(nic, phy, 4);
usr/src/grub/grub-0.97/netboot/tulip.c
1471
mdio_write(nic, phy, 4, to_advert);
usr/src/grub/grub-0.97/netboot/tulip.c
1474
mdio_write(nic, phy, 0, mii_reg0 |
usr/src/grub/grub-0.97/netboot/tulip.c
1515
nway_start(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1543
static void nway_start(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tulip.c
1579
static void init_media(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tulip.c
1631
select_media(nic, 1);
usr/src/grub/grub-0.97/netboot/tulip.c
1637
nway_start(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1641
select_media(nic, 1);
usr/src/grub/grub-0.97/netboot/tulip.c
1645
tp->nic_name, tp->phys[0], mdio_read(nic, tp->phys[0], 1));
usr/src/grub/grub-0.97/netboot/tulip.c
1653
nway_start(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1656
nway_start(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1664
pnic_do_nway(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
1693
select_media(nic, 1);
usr/src/grub/grub-0.97/netboot/tulip.c
1697
static void pnic_do_nway(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tulip.c
1734
static void select_media(struct nic *nic, int startup)
usr/src/grub/grub-0.97/netboot/tulip.c
1863
mdio_write(nic, tp->phys[phy_num], 4, tp->mii_advertise);
usr/src/grub/grub-0.97/netboot/tulip.c
1969
static int tulip_check_duplex(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tulip.c
1973
bmsr = mdio_read(nic, tp->phys[0], 1);
usr/src/grub/grub-0.97/netboot/tulip.c
1974
lpa = mdio_read(nic, tp->phys[0], 5);
usr/src/grub/grub-0.97/netboot/tulip.c
1985
int new_bmsr = mdio_read(nic, tp->phys[0], 1);
usr/src/grub/grub-0.97/netboot/tulip.c
479
static int mdio_read(struct nic *nic, int phy_id, int location);
usr/src/grub/grub-0.97/netboot/tulip.c
480
static void mdio_write(struct nic *nic, int phy_id, int location, int value);
usr/src/grub/grub-0.97/netboot/tulip.c
482
static void parse_eeprom(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
484
static void tulip_init_ring(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
485
static void tulip_reset(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
486
static void tulip_transmit(struct nic *nic, const char *d, unsigned int t,
usr/src/grub/grub-0.97/netboot/tulip.c
488
static int tulip_poll(struct nic *nic, int retrieve);
usr/src/grub/grub-0.97/netboot/tulip.c
490
static void nway_start(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
491
static void pnic_do_nway(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
492
static void select_media(struct nic *nic, int startup);
usr/src/grub/grub-0.97/netboot/tulip.c
493
static void init_media(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
494
static void start_link(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
495
static int tulip_check_duplex(struct nic *nic);
usr/src/grub/grub-0.97/netboot/tulip.c
566
int mdio_read(struct nic *nic __unused, int phy_id, int location)
usr/src/grub/grub-0.97/netboot/tulip.c
627
void mdio_write(struct nic *nic __unused, int phy_id, int location, int value)
usr/src/grub/grub-0.97/netboot/tulip.c
730
static void parse_eeprom(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tulip.c
749
if (nic->node_addr[0] == eeprom_fixups[i].addr0
usr/src/grub/grub-0.97/netboot/tulip.c
750
&& nic->node_addr[1] == eeprom_fixups[i].addr1
usr/src/grub/grub-0.97/netboot/tulip.c
751
&& nic->node_addr[2] == eeprom_fixups[i].addr2) {
usr/src/grub/grub-0.97/netboot/tulip.c
752
if (nic->node_addr[2] == 0xE8 && ee_data[0x1a] == 0x55)
usr/src/grub/grub-0.97/netboot/tulip.c
897
static void tulip_init_ring(struct nic *nic __unused)
usr/src/grub/grub-0.97/netboot/tulip.c
934
static void set_rx_mode(struct nic *nic __unused) {
usr/src/grub/grub-0.97/netboot/tulip.c
952
static void tulip_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/tulip.c
980
tulip_init_ring(nic);
usr/src/grub/grub-0.97/netboot/tulip.c
983
u32 addr_high = (nic->node_addr[1]<<8) + (nic->node_addr[0]<<0);
usr/src/grub/grub-0.97/netboot/tulip.c
985
outl((nic->node_addr[5]<<8) + nic->node_addr[4] +
usr/src/grub/grub-0.97/netboot/tulip.c
986
(nic->node_addr[3]<<24) + (nic->node_addr[2]<<16),
usr/src/grub/grub-0.97/netboot/tulip.c
993
u32 addr_low = cpu_to_le32(get_unaligned((u32 *)nic->node_addr));
usr/src/grub/grub-0.97/netboot/tulip.c
994
u32 addr_high = cpu_to_le32(get_unaligned((u16 *)(nic->node_addr+4)));
usr/src/grub/grub-0.97/netboot/undi.c
1025
memcpy ( nic->packet + nic->packetlen,
usr/src/grub/grub-0.97/netboot/undi.c
1029
nic->packetlen += undi.pxs->undi_isr.BufferLength;
usr/src/grub/grub-0.97/netboot/undi.c
1037
return nic->packetlen > 0 ? 1 : 0;
usr/src/grub/grub-0.97/netboot/undi.c
1044
struct nic *nic,
usr/src/grub/grub-0.97/netboot/undi.c
1051
if ( nic == NULL ) {};
usr/src/grub/grub-0.97/netboot/undi.c
1127
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/undi.c
1165
memcpy ( nic->node_addr,
usr/src/grub/grub-0.97/netboot/undi.c
1175
nic->poll = undi_poll;
usr/src/grub/grub-0.97/netboot/undi.c
1176
nic->transmit = undi_transmit;
usr/src/grub/grub-0.97/netboot/undi.c
945
static int undi_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/undi.c
997
nic->packetlen = 0;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1054
nic->priv_data = &rhine;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1074
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1075
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1079
rhine_reset(nic);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1092
rhine_reset (struct nic *nic)
usr/src/grub/grub-0.97/netboot/via-rhine.c
1094
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1158
rhine_init_ring (nic);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1164
set_rx_mode(nic);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1191
#define IOSYNC do { readb(nic->ioaddr + StationAddr); } while (0)
usr/src/grub/grub-0.97/netboot/via-rhine.c
1194
rhine_poll (struct nic *nic, int retreive)
usr/src/grub/grub-0.97/netboot/via-rhine.c
1196
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1206
intr_status = inw(nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1210
intr_status |= inb(nic->ioaddr + IntrStatus2) << 16;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1214
outb(0x08, nic->ioaddr + IntrStatus2);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1215
outw(intr_status & 0xffff, nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1232
nic->packetlen = tp->rx_ring[tp->cur_rx].rx_status.bits.frame_length;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1233
memcpy (nic->packet, tp->rx_buffs[tp->cur_rx], nic->packetlen);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1241
outw(DEFAULT_INTR & ~IntrRxDone, nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/via-rhine.c
1249
rhine_transmit (struct nic *nic,
usr/src/grub/grub-0.97/netboot/via-rhine.c
1252
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
usr/src/grub/grub-0.97/netboot/via-rhine.c
1265
memcpy (tp->tx_buffs[entry] + ETH_ALEN, nic->node_addr, ETH_ALEN); /* src */
usr/src/grub/grub-0.97/netboot/via-rhine.c
656
static void rhine_probe1 (struct nic *nic, int ioaddr,
usr/src/grub/grub-0.97/netboot/via-rhine.c
662
static void rhine_init_ring (struct nic *dev);
usr/src/grub/grub-0.97/netboot/via-rhine.c
664
static void rhine_reset (struct nic *nic);
usr/src/grub/grub-0.97/netboot/via-rhine.c
665
static int rhine_poll (struct nic *nic, int retreive);
usr/src/grub/grub-0.97/netboot/via-rhine.c
666
static void rhine_transmit (struct nic *nic, const char *d, unsigned int t,
usr/src/grub/grub-0.97/netboot/via-rhine.c
671
rhine_init_ring (struct nic *nic)
usr/src/grub/grub-0.97/netboot/via-rhine.c
673
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
usr/src/grub/grub-0.97/netboot/via-rhine.c
887
void rhine_irq ( struct nic *nic, irq_action_t action ) {
usr/src/grub/grub-0.97/netboot/via-rhine.c
888
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
usr/src/grub/grub-0.97/netboot/via-rhine.c
895
intr_status = inw(nic->ioaddr + IntrStatus);
usr/src/grub/grub-0.97/netboot/via-rhine.c
898
intr_status |= inb(nic->ioaddr + IntrStatus2) << 16;
usr/src/grub/grub-0.97/netboot/via-rhine.c
902
outw(intr_status, nic->ioaddr + IntrEnable);
usr/src/grub/grub-0.97/netboot/via-rhine.c
905
outw(0x0010, nic->ioaddr + 0x84);
usr/src/grub/grub-0.97/netboot/via-rhine.c
913
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/via-rhine.c
917
rhine_probe1 (nic, pci->ioaddr, pci->dev_id, -1);
usr/src/grub/grub-0.97/netboot/via-rhine.c
920
rhine_reset (nic);
usr/src/grub/grub-0.97/netboot/via-rhine.c
923
nic->poll = rhine_poll;
usr/src/grub/grub-0.97/netboot/via-rhine.c
924
nic->transmit = rhine_transmit;
usr/src/grub/grub-0.97/netboot/via-rhine.c
925
nic->irqno = pci->irq;
usr/src/grub/grub-0.97/netboot/via-rhine.c
926
nic->irq = rhine_irq;
usr/src/grub/grub-0.97/netboot/via-rhine.c
927
nic->ioaddr = tp->ioaddr;
usr/src/grub/grub-0.97/netboot/via-rhine.c
933
static void set_rx_mode(struct nic *nic __unused) {
usr/src/grub/grub-0.97/netboot/via-rhine.c
934
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
usr/src/grub/grub-0.97/netboot/via-rhine.c
947
rhine_probe1 (struct nic *nic, int ioaddr, int chip_id, int options)
usr/src/grub/grub-0.97/netboot/via-rhine.c
983
nic->node_addr[i] = inb (byPAR0 + i);
usr/src/grub/grub-0.97/netboot/via-rhine.c
984
printf ("IO address %hX Ethernet Address: %!\n", ioaddr, nic->node_addr);
usr/src/grub/grub-0.97/netboot/w89c840.c
303
static void w89c840_reset(struct nic *nic)
usr/src/grub/grub-0.97/netboot/w89c840.c
317
writeb(nic->node_addr[i], ioaddr + StationAddr + i);
usr/src/grub/grub-0.97/netboot/w89c840.c
379
static int w89c840_poll(struct nic *nic, int retrieve)
usr/src/grub/grub-0.97/netboot/w89c840.c
434
w89c840_reset(nic);
usr/src/grub/grub-0.97/netboot/w89c840.c
447
nic->packetlen = pkt_len;
usr/src/grub/grub-0.97/netboot/w89c840.c
452
memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len);
usr/src/grub/grub-0.97/netboot/w89c840.c
463
nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3],
usr/src/grub/grub-0.97/netboot/w89c840.c
464
nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7],
usr/src/grub/grub-0.97/netboot/w89c840.c
465
nic->packet[8], nic->packet[9], nic->packet[10],
usr/src/grub/grub-0.97/netboot/w89c840.c
466
nic->packet[11], nic->packet[12], nic->packet[13],
usr/src/grub/grub-0.97/netboot/w89c840.c
467
nic->packet[14], nic->packet[15], nic->packet[16],
usr/src/grub/grub-0.97/netboot/w89c840.c
468
nic->packet[17]);
usr/src/grub/grub-0.97/netboot/w89c840.c
485
struct nic *nic,
usr/src/grub/grub-0.97/netboot/w89c840.c
502
memcpy (tx_packet + ETH_ALEN, nic->node_addr, ETH_ALEN);/* src */
usr/src/grub/grub-0.97/netboot/w89c840.c
584
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/w89c840.c
586
w89c840_reset(nic);
usr/src/grub/grub-0.97/netboot/w89c840.c
597
static void w89c840_irq(struct nic *nic __unused, irq_action_t action __unused)
usr/src/grub/grub-0.97/netboot/w89c840.c
614
struct nic *nic = (struct nic *)dev;
usr/src/grub/grub-0.97/netboot/w89c840.c
623
nic->ioaddr = p->ioaddr & ~3;
usr/src/grub/grub-0.97/netboot/w89c840.c
624
nic->irqno = 0;
usr/src/grub/grub-0.97/netboot/w89c840.c
662
nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
usr/src/grub/grub-0.97/netboot/w89c840.c
664
printf ("Ethernet addr: %!\n", nic->node_addr);
usr/src/grub/grub-0.97/netboot/w89c840.c
699
nic->poll = w89c840_poll;
usr/src/grub/grub-0.97/netboot/w89c840.c
700
nic->transmit = w89c840_transmit;
usr/src/grub/grub-0.97/netboot/w89c840.c
701
nic->irq = w89c840_irq;
usr/src/grub/grub-0.97/netboot/w89c840.c
703
w89c840_reset(nic);
usr/src/lib/libnisdb/ldap_map.c
111
for (i = 0; i < nic; i++) {
usr/src/lib/libnisdb/ldap_map.c
54
int i, j, nic, noc;
usr/src/lib/libnisdb/ldap_map.c
62
nic = (col != 0) ? t->numColumns : -1;
usr/src/lib/libnisdb/ldap_map.c
87
for (i = 0, noc = 0; i < nic; i++) {
usr/src/uts/common/inet/ipf/fil.c
7020
void *nic;
usr/src/uts/common/inet/ipf/fil.c
7031
nic = GETIFP(name, v, ifs);
usr/src/uts/common/inet/ipf/fil.c
7032
if (nic == NULL)
usr/src/uts/common/inet/ipf/fil.c
7033
nic = (void *)-1;
usr/src/uts/common/inet/ipf/fil.c
7034
return nic;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4039
if (hdr1->chip == hdr2->chip && SAME_INTF(nic) && SAME_INTF(vnic) &&
usr/src/uts/common/io/neti_impl.c
215
net_getifname(net_handle_t info, phy_if_t nic, char *buffer,
usr/src/uts/common/io/neti_impl.c
224
return (info->netd_info.netp_getifname(info, nic, buffer, buflen));
usr/src/uts/common/io/neti_impl.c
228
net_getmtu(net_handle_t info, phy_if_t nic, lif_if_t ifdata)
usr/src/uts/common/io/neti_impl.c
236
return (info->netd_info.netp_getmtu(info, nic, ifdata));
usr/src/uts/common/io/neti_impl.c
252
net_getlifaddr(net_handle_t info, phy_if_t nic, lif_if_t ifdata,
usr/src/uts/common/io/neti_impl.c
261
return (info->netd_info.netp_getlifaddr(info, nic, ifdata,
usr/src/uts/common/io/neti_impl.c
292
net_phygetnext(net_handle_t info, phy_if_t nic)
usr/src/uts/common/io/neti_impl.c
300
return (info->netd_info.netp_phygetnext(info, nic));