Searched refs:nic (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Drtl8139.c66 #include "nic.h"
176 static int read_eeprom(struct nic *nic, int location, int addr_len);
177 static void rtl_reset(struct nic *nic);
178 static void rtl_transmit(struct nic *nic, const char *destaddr,
180 static int rtl_poll(struct nic *nic, int retrieve);
182 static void rtl_irq(struct nic *ni
187 struct nic *nic = (struct nic *)dev; local
256 read_eeprom(struct nic *nic, int location, int addr_len) argument
297 set_rx_mode(struct nic *nic) argument
310 rtl_reset(struct nic* nic) argument
367 rtl_transmit(struct nic *nic, const char *destaddr, unsigned int type, unsigned int len, const char *data) argument
423 rtl_poll(struct nic *nic, int retrieve) argument
486 rtl_irq(struct nic *nic, irq_action_t action) argument
514 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dpnic.c18 #include "nic.h"
48 static uint16_t pnic_command_quiet ( struct nic *nic, uint16_t command, argument
58 outw ( input_length, nic->ioaddr + PNIC_REG_LEN );
61 outb( ((char*)input)[i], nic->ioaddr + PNIC_REG_DATA );
65 outw ( command, nic->ioaddr + PNIC_REG_CMD );
67 status = inw ( nic->ioaddr + PNIC_REG_STAT );
69 _output_length = inw ( nic->ioaddr + PNIC_REG_LEN );
89 inb ( nic->ioaddr + PNIC_REG_DATA );
95 static uint16_t pnic_command ( struct nic *ni argument
128 pnic_poll(struct nic *nic, int retrieve) argument
156 pnic_transmit( struct nic *nic, const char *dest, unsigned int type, unsigned int size, const char *data) argument
185 struct nic *nic = (struct nic *)dev; local
192 pnic_irq( struct nic *nic, irq_action_t action ) argument
216 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dnic.h23 struct nic struct
26 int (*poll)P((struct nic *, int retrieve));
27 void (*transmit)P((struct nic *, const char *d,
29 void (*irq)P((struct nic *, irq_action_t));
H A Dtlan.c50 #include "nic.h"
75 static void TLan_ResetLists(struct nic *nic __unused);
76 static void TLan_ResetAdapter(struct nic *nic __unused);
77 static void TLan_FinishReset(struct nic *nic __unused);
84 static void TLan_PhyDetect(struct nic *nic);
85 static void TLan_PhyPowerDown(struct nic *ni
412 TLan_FinishReset(struct nic *nic) argument
529 tlan_poll(struct nic *nic, int retrieve) argument
611 tlan_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
811 TLan_SetMulticastList(struct nic *nic) argument
836 struct nic *nic = (struct nic *) dev; local
838 tlan_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci) argument
1431 TLan_PhyDetect(struct nic *nic) argument
1478 TLan_PhyPowerDown(struct nic *nic) argument
1505 TLan_PhyPowerUp(struct nic *nic) argument
1524 TLan_PhyReset(struct nic *nic) argument
1551 TLan_PhyStartLink(struct nic *nic) argument
1644 TLan_PhyFinishAutoNeg(struct nic *nic) argument
[all...]
H A Dnatsemi.c57 #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 *ni
245 struct nic *nic = (struct nic *)dev; local
407 natsemi_init(struct nic *nic) argument
484 natsemi_init_rxfilter(struct nic *nic) argument
603 natsemi_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
676 natsemi_poll(struct nic *nic, int retrieve) argument
731 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dsis900.c46 #include "nic.h"
83 static void sis900_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
84 static void amd79c901_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
85 static void ics1893_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
86 static void rtl8201_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
87 static void vt6103_read_mode(struct nic *ni
165 sis900_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
199 sis96x_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
237 sis630e_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
276 sis635_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
318 struct nic *nic = (struct nic *)dev; local
598 sis900_init(struct nic *nic) argument
658 sis900_init_rxfilter(struct nic *nic) argument
796 sis900_check_mode(struct nic *nic) argument
1072 sis900_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
1148 sis900_poll(struct nic *nic, int retrieve) argument
1204 struct nic *nic = (struct nic *)dev; local
[all...]
H A D3c595.c29 #include "nic.h"
64 static void t595_reset(struct nic *nic) argument
108 outb(nic->node_addr[i], BASE + VX_W2_ADDR_0 + i);
162 struct nic *nic,
210 outsw(BASE + VX_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2);
227 static int t595_poll(struct nic *nic, int retrieve) argument
269 insw(BASE + VX_W1_RX_PIO_RD_1, nic
161 t595_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
445 struct nic *nic = (struct nic *)dev; local
472 struct nic *nic = (struct nic *)dev; local
[all...]
H A Ddavicom.c44 #include "nic.h"
158 static void davicom_init_chain(struct nic *nic); /* Sten 10/9 */
159 static void davicom_reset(struct nic *nic);
160 static void davicom_transmit(struct nic *nic, const char *d, unsigned int t,
162 static int davicom_poll(struct nic *nic, int retrieve);
172 static void davicom_media_chk(struct nic *);
428 davicom_init_chain(struct nic *nic) argument
475 davicom_reset(struct nic *nic) argument
539 davicom_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
580 davicom_poll(struct nic *nic, int retrieve) argument
620 struct nic *nic = (struct nic *)dev; local
657 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dw89c840.c81 #include "nic.h"
303 static void w89c840_reset(struct nic *nic) argument
317 writeb(nic->node_addr[i], ioaddr + StationAddr + i);
379 static int w89c840_poll(struct nic *nic, int retrieve) argument
382 /* nic->packet should contain data on return */
383 /* nic->packetlen should contain length of data */
434 w89c840_reset(nic);
447 nic
484 w89c840_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
584 struct nic *nic = (struct nic *)dev; local
614 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dsundance.c46 #include "nic.h"
310 static int mdio_read(struct nic *nic, int phy_id, unsigned int location);
311 static void mdio_write(struct nic *nic, int phy_id, unsigned int location,
313 static void set_rx_mode(struct nic *nic);
315 static void check_duplex(struct nic *nic) argument
317 int mii_lpa = mdio_read(nic, sd
388 sundance_reset(struct nic *nic) argument
448 sundance_irq( struct nic *nic, irq_action_t action ) argument
468 sundance_poll(struct nic *nic, int retreive) argument
515 sundance_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
587 struct nic *nic = (struct nic *) dev; local
[all...]
H A Dforcedeth.c47 #include "nic.h"
107 * NVREG_POLL_DEFAULT is the interval length of the timer source on the nic
392 static int mii_rw(struct nic *nic __unused, int addr, int miireg,
451 static void start_rx(struct nic *nic __unused)
481 static void start_tx(struct nic *nic __unused)
505 static void txrx_reset(struct nic *nic __unuse
545 update_linkspeed(struct nic *nic) argument
583 init_ring(struct nic *nic) argument
600 set_multicast(struct nic *nic) argument
636 forcedeth_reset(struct nic *nic) argument
800 forcedeth_poll(struct nic *nic, int retrieve) argument
836 forcedeth_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
930 struct nic *nic = (struct nic *) dev; local
[all...]
H A Dvia-rhine.c47 #include "nic.h"
656 static void rhine_probe1 (struct nic *nic, int ioaddr,
662 static void rhine_init_ring (struct nic *dev);
664 static void rhine_reset (struct nic *nic);
665 static int rhine_poll (struct nic *nic, int retreive);
666 static void rhine_transmit (struct nic *nic, cons
671 rhine_init_ring(struct nic *nic) argument
887 rhine_irq( struct nic *nic, irq_action_t action ) argument
913 struct nic *nic = (struct nic *)dev; local
947 rhine_probe1(struct nic *nic, int ioaddr, int chip_id, int options) argument
1074 struct nic *nic = (struct nic *)dev; local
1092 rhine_reset(struct nic *nic) argument
1194 rhine_poll(struct nic *nic, int retreive) argument
1249 rhine_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
[all...]
H A Dr8169.c47 #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) argument
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
500 r8169_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
564 rtl8169_hw_start(struct nic *nic) argument
641 r8169_reset(struct nic *nic) argument
714 struct nic *nic = (struct nic *) dev; local
[all...]
H A Depic100.c9 #include "nic.h"
53 static int epic100_poll(struct nic *nic, int retrieve);
54 static void epic100_transmit(struct nic *nic, const char *destaddr,
60 static void epic100_irq(struct nic *nic, irq_action_t action);
100 struct nic *nic = (struct nic *)de local
301 epic100_transmit(struct nic *nic, const char *destaddr, unsigned int type, unsigned int len, const char *data) argument
368 epic100_poll(struct nic *nic, int retrieve) argument
[all...]
H A Dns83820.c41 #include "nic.h"
415 static void phy_intr(struct nic *nic __unused)
502 static void ns83820_set_multicast(struct nic *nic __unused);
503 static void ns83820_setup_rx(struct nic *nic) argument
534 phy_intr(nic);
551 ns83820_set_multicast(nic);
556 static void ns83820_do_reset(struct nic *ni
566 ns83820_reset(struct nic *nic) argument
656 ns83820_check_intr(struct nic *nic) argument
673 ns83820_poll(struct nic *nic, int retrieve) argument
717 ns83820_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
816 struct nic *nic = (struct nic *) dev; local
[all...]
H A Dtulip.c107 #include "nic.h"
479 static int mdio_read(struct nic *nic, int phy_id, int location);
480 static void mdio_write(struct nic *nic, int phy_id, int location, int value);
482 static void parse_eeprom(struct nic *nic);
484 static void tulip_init_ring(struct nic *nic);
485 static void tulip_reset(struct nic *ni
730 parse_eeprom(struct nic *nic) argument
952 tulip_reset(struct nic *nic) argument
1070 tulip_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
1130 tulip_poll(struct nic *nic, int retrieve) argument
1172 struct nic *nic = (struct nic *)dev; local
1210 struct nic *nic = (struct nic *)dev; local
1424 start_link(struct nic *nic) argument
1579 init_media(struct nic *nic) argument
1734 select_media(struct nic *nic, int startup) argument
1969 tulip_check_duplex(struct nic *nic) argument
[all...]
H A Dns8390.c29 #include "nic.h"
258 static void ns8390_reset(struct nic *nic) argument
303 outb(nic->node_addr[i], eth_nic_base+D8390_P1_PAR0+i);
328 t503_output = (nic->flags) ? 0 : _3COM_CR_XSEL;
333 static int ns8390_poll(struct nic *nic, int retrieve);
339 static void eth_rx_overrun(struct nic *nic) argument
376 while (ns8390_poll(nic,
389 ns8390_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
488 ns8390_poll(struct nic *nic, int retrieve) argument
588 struct nic *nic = (struct nic *)dev; local
617 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dpcnet32.c45 #include "nic.h"
280 static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num);
282 static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num,
404 static int pcnet32_init_ring(struct nic *nic) argument
428 lp->init_block.phys_addr[i] = nic->node_addr[i];
437 static void pcnet32_reset(struct nic *nic) argument
670 struct nic *nic = (struct nic *) dev; local
[all...]
H A Deepro100.c98 #include "nic.h"
365 static void eepro100_irq(struct nic *nic __unused, irq_action_t action __unused)
387 static void eepro100_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
407 memcpy (&hdr.src_addr, nic->node_addr, ETH_ALEN);
478 * returns the packet in the array nic->packet.
479 * returns the length of the packet in nic->packetlen.
482 static int eepro100_poll(struct nic *nic, in argument
575 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dnic.c19 #include "nic.h"
94 /* See nic.h */
122 struct nic nic = variable in typeref:struct:nic
139 (int (*)(struct nic *, int))dummy, /* poll */
140 (void (*)(struct nic *, const char *,
143 (void (*)(struct nic *, irq_action_t))dummy, /* irq */
168 dev = &nic.dev;
187 return ((*nic.poll)(&nic, retriev
[all...]
H A D3c90x.c41 #include "nic.h"
474 a3c90x_transmit(struct nic *nic __unused, const char *d, unsigned int t,
598 *** copy the packet to nic->packet if it gets a packet and set the size
599 *** in nic->packetlen. Return 1 if a packet was found.
602 a3c90x_poll(struct nic *nic, int retrieve) argument
620 INF_3C90X.ReceiveUPD.DataAddr = virt_to_bus(nic->packet);
651 /** Ok, got packet. Set length in nic->packetlen. **/
652 nic
693 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dtg3.c14 #include "nic.h"
1642 addr_high = ((tp->nic->node_addr[0] << 8) |
1643 tp->nic->node_addr[1]);
1644 addr_low = ((tp->nic->node_addr[2] << 24) |
1645 (tp->nic->node_addr[3] << 16) |
1646 (tp->nic->node_addr[4] << 8) |
1647 (tp->nic->node_addr[5] << 0));
1661 addr_high = (tp->nic->node_addr[0] +
1662 tp->nic->node_addr[1] +
1663 tp->nic
2813 struct nic *nic = tp->nic; local
2992 tg3_poll(struct nic *nic, int retrieve) argument
3055 tg3_transmit(struct nic *nic, const char *dst_addr, unsigned int type, unsigned int size, const char *packet) argument
3158 struct nic *nic = (struct nic *)dev; local
[all...]
H A Dgrub.h12 #include "nic.h"
170 extern struct nic nic;
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_device.c220 char *nic = NULL; local
229 nic = malloc(nlen + 1);
230 if (nic == NULL) {
235 (void) strncpy(nic, LDMA_HDR2DATA(request), nlen);
236 nic[nlen] = '\0';
238 LDMA_DBG("VALIDATE_NIC(%s)", nic);
254 if (dladm_name2info(dlhandle, nic, &linkid, &flag, &class,
256 LDMA_DBG("VALIDATE_NIC(%s): name2info failed", nic);
258 LDMA_DBG("VALIDATE_NIC(%s): media=0x%x", nic, media);
278 (nic)
[all...]
/illumos-gate/usr/src/cmd/svc/milestone/
H A Dnet-physical467 nic="`/sbin/devprop network-interface`"
468 if smf_is_globalzone && [ -z "$inet_list" ] && [ -n "$nic" ]; then
472 /sbin/ifconfig $nic plumb 2>/dev/null
473 [ -n "`/sbin/ifconfig $nic 2>/dev/null`" ] && (
477 inet_list=$nic;
481 /sbin/ifconfig $nic auto-dhcp primary;
485 i4d_fail="$i4d_fail $nic";
495 /sbin/ifconfig $nic plumb 2>/dev/null
496 [ -n "`/sbin/ifconfig $nic 2>/dev/null`" ] && (
500 inet_list=$nic;
[all...]

Completed in 121 milliseconds

12