/external/syslinux/gpxe/src/drivers/net/ |
D | 3c5x9.c | 40 void t5x9_disable ( struct nic *nic ) { in t5x9_disable() argument 42 outw(RX_DISABLE, nic->ioaddr + EP_COMMAND); in t5x9_disable() 43 outw(RX_DISCARD_TOP_PACK, nic->ioaddr + EP_COMMAND); in t5x9_disable() 44 while (inw(nic->ioaddr + EP_STATUS) & S_COMMAND_IN_PROGRESS) in t5x9_disable() 46 outw(TX_DISABLE, nic->ioaddr + EP_COMMAND); in t5x9_disable() 47 outw(STOP_TRANSCEIVER, nic->ioaddr + EP_COMMAND); in t5x9_disable() 49 outw(RX_RESET, nic->ioaddr + EP_COMMAND); in t5x9_disable() 50 outw(TX_RESET, nic->ioaddr + EP_COMMAND); in t5x9_disable() 51 outw(C_INTR_LATCH, nic->ioaddr + EP_COMMAND); in t5x9_disable() 52 outw(SET_RD_0_MASK, nic->ioaddr + EP_COMMAND); in t5x9_disable() [all …]
|
D | 3c515.c | 100 outw(SelectWindow + (win_num), nic->ioaddr + EL3_CMD) 279 int options, struct nic *nic); 281 struct nic *nic); 292 static void t515_reset(struct nic *nic) in t515_reset() argument 300 outb(0x20, nic->ioaddr + Wn3_MAC_Ctrl); /* Set the full-duplex bit. */ in t515_reset() 301 config.i = inl(nic->ioaddr + Wn3_Config); in t515_reset() 320 outl(config.i, nic->ioaddr + Wn3_Config); in t515_reset() 325 outw(TxReset, nic->ioaddr + EL3_CMD); in t515_reset() 327 if (!(inw(nic->ioaddr + EL3_STATUS) & CmdInProgress)) in t515_reset() 330 outw(RxReset, nic->ioaddr + EL3_CMD); in t515_reset() [all …]
|
D | legacy.c | 22 struct nic nic; variable 27 struct nic *nic = netdev->priv; in legacy_transmit() local 34 nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest, in legacy_transmit() 42 struct nic *nic = netdev->priv; in legacy_poll() local 49 nic->packet = iobuf->data; in legacy_poll() 50 if ( nic->nic_op->poll ( nic, 1 ) ) { in legacy_poll() 51 DBG ( "Received %d bytes\n", nic->packetlen ); in legacy_poll() 52 iob_put ( iobuf, nic->packetlen ); in legacy_poll() 69 struct nic *nic = netdev->priv; in legacy_irq() local 71 nic->nic_op->irq ( nic, ( enable ? ENABLE : DISABLE ) ); in legacy_irq() [all …]
|
D | eepro.c | 300 static void eepro_reset(struct nic *nic) in eepro_reset() argument 305 eepro_sw2bank2(nic->ioaddr); /* be careful, bank2 now */ in eepro_reset() 306 temp_reg = inb(nic->ioaddr + eeprom_reg); in eepro_reset() 309 outb(temp_reg & 0xEF, nic->ioaddr + eeprom_reg); in eepro_reset() 311 outb(nic->node_addr[i], nic->ioaddr + I_ADD_REG0 + i); in eepro_reset() 312 temp_reg = inb(nic->ioaddr + REG1); in eepro_reset() 315 | RCV_Discard_BadFrame, nic->ioaddr + REG1); in eepro_reset() 316 temp_reg = inb(nic->ioaddr + REG2); /* match broadcast */ in eepro_reset() 317 outb(temp_reg | 0x14, nic->ioaddr + REG2); in eepro_reset() 318 temp_reg = inb(nic->ioaddr + REG3); in eepro_reset() [all …]
|
D | smc9000.c | 618 struct nic *nic, in smc9000_transmit() argument 645 SMC_SELECT_BANK(nic->ioaddr, 2); in smc9000_transmit() 646 _outw(MC_ALLOC | numPages, nic->ioaddr + MMU_CMD); in smc9000_transmit() 651 status = inb(nic->ioaddr + INTERRUPT); in smc9000_transmit() 654 _outb(IM_ALLOC_INT, nic->ioaddr + INTERRUPT); in smc9000_transmit() 664 _outw(MC_RESET, nic->ioaddr + MMU_CMD); in smc9000_transmit() 669 packet_no = inb(nic->ioaddr + PNR_ARR + 1); in smc9000_transmit() 677 _outb(packet_no, nic->ioaddr + PNR_ARR); in smc9000_transmit() 680 _outw(PTR_AUTOINC, nic->ioaddr + POINTER); in smc9000_transmit() 688 _outw(0, nic->ioaddr + DATA_1 ); in smc9000_transmit() [all …]
|
D | sis900.c | 93 static void sis900_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 94 static void amd79c901_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 95 static void ics1893_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 96 static void rtl8201_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 97 static void vt6103_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 103 void (*read_mode) (struct nic *nic, int phy_addr, int *speed, int *duplex); 144 static int sis900_probe(struct nic *nic,struct pci_device *pci); 153 static void sis900_init(struct nic *nic); 155 static void sis900_reset(struct nic *nic); 157 static void sis900_init_rxfilter(struct nic *nic); [all …]
|
D | tlan.c | 61 static void TLan_ResetLists(struct nic *nic __unused); 62 static void TLan_ResetAdapter(struct nic *nic __unused); 63 static void TLan_FinishReset(struct nic *nic __unused); 70 static void TLan_PhyDetect(struct nic *nic); 71 static void TLan_PhyPowerDown(struct nic *nic); 72 static void TLan_PhyPowerUp(struct nic *nic); 75 static void TLan_SetMac(struct nic *nic __unused, int areg, unsigned char *mac); 77 static void TLan_PhyReset(struct nic *nic); 78 static void TLan_PhyStartLink(struct nic *nic); 79 static void TLan_PhyFinishAutoNeg(struct nic *nic); [all …]
|
D | virtio-net.c | 76 static void virtnet_disable(struct nic *nic) in virtnet_disable() argument 82 vp_del_vq(nic->ioaddr, i); in virtnet_disable() 84 vp_reset(nic->ioaddr); in virtnet_disable() 98 static int virtnet_poll(struct nic *nic, int retrieve) in virtnet_poll() argument 118 nic->packetlen = len; in virtnet_poll() 119 memcpy(nic->packet, (char *)rx_buffer[token], nic->packetlen); in virtnet_poll() 129 vring_kick(nic->ioaddr, &virtqueue[RX_INDEX], 1); in virtnet_poll() 142 static void virtnet_transmit(struct nic *nic, const char *destaddr, in virtnet_transmit() argument 166 memcpy(tx_eth_frame.hdr.src_addr, nic->node_addr, ETH_ALEN); in virtnet_transmit() 177 vring_kick(nic->ioaddr, &virtqueue[TX_INDEX], 1); in virtnet_transmit() [all …]
|
D | depca.c | 476 static void depca_init_ring(struct nic *nic) 497 lp.init_block.phys_addr[i] = nic->node_addr[i]; 502 static inline void LoadCSRs(struct nic *nic) 504 outw(CSR1, nic->ioaddr + DEPCA_ADDR); /* initialisation block address LSW */ 505 outw((u16) (lp.sh_mem & LA_MASK), nic->ioaddr + DEPCA_DATA); 506 outw(CSR2, nic->ioaddr + DEPCA_ADDR); /* initialisation block address MSW */ 507 outw((u16) ((lp.sh_mem & LA_MASK) >> 16), nic->ioaddr + DEPCA_DATA); 508 outw(CSR3, nic->ioaddr + DEPCA_ADDR); /* ALE control */ 509 outw(ACON, nic->ioaddr + DEPCA_DATA); 510 outw(CSR0, nic->ioaddr + DEPCA_ADDR); /* Point back to CSR0 */ [all …]
|
D | forcedeth.c | 466 static int mii_rw(struct nic *nic __unused, int addr, int miireg, in mii_rw() 511 static int phy_reset(struct nic *nic) in phy_reset() argument 517 miicontrol = mii_rw(nic, np->phyaddr, MII_BMCR, MII_READ); in phy_reset() 519 if (mii_rw(nic, np->phyaddr, MII_BMCR, miicontrol)) { in phy_reset() 529 miicontrol = mii_rw(nic, np->phyaddr, MII_BMCR, MII_READ); in phy_reset() 537 static int phy_init(struct nic *nic) in phy_init() argument 544 reg = mii_rw(nic, np->phyaddr, MII_ADVERTISE, MII_READ); in phy_init() 548 if (mii_rw(nic, np->phyaddr, MII_ADVERTISE, reg)) { in phy_init() 557 mii_status = mii_rw(nic, np->phyaddr, MII_BMSR, MII_READ); in phy_init() 562 mii_rw(nic, np->phyaddr, MII_CTRL1000, MII_READ); in phy_init() [all …]
|
D | cs89x0.c | 262 static int send_test_pkt(struct nic *nic) in send_test_pkt() argument 272 memcpy(testpacket, nic->node_addr, ETH_ALEN); in send_test_pkt() 273 memcpy(testpacket+ETH_ALEN, nic->node_addr, ETH_ALEN); in send_test_pkt() 301 static int detect_aui(struct nic *nic) in detect_aui() argument 308 if (send_test_pkt(nic)) { in detect_aui() 314 static int detect_bnc(struct nic *nic) in detect_bnc() argument 321 if (send_test_pkt(nic)) { in detect_bnc() 331 static void cs89x0_reset(struct nic *nic) in cs89x0_reset() argument 365 nic->node_addr[i*2] | in cs89x0_reset() 366 (nic->node_addr[i*2+1] << 8)); in cs89x0_reset() [all …]
|
D | davicom.c | 159 static int davicom_probe(struct nic *nic,struct pci_device *pci); 160 static void davicom_init_chain(struct nic *nic); /* Sten 10/9 */ 161 static void davicom_reset(struct nic *nic); 162 static void davicom_transmit(struct nic *nic, const char *d, unsigned int t, 164 static int davicom_poll(struct nic *nic, int retrieve); 165 static void davicom_disable(struct nic *nic); 174 static void davicom_media_chk(struct nic *); 353 static void davicom_media_chk(struct nic * nic __unused) in davicom_media_chk() 432 static void davicom_init_chain(struct nic *nic) in davicom_init_chain() argument 451 txb[0] = nic->node_addr[0]; in davicom_init_chain() [all …]
|
D | sundance.c | 285 static int mdio_read(struct nic *nic, int phy_id, unsigned int location); 286 static void mdio_write(struct nic *nic, int phy_id, unsigned int location, 288 static void set_rx_mode(struct nic *nic); 290 static void check_duplex(struct nic *nic) in check_duplex() argument 292 int mii_lpa = mdio_read(nic, sdc->phys[0], MII_LPA); in check_duplex() 321 static void init_ring(struct nic *nic __unused) in init_ring() 363 static void sundance_reset(struct nic *nic) in sundance_reset() argument 367 init_ring(nic); in sundance_reset() 377 addr16 = (nic->node_addr[0] | (nic->node_addr[1] << 8)); in sundance_reset() 379 addr16 = (nic->node_addr[2] | (nic->node_addr[3] << 8)); in sundance_reset() [all …]
|
D | 3c595.c | 68 static void t595_reset(struct nic *nic) in t595_reset() argument 112 outb(nic->node_addr[i], BASE + VX_W2_ADDR_0 + i); in t595_reset() 166 struct nic *nic, in t595_transmit() argument 214 outsw(BASE + VX_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2); in t595_transmit() 231 static int t595_poll(struct nic *nic, int retrieve) in t595_poll() argument 273 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2); in t595_poll() 275 nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll() 276 nic->packetlen=rx_fifo; in t595_poll() 286 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t595_poll() 288 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll() [all …]
|
D | tulip.c | 493 static int mdio_read(struct nic *nic, int phy_id, int location); 494 static void mdio_write(struct nic *nic, int phy_id, int location, int value); 496 static void parse_eeprom(struct nic *nic); 497 static int tulip_probe(struct nic *nic,struct pci_device *pci); 498 static void tulip_init_ring(struct nic *nic); 499 static void tulip_reset(struct nic *nic); 500 static void tulip_transmit(struct nic *nic, const char *d, unsigned int t, 502 static int tulip_poll(struct nic *nic, int retrieve); 503 static void tulip_disable(struct nic *nic); 504 static void nway_start(struct nic *nic); [all …]
|
D | dmfe.c | 228 static void dmfe_init_dm910x(struct nic *nic); 229 static void dmfe_descriptor_init(struct nic *, unsigned long ioaddr); 231 static void send_filter_frame(struct nic *nic); 232 static void dm9132_id_table(struct nic *nic); 238 static void dmfe_set_phyxcer(struct nic *nic); 240 static void dmfe_parse_srom(struct nic *nic); 241 static void dmfe_program_DM9801(struct nic *nic, int); 242 static void dmfe_program_DM9802(struct nic *nic); 244 static void dmfe_reset(struct nic *nic) in dmfe_reset() argument 264 dmfe_init_dm910x(nic); in dmfe_reset() [all …]
|
D | via-rhine.c | 687 static void rhine_probe1 (struct nic *nic, struct pci_device *pci, int ioaddr, 693 static void rhine_init_ring (struct nic *dev); 694 static void rhine_disable (struct nic *nic); 695 static void rhine_reset (struct nic *nic); 696 static int rhine_poll (struct nic *nic, int retreive); 697 static void rhine_transmit (struct nic *nic, const char *d, unsigned int t, 713 rhine_init_ring (struct nic *nic) in rhine_init_ring() argument 715 struct rhine_private *tp = (struct rhine_private *) nic->priv_data; in rhine_init_ring() 934 void rhine_irq ( struct nic *nic, irq_action_t action ) { in rhine_irq() argument 935 struct rhine_private *tp = (struct rhine_private *) nic->priv_data; in rhine_irq() [all …]
|
D | ns83820.c | 404 static void phy_intr(struct nic *nic __unused) in phy_intr() 491 static void ns83820_set_multicast(struct nic *nic __unused); 492 static void ns83820_setup_rx(struct nic *nic) in ns83820_setup_rx() argument 523 phy_intr(nic); in ns83820_setup_rx() 540 ns83820_set_multicast(nic); in ns83820_setup_rx() 545 static void ns83820_do_reset(struct nic *nic __unused, u32 which) in ns83820_do_reset() 555 static void ns83820_reset(struct nic *nic) in ns83820_reset() argument 562 ns83820_setup_rx(nic); in ns83820_reset() 576 static void ns83820_getmac(struct nic *nic __unused, u8 * mac) in ns83820_getmac() 591 static void ns83820_set_multicast(struct nic *nic __unused) in ns83820_set_multicast() [all …]
|
D | w89c840.c | 300 static void w89c840_reset(struct nic *nic) in w89c840_reset() argument 314 writeb(nic->node_addr[i], ioaddr + StationAddr + i); in w89c840_reset() 376 static int w89c840_poll(struct nic *nic, int retrieve) in w89c840_poll() argument 431 w89c840_reset(nic); in w89c840_poll() 444 nic->packetlen = pkt_len; in w89c840_poll() 449 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll() 460 nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3], in w89c840_poll() 461 nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7], in w89c840_poll() 462 nic->packet[8], nic->packet[9], nic->packet[10], in w89c840_poll() 463 nic->packet[11], nic->packet[12], nic->packet[13], in w89c840_poll() [all …]
|
D | mtd80x.c | 365 static int mdio_read(struct nic * , int phy_id, int location); 366 static void getlinktype(struct nic * ); 367 static void getlinkstatus(struct nic * ); 368 static void set_rx_mode(struct nic *); 373 static void init_ring(struct nic *nic __unused) in init_ring() 415 static void mtd_reset( struct nic *nic ) in mtd_reset() argument 420 init_ring(nic); in mtd_reset() 440 getlinkstatus(nic); in mtd_reset() 444 getlinktype(nic); in mtd_reset() 452 set_rx_mode(nic); in mtd_reset() [all …]
|
D | 3c529.c | 25 static int t529_probe ( struct nic *nic, struct mca_device *mca ) { in t529_probe() argument 28 nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8; in t529_probe() 29 nic->irqno = mca->pos[5] & 0x0f; in t529_probe() 31 nic->ioaddr, nic->irqno ); in t529_probe() 34 return t5x9_probe ( nic, MCA_ID ( mca ), 0xffff ); in t529_probe() 37 static void t529_disable ( struct nic *nic, struct mca_device *mca __unused ) { in t529_disable() argument 38 t5x9_disable ( nic ); in t529_disable()
|
D | epic100.c | 55 static void epic100_disable(struct nic *nic); 56 static int epic100_poll(struct nic *nic, int retrieve); 57 static void epic100_transmit(struct nic *nic, const char *destaddr, 63 static void epic100_irq(struct nic *nic, irq_action_t action); 109 epic100_probe ( struct nic *nic, struct pci_device *pci ) { in epic100_probe() argument 125 nic->irqno = 0; in epic100_probe() 126 nic->ioaddr = pci->ioaddr & ~3; in epic100_probe() 188 ap = (unsigned short*)nic->node_addr; in epic100_probe() 192 DBG ( " I/O %4.4x %s ", ioaddr, eth_ntoa ( nic->node_addr ) ); in epic100_probe() 214 nic->nic_op = &epic100_operations; in epic100_probe() [all …]
|
D | ne2k_isa.c | 40 static void ne_reset(struct nic *nic, struct isa_device *isa); 135 static int ne_probe(struct nic *nic, struct isa_device *isa) { in ne_probe() argument 144 nic->irqno = 0; in ne_probe() 145 nic->ioaddr = isa->ioaddr; in ne_probe() 197 nic->node_addr[i] = romdata[i + ((eth_flags & FLAG_16BIT) ? i : 0)]; in ne_probe() 199 nic->ioaddr = eth_nic_base; in ne_probe() 202 nic->node_addr)); in ne_probe() 211 ne_reset(nic, isa); in ne_probe() 212 nic->nic_op = &ne_operations; in ne_probe() 220 static void ne_disable(struct nic *nic, struct isa_device *isa) { in ne_disable() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_nic.c | 75 list_for_each_entry(struct nic_info, nic, &gnic_list, list) { in find_nic_by_name() 76 if (nic->mode != mode) in find_nic_by_name() 79 if (strcasecmp(nic->name, n) == 0) in find_nic_by_name() 80 return nic; in find_nic_by_name() 108 query_wifi_bitrate(const struct nic_info *nic, uint64_t *bitrate) in query_wifi_bitrate() argument 117 strcpy(req.ifr_name, nic->name); in query_wifi_bitrate() 124 fprintf(stderr, "Unable to create socket for %s\n", nic->name); in query_wifi_bitrate() 129 fprintf(stderr, "Error performing SIOCGIWSTATS on %s\n", nic->name); in query_wifi_bitrate() 139 query_nic_rssi(const struct nic_info *nic, uint64_t *leveldBm) in query_nic_rssi() argument 148 strcpy(req.ifr_name, nic->name); in query_nic_rssi() [all …]
|
/external/syslinux/gpxe/src/include/ |
D | nic.h | 39 struct nic { struct 53 int ( *connect ) ( struct nic * ); argument 54 int ( *poll ) ( struct nic *, int retrieve ); 55 void ( *transmit ) ( struct nic *, const char *, 57 void ( *irq ) ( struct nic *, irq_action_t ); 60 extern struct nic nic; 63 return nic.nic_op->poll ( &nic, retrieve ); in eth_poll() 68 nic.nic_op->transmit ( &nic, dest, type, size, packet ); in eth_transmit() 75 extern int dummy_connect ( struct nic *nic ); 76 extern void dummy_irq ( struct nic *nic, irq_action_t irq_action ); [all …]
|