/external/syslinux/gpxe/src/include/gpxe/ |
virtio-pci.h | 40 static inline u32 vp_get_features(unsigned int ioaddr) 42 return inl(ioaddr + VIRTIO_PCI_HOST_FEATURES); 45 static inline void vp_set_features(unsigned int ioaddr, u32 features) 47 outl(features, ioaddr + VIRTIO_PCI_GUEST_FEATURES); 50 static inline void vp_get(unsigned int ioaddr, unsigned offset, 57 ptr[i] = inb(ioaddr + VIRTIO_PCI_CONFIG + offset + i); 60 static inline u8 vp_get_status(unsigned int ioaddr) 62 return inb(ioaddr + VIRTIO_PCI_STATUS); 65 static inline void vp_set_status(unsigned int ioaddr, u8 status) 69 outb(status, ioaddr + VIRTIO_PCI_STATUS) [all...] |
/external/syslinux/gpxe/src/drivers/net/ |
3c5x9.c | 42 outw(RX_DISABLE, nic->ioaddr + EP_COMMAND); 43 outw(RX_DISCARD_TOP_PACK, nic->ioaddr + EP_COMMAND); 44 while (inw(nic->ioaddr + EP_STATUS) & S_COMMAND_IN_PROGRESS) 46 outw(TX_DISABLE, nic->ioaddr + EP_COMMAND); 47 outw(STOP_TRANSCEIVER, nic->ioaddr + EP_COMMAND); 49 outw(RX_RESET, nic->ioaddr + EP_COMMAND); 50 outw(TX_RESET, nic->ioaddr + EP_COMMAND); 51 outw(C_INTR_LATCH, nic->ioaddr + EP_COMMAND); 52 outw(SET_RD_0_MASK, nic->ioaddr + EP_COMMAND); 53 outw(SET_INTR_MASK, nic->ioaddr + EP_COMMAND) [all...] |
smc9000.c | 70 static word smc_read_phy_register(int ioaddr, byte phyaddr, byte phyreg) 134 oldBank = inw( ioaddr+BANK_SELECT ); 137 SMC_SELECT_BANK(ioaddr, 3); 140 mii_reg = inw( ioaddr+MII_REG ); 149 outw( mii_reg | bits[i], ioaddr+MII_REG ); 154 outw( mii_reg | bits[i] | MII_MCLK, ioaddr+MII_REG ); 156 bits[i] |= inw( ioaddr+MII_REG ) & MII_MDI; 161 outw( mii_reg, ioaddr+MII_REG ); 165 SMC_SELECT_BANK(ioaddr, oldBank); 189 static void smc_write_phy_register(int ioaddr, [all...] |
eepro.c | 267 #define eepro_full_reset(ioaddr) outb(RESET_CMD, ioaddr); udelay(255); 270 #define eepro_sel_reset(ioaddr) \ 272 outb ( SEL_RESET_CMD, ioaddr ); \ 278 #define eepro_clear_int(ioaddr) outb(ALL_MASK, ioaddr + STATUS_REG) 281 #define eepro_en_rx(ioaddr) outb(RCV_ENABLE_CMD, ioaddr) 284 #define eepro_dis_rx(ioaddr) outb(RCV_DISABLE_CMD, ioaddr) [all...] |
3c515.c | 100 outw(SelectWindow + (win_num), nic->ioaddr + EL3_CMD) 278 static int corkscrew_found_device(int ioaddr, int irq, int product_index, 280 static int corkscrew_probe1(int ioaddr, int irq, int product_index, 300 outb(0x20, nic->ioaddr + Wn3_MAC_Ctrl); /* Set the full-duplex bit. */ 301 config.i = inl(nic->ioaddr + Wn3_Config); 320 outl(config.i, nic->ioaddr + Wn3_Config); 325 outw(TxReset, nic->ioaddr + EL3_CMD); 327 if (!(inw(nic->ioaddr + EL3_STATUS) & CmdInProgress)) 330 outw(RxReset, nic->ioaddr + EL3_CMD); 333 if (!(inw(nic->ioaddr + EL3_STATUS) & CmdInProgress) [all...] |
r8169.c | 50 static void mdio_write(void *ioaddr, int reg_addr, int value) 69 static int mdio_read(void *ioaddr, int reg_addr) 91 static void mdio_patch(void *ioaddr, int reg_addr, int value) 95 mdio_write(ioaddr, reg_addr, mdio_read(ioaddr, reg_addr) | value); 98 static void rtl_ephy_write(void *ioaddr, int reg_addr, int value) 114 static u16 rtl_ephy_read(void *ioaddr, int reg_addr) 134 static void rtl_csi_write(void *ioaddr, int addr, int value) 151 static u32 rtl_csi_read(void *ioaddr, int addr) 172 static void rtl8169_irq_mask_and_ack(void *ioaddr) 230 void *ioaddr = tp->mmio_addr; local 253 void *ioaddr = tp->mmio_addr; local 762 void *ioaddr = tp->mmio_addr; local 823 void *ioaddr = tp->mmio_addr; local 839 void *ioaddr = tp->mmio_addr; local 926 void *ioaddr = tp->mmio_addr; local 942 void *ioaddr = tp->mmio_addr; local 1037 void *ioaddr = tp->mmio_addr; local 1056 void *ioaddr = tp->mmio_addr; local 1359 void *ioaddr = tp->mmio_addr; local 1521 void *ioaddr = tp->mmio_addr; local 1868 void *ioaddr = tp->mmio_addr; local 1877 void *ioaddr = tp->mmio_addr; local 1897 void *ioaddr = tp->mmio_addr; local 1945 void *ioaddr = tp->mmio_addr; local 2012 void *ioaddr = tp->mmio_addr; local 2048 void *ioaddr = tp->mmio_addr; local 2104 void *ioaddr; local 2248 void *ioaddr = tp->mmio_addr; local [all...] |
via-rhine.c | 54 /* define all ioaddr */ 56 #define byPAR0 ioaddr 57 #define byRCR ioaddr + 6 58 #define byTCR ioaddr + 7 59 #define byCR0 ioaddr + 8 60 #define byCR1 ioaddr + 9 61 #define byISR0 ioaddr + 0x0c 62 #define byISR1 ioaddr + 0x0d 63 #define byIMR0 ioaddr + 0x0e 64 #define byIMR1 ioaddr + 0x0 671 unsigned short ioaddr; member in struct:rhine_private 988 int ioaddr = tp->ioaddr; local 1176 int ioaddr = tp->ioaddr; local 1194 int ioaddr = tp->ioaddr; local 1348 int ioaddr = tp->ioaddr; local [all...] |
depca.c | 260 ** These are LANCE registers addressable through nic->ioaddr + DEPCA_ADDR 471 #define STOP_DEPCA(ioaddr) \ 472 outw(CSR0, ioaddr + DEPCA_ADDR);\ 473 outw(STOP, ioaddr + DEPCA_DATA) 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) [all...] |
dmfe.c | 127 #define SROM_CLK_WRITE(data, ioaddr) outl(data|CR9_SROM_READ|CR9_SRCS,ioaddr);udelay(5);outl(data|CR9_SROM_READ|CR9_SRCS|CR9_SRCLK,ioaddr);udelay(5);outl(data|CR9_SROM_READ|CR9_SRCS,ioaddr);udelay(5); 227 static u16 read_srom_word(long ioaddr, int offset); 229 static void dmfe_descriptor_init(struct nic *, unsigned long ioaddr); 278 unsigned long ioaddr = BASE; local 281 outl(DM910X_RESET, ioaddr + DCR0); /* RESET MAC */ 283 outl(db->cr0_data, ioaddr + DCR0); 294 outl(0x180, ioaddr + DCR12); /* Let bit 7 output port * 581 unsigned long ioaddr = BASE + 0xc0; \/* ID Table *\/ local 883 unsigned long ioaddr; local 938 unsigned long ioaddr; local [all...] |
3c509-eisa.c | 19 nic->ioaddr = eisa->ioaddr;
|
natsemi.c | 111 eereg = inb ( np->ioaddr + EE_REG ); 122 eereg = inb ( np->ioaddr + EE_REG ); 125 outb ( eereg, np->ioaddr + EE_REG ); 192 np->ioaddr = pci->ioaddr; 267 cfg = inl (np->ioaddr + ChipConfig) & CFG_RESET_SAVE; 270 wcsr = inl (np->ioaddr + WOLCmd) & WCSR_RESET_SAVE; 273 rfcr = inl (np->ioaddr + RxFilterAddr) & RFCR_RESET_SAVE; 277 outl(i*2, np->ioaddr + RxFilterAddr); 278 pmatch[i] = inw(np->ioaddr + RxFilterData) [all...] |
pcnet32.c | 56 static u32 ioaddr; /* Globally used for the card's io address */ variable 419 lp->a.reset(ioaddr); 422 lp->a.write_bcr(ioaddr, 20, 2); 425 val = lp->a.read_bcr(ioaddr, 2) & ~2; 428 lp->a.write_bcr(ioaddr, 2, val); 432 val = lp->a.read_bcr(ioaddr, 9) & ~3; 441 read_csr(ioaddr, 442 88) | (lp->a.read_csr(ioaddr, 448 lp->a.write_bcr(ioaddr, 9, val); 452 val = lp->a.read_csr(ioaddr, 124) & ~0x10 [all...] |
sis190.c | 82 static void __mdio_cmd(void *ioaddr, u32 ctl) 100 static void mdio_write(void *ioaddr, int phy_id, int reg, int val) 102 __mdio_cmd(ioaddr, EhnMIIreq | EhnMIIwrite | 107 static int mdio_read(void *ioaddr, int phy_id, int reg) 109 __mdio_cmd(ioaddr, EhnMIIreq | EhnMIIread | 129 static u16 mdio_read_latched(void *ioaddr, int phy_id, int reg) 131 mdio_read(ioaddr, phy_id, reg); 132 return mdio_read(ioaddr, phy_id, reg); 135 static u16 sis190_read_eeprom(void *ioaddr, u32 reg) 156 static void sis190_irq_mask_and_ack(void *ioaddr) 354 void *ioaddr = tp->mmio_addr; local 406 void *ioaddr = tp->mmio_addr; local 430 void *ioaddr = tp->mmio_addr; local 458 void *ioaddr = tp->mmio_addr; local 598 void *ioaddr = tp->mmio_addr; local 641 void *ioaddr = tp->mmio_addr; local 700 void *ioaddr = tp->mmio_addr; local 753 void *ioaddr = tp->mmio_addr; local 788 void *ioaddr = tp->mmio_addr; local 816 void *ioaddr = tp->mmio_addr; local 877 void *ioaddr; local 927 void *ioaddr = tp->mmio_addr; local 1029 void *ioaddr = tp->mmio_addr; local 1068 void *ioaddr = tp->mmio_addr; local 1093 void *ioaddr = tp->mmio_addr; local 1118 void *ioaddr; local 1160 void *ioaddr = tp->mmio_addr; local [all...] |
tulip.c | 400 static u32 ioaddr; 497 static int read_eeprom(unsigned long ioaddr, int location, int addr_len); 591 long mdio_addr = ioaddr + CSR9; 599 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0); 600 inl(ioaddr + 0xA0); 601 inl(ioaddr + 0xA0); 603 if ( ! ((retval = inl(ioaddr + 0xA0)) & 0x80000000)) 611 return inl(ioaddr + 0xB4 + (location<<2)); 613 return inl(ioaddr + 0xD0); 615 return inl(ioaddr + 0xD4 + ((location-29)<<2)) 399 static u32 ioaddr; variable [all...] |
sis900.c | 62 static unsigned long ioaddr; 218 /* long ioaddr = net_dev->base_addr; */ 219 long ee_addr = ioaddr + mear; 304 rfcrSave = inl(rfcr + ioaddr); 306 outl(rfcrSave | RELOAD, ioaddr + cr); 307 outl(0, ioaddr + cr); 310 outl(rfcrSave & ~RFEN, rfcr + ioaddr); 314 outl((i << RFADDR_shift), ioaddr + rfcr); 315 *( ((u16 *)nic->node_addr) + i) = inw(ioaddr + rfdr); 319 outl(rfcrSave | RFEN, rfcr + ioaddr); 61 static unsigned long ioaddr; variable [all...] |
virtio-net.c | 82 vp_del_vq(nic->ioaddr, i); 84 vp_reset(nic->ioaddr); 129 vring_kick(nic->ioaddr, &virtqueue[RX_INDEX], 1); 177 vring_kick(nic->ioaddr, &virtqueue[TX_INDEX], 1); 227 vring_kick(nic->ioaddr, &virtqueue[RX_INDEX], i); 251 nic->ioaddr = pci->ioaddr & ~3; 257 printf("I/O address 0x%08x, IRQ #%d\n", nic->ioaddr, nic->irqno); 261 vp_reset(nic->ioaddr); 263 features = vp_get_features(nic->ioaddr); [all...] |
davicom.c | 133 static unsigned long ioaddr; 160 static int read_eeprom(unsigned long ioaddr, int location, int addr_len); 223 io_dcr9 = ioaddr + CSR9; 267 io_dcr9 = ioaddr + CSR9; 362 outl(csr6, ioaddr + CSR6); 382 outl(csr6, ioaddr + CSR6); 398 static int read_eeprom(unsigned long ioaddr, int location, int addr_len) 402 long ee_addr = ioaddr + CSR9; 493 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6) 132 static unsigned long ioaddr; variable [all...] |
3c509.c | 46 uint16_t ioaddr; member in struct:t509_device 104 static inline void t509_activate ( uint16_t ioaddr ) { 105 outb ( 0xe0 | ( ioaddr >> 4 ), t509_id_port ); 108 static inline void t509_deactivate_and_reset_tag ( uint16_t ioaddr ) { 109 outb ( GLOBAL_RESET, ioaddr + EP_COMMAND ); 245 * The device will be enabled at whatever ioaddr is specified in the 247 * ioaddr read from the EEPROM. 253 t509_activate ( t509->ioaddr ); 254 DBG ( "T509 activated device %02x at ioaddr %04x\n", 255 t509->tag, t509->ioaddr ); [all...] |
3c529.c | 28 nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8; 31 nic->ioaddr, nic->irqno );
|
epic100.c | 67 static int ioaddr; variable 115 if (pci->ioaddr == 0) 123 ioaddr = pci->ioaddr; 126 nic->ioaddr = pci->ioaddr & ~3; 129 command = ioaddr + COMMAND; /* Control Register */ 130 intstat = ioaddr + INTSTAT; /* Interrupt Status */ 131 intmask = ioaddr + INTMASK; /* Interrupt Mask */ 132 genctl = ioaddr + GENCTL; /* General Control * [all...] |
eepro100.c | 179 if ( pci->ioaddr == 0 ) 198 priv->ioaddr = pci->ioaddr; 260 unsigned long ioaddr = priv->ioaddr; local 269 intr_status = inw ( ioaddr + SCBStatus ); 270 outw ( intr_status, ioaddr + SCBStatus ); 271 inw ( ioaddr + SCBStatus ); 293 unsigned long ioaddr = priv->ioaddr; local 447 unsigned long ioaddr = priv->ioaddr; local 620 unsigned long ioaddr = priv->ioaddr; local 684 unsigned long ioaddr = priv->ioaddr; local 713 unsigned long ioaddr = priv->ioaddr; local 990 unsigned long ioaddr = priv->ioaddr; local 1120 unsigned long ioaddr = priv->ioaddr; local [all...] |
w89c840.c | 254 static int ioaddr; variable 261 static int eeprom_read(long ioaddr, int location); 306 writel(0x00000001, ioaddr + PCIBusCfg); 310 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr); 311 writel(virt_to_bus(w840private.tx_ring), ioaddr + TxRingPtr); 314 writeb(nic->node_addr[i], ioaddr + StationAddr + i); 328 writel(0xE010, ioaddr + PCIBusCfg); 330 writel(0, ioaddr + RxStartDemand); 337 writel(0x1A0F5, ioaddr + IntrStatus); 338 writel(0x1A0F5, ioaddr + IntrEnable) [all...] |
rtl8139.c | 101 unsigned short ioaddr; member in struct:rtl8139_nic 231 eereg = inb ( rtl->ioaddr + Cfg9346 ); 242 eereg = inb ( rtl->ioaddr + Cfg9346 ); 245 outb ( eereg, rtl->ioaddr + Cfg9346 ); 280 ee9356 = ( inw ( rtl->ioaddr + RxConfig ) & Eeprom9356 ); 291 vpd = ( inw ( rtl->ioaddr + Config1 ) & VPDEnable ); 312 outb ( CmdReset, rtl->ioaddr + ChipCmd ); 330 outb ( netdev->ll_addr[i], rtl->ioaddr + MAC0 + i ); 336 outl ( virt_to_bus ( rtl->rx.ring ), rtl->ioaddr + RxBuf ); 341 outb ( ( CmdRxEnb | CmdTxEnb ), rtl->ioaddr + ChipCmd ) [all...] |
/external/syslinux/gpxe/src/drivers/bus/ |
virtio-pci.c | 19 int vp_find_vq(unsigned int ioaddr, int queue_index, 27 outw(queue_index, ioaddr + VIRTIO_PCI_QUEUE_SEL); 31 num = inw(ioaddr + VIRTIO_PCI_QUEUE_NUM); 44 if (inl(ioaddr + VIRTIO_PCI_QUEUE_PFN)) { 61 ioaddr + VIRTIO_PCI_QUEUE_PFN);
|
eisa.c | 24 outb ( EISA_CMD_RESET, eisa->ioaddr + EISA_GLOBAL_CONFIG ); 31 eisa->ioaddr + EISA_GLOBAL_CONFIG ); 55 isa_id_string ( eisa->vendor_id, eisa->prod_id ), eisa->ioaddr ); 113 eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot ); 116 outb ( 0xff, eisa->ioaddr + EISA_VENDOR_ID ); 118 le16_to_cpu ( inw ( eisa->ioaddr + EISA_VENDOR_ID ) ); 120 le16_to_cpu ( inw ( eisa->ioaddr + EISA_PROD_ID ) );
|