Searched refs:ioaddr (Results 1 - 25 of 63) sorted by relevance

123

/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/
H A Dvirtio-pci.h40 static inline u32 vp_get_features(unsigned int ioaddr) argument
42 return inl(ioaddr + VIRTIO_PCI_HOST_FEATURES);
45 static inline void vp_set_features(unsigned int ioaddr, u32 features) argument
47 outl(features, ioaddr + VIRTIO_PCI_GUEST_FEATURES);
50 static inline void vp_get(unsigned int ioaddr, unsigned offset, argument
57 ptr[i] = inb(ioaddr + VIRTIO_PCI_CONFIG + offset + i);
60 static inline u8 vp_get_status(unsigned int ioaddr) argument
62 return inb(ioaddr + VIRTIO_PCI_STATUS);
65 static inline void vp_set_status(unsigned int ioaddr, u8 status) argument
69 outb(status, ioaddr
72 vp_get_isr(unsigned int ioaddr) argument
77 vp_reset(unsigned int ioaddr) argument
83 vp_notify(unsigned int ioaddr, int queue_index) argument
88 vp_del_vq(unsigned int ioaddr, int queue_index) argument
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/
H A D3c5x9.c42 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
322 get_e( uint16_t ioaddr, int offset ) argument
[all...]
H A Dsmc9000.c70 static word smc_read_phy_register(int ioaddr, byte phyaddr, byte phyreg) argument
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, argument
301 smc_detect_phy(int ioaddr, byte *pphyaddr) argument
353 smc_phy_configure(int ioaddr) argument
517 smc_reset(int ioaddr) argument
[all...]
H A Deepro.c276 #define eepro_full_reset(ioaddr) outb(RESET_CMD, ioaddr); udelay(255);
279 #define eepro_sel_reset(ioaddr) \
281 outb ( SEL_RESET_CMD, ioaddr ); \
287 #define eepro_clear_int(ioaddr) outb(ALL_MASK, ioaddr + STATUS_REG)
290 #define eepro_en_rx(ioaddr) outb(RCV_ENABLE_CMD, ioaddr)
293 #define eepro_dis_rx(ioaddr) outb(RCV_DISABLE_CMD, ioaddr)
501 read_eeprom(uint16_t ioaddr, int location) argument
[all...]
H A D3c515.c109 outw(SelectWindow + (win_num), nic->ioaddr + EL3_CMD)
287 static int corkscrew_found_device(int ioaddr, int irq, int product_index,
289 static int corkscrew_probe1(int ioaddr, int irq, int product_index,
309 outb(0x20, nic->ioaddr + Wn3_MAC_Ctrl); /* Set the full-duplex bit. */
310 config.i = inl(nic->ioaddr + Wn3_Config);
329 outl(config.i, nic->ioaddr + Wn3_Config);
334 outw(TxReset, nic->ioaddr + EL3_CMD);
336 if (!(inw(nic->ioaddr + EL3_STATUS) & CmdInProgress))
339 outw(RxReset, nic->ioaddr + EL3_CMD);
342 if (!(inw(nic->ioaddr
664 corkscrew_found_device(int ioaddr, int irq, int product_index, int options, struct nic *nic) argument
686 corkscrew_probe1(int ioaddr, int irq, int product_index __unused, struct nic *nic) argument
[all...]
H A Dvia-rhine.c54 /* 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
671 unsigned short ioaddr; member in struct:rhine_private
702 reload_eeprom(int ioaddr) argument
755 QueryAuto(int ioaddr) argument
781 ReadMII(int byMIIIndex, int ioaddr) argument
821 WriteMII(char byMIISetByte, char byMIISetBit, char byMIIOP, int ioaddr) argument
988 int ioaddr = tp->ioaddr; local
999 rhine_probe1(struct nic *nic, struct pci_device *pci, int ioaddr, int chip_id, int options) argument
1176 int ioaddr = tp->ioaddr; local
1194 int ioaddr = tp->ioaddr; local
1348 int ioaddr = tp->ioaddr; local
[all...]
H A Dforcedeth.c61 static inline void pci_push ( void *ioaddr )
65 readl ( ioaddr );
72 void *ioaddr = priv->mmio_addr; local
74 pci_push ( ioaddr );
83 } while ( ( readl ( ioaddr + offset ) & mask ) != target );
92 void *ioaddr = priv->mmio_addr; local
96 writel ( NVREG_MIISTAT_MASK_RW, ioaddr + NvRegMIIStatus );
98 reg = readl ( ioaddr + NvRegMIIControl );
100 writel ( NVREG_MIICTL_INUSE, ioaddr + NvRegMIIControl );
106 writel ( value, ioaddr
137 void *ioaddr = priv->mmio_addr; local
154 void *ioaddr = priv->mmio_addr; local
264 void *ioaddr = priv->mmio_addr; local
321 void *ioaddr = priv->mmio_addr; local
335 void *ioaddr = priv->mmio_addr; local
344 void *ioaddr = priv->mmio_addr; local
352 void *ioaddr = priv->mmio_addr; local
376 void *ioaddr = priv->mmio_addr; local
397 void *ioaddr = priv->mmio_addr; local
411 void *ioaddr = priv->mmio_addr; local
436 void *ioaddr = priv->mmio_addr; local
476 void *ioaddr = priv->mmio_addr; local
680 void *ioaddr = priv->mmio_addr; local
797 void *ioaddr = priv->mmio_addr; local
963 void *ioaddr = priv->mmio_addr; local
984 void *ioaddr = priv->mmio_addr; local
1073 void *ioaddr = priv->mmio_addr; local
1112 void *ioaddr = priv->mmio_addr; local
1151 void *ioaddr = priv->mmio_addr; local
1166 void *ioaddr = priv->mmio_addr; local
1225 void *ioaddr = priv->mmio_addr; local
1610 void *ioaddr = priv->mmio_addr; local
1727 void *ioaddr; local
1794 void *ioaddr; local
[all...]
H A Dpcnet32.c156 unsigned long ioaddr = priv->pci_dev->ioaddr; local
163 priv->a->write_bcr ( ioaddr, 33,
167 val_out = priv->a->read_bcr ( ioaddr, 34 );
176 unsigned long ioaddr = priv->pci_dev->ioaddr; local
182 priv->a->write_bcr ( ioaddr, 33,
186 priv->a->write_bcr ( ioaddr, 34, val );
323 unsigned long ioaddr; local
328 ioaddr
440 unsigned long ioaddr; local
515 unsigned long ioaddr = priv->pci_dev->ioaddr; local
553 unsigned long ioaddr = priv->pci_dev->ioaddr; local
596 unsigned long ioaddr = priv->pci_dev->ioaddr; local
668 unsigned long ioaddr = priv->pci_dev->ioaddr; local
694 unsigned long ioaddr = priv->pci_dev->ioaddr; local
758 unsigned long ioaddr = priv->pci_dev->ioaddr; local
917 unsigned long ioaddr = priv->pci_dev->ioaddr; local
950 unsigned long ioaddr = priv->pci_dev->ioaddr; local
970 unsigned long ioaddr = priv->pci_dev->ioaddr; local
988 unsigned long ioaddr = priv->pci_dev->ioaddr; local
1041 unsigned long ioaddr; local
1138 unsigned long ioaddr = pdev->ioaddr; local
[all...]
H A Ddepca.c259 ** These are LANCE registers addressable through nic->ioaddr + DEPCA_ADDR
470 #define STOP_DEPCA(ioaddr) \
471 outw(CSR0, ioaddr + DEPCA_ADDR);\
472 outw(STOP, ioaddr + DEPCA_DATA)
503 outw(CSR1, nic->ioaddr + DEPCA_ADDR); /* initialisation block address LSW */
504 outw((u16) (lp.sh_mem & LA_MASK), nic->ioaddr + DEPCA_DATA);
505 outw(CSR2, nic->ioaddr + DEPCA_ADDR); /* initialisation block address MSW */
506 outw((u16) ((lp.sh_mem & LA_MASK) >> 16), nic->ioaddr + DEPCA_DATA);
507 outw(CSR3, nic->ioaddr + DEPCA_ADDR); /* ALE control */
508 outw(ACON, nic->ioaddr
[all...]
H A Dvirtio-net.c89 unsigned long ioaddr; member in struct:virtnet_nic
138 vring_kick ( virtnet->ioaddr, vq, 1 );
174 unsigned long ioaddr = virtnet->ioaddr; local
179 vp_reset ( ioaddr );
189 if ( vp_find_vq ( ioaddr, i, &virtnet->virtqueue[i] ) == -1 ) {
207 features = vp_get_features ( ioaddr );
208 vp_set_features ( ioaddr, features & ( 1 << VIRTIO_NET_F_MAC ) );
209 vp_set_status ( ioaddr, VIRTIO_CONFIG_S_DRIVER | VIRTIO_CONFIG_S_DRIVER_OK );
222 vp_reset ( virtnet->ioaddr );
348 unsigned long ioaddr = pci->ioaddr; local
[all...]
H A Ddmfe.c136 #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);
236 static u16 read_srom_word(long ioaddr, int offset);
238 static void dmfe_descriptor_init(struct nic *, unsigned long ioaddr);
287 unsigned long ioaddr = BASE; local
290 outl(DM910X_RESET, ioaddr + DCR0); /* RESET MAC */
292 outl(db->cr0_data, ioaddr + DCR0);
303 outl(0x180, ioaddr
523 dmfe_descriptor_init(struct nic *nic __unused, unsigned long ioaddr) argument
569 update_cr6(u32 cr6_data, unsigned long ioaddr) argument
591 unsigned long ioaddr = BASE + 0xc0; /* ID Table */ local
671 read_srom_word(long ioaddr, int offset) argument
893 unsigned long ioaddr; local
948 unsigned long ioaddr; local
1000 phy_write_1bit(unsigned long ioaddr, u32 phy_data) argument
1015 phy_read_1bit(unsigned long ioaddr) argument
[all...]
H A D3c509-eisa.c18 nic->ioaddr = eisa->ioaddr;
H A Dtulip.c394 static u32 ioaddr;
491 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
564 long mdio_addr = ioaddr + CSR9;
570 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0);
571 inl(ioaddr + 0xA0);
572 inl(ioaddr + 0xA0);
574 if ( ! ((retval = inl(ioaddr + 0xA0)) & 0x80000000))
582 return inl(ioaddr + 0xB4 + (location<<2));
584 return inl(ioaddr + 0xD0);
586 return inl(ioaddr
393 static u32 ioaddr; variable
676 read_eeprom(unsigned long ioaddr, int location, int addr_len) argument
[all...]
H A Dsis190.c81 static void __mdio_cmd(void *ioaddr, u32 ctl) argument
99 static void mdio_write(void *ioaddr, int phy_id, int reg, int val) argument
101 __mdio_cmd(ioaddr, EhnMIIreq | EhnMIIwrite |
106 static int mdio_read(void *ioaddr, int phy_id, int reg) argument
108 __mdio_cmd(ioaddr, EhnMIIreq | EhnMIIread |
128 static u16 mdio_read_latched(void *ioaddr, int phy_id, int reg) argument
130 mdio_read(ioaddr, phy_id, reg);
131 return mdio_read(ioaddr, phy_id, reg);
134 static u16 sis190_read_eeprom(void *ioaddr, u32 reg) argument
155 static void sis190_irq_mask_and_ack(void *ioaddr) argument
162 sis190_asic_down(void *ioaddr) argument
353 void *ioaddr = tp->mmio_addr; local
405 void *ioaddr = tp->mmio_addr; local
418 sis190_soft_reset(void *ioaddr) argument
429 void *ioaddr = tp->mmio_addr; local
457 void *ioaddr = tp->mmio_addr; local
597 void *ioaddr = tp->mmio_addr; local
640 void *ioaddr = tp->mmio_addr; local
699 void *ioaddr = tp->mmio_addr; local
752 void *ioaddr = tp->mmio_addr; local
787 void *ioaddr = tp->mmio_addr; local
815 void *ioaddr = tp->mmio_addr; local
876 void *ioaddr; local
926 void *ioaddr = tp->mmio_addr; local
1028 void *ioaddr = tp->mmio_addr; local
1067 void *ioaddr = tp->mmio_addr; local
1092 void *ioaddr = tp->mmio_addr; local
1155 void *ioaddr = tp->mmio_addr; local
[all...]
H A Dsis900.c62 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...]
H A Ddavicom.c130 static unsigned long ioaddr;
157 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
206 io_dcr9 = ioaddr + CSR9;
250 io_dcr9 = ioaddr + CSR9;
345 outl(csr6, ioaddr + CSR6);
365 outl(csr6, ioaddr + CSR6);
381 static int read_eeprom(unsigned long ioaddr, int location, int addr_len)
385 long ee_addr = ioaddr + CSR9;
476 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr
129 static unsigned long ioaddr; variable
376 read_eeprom(unsigned long ioaddr, int location, int addr_len) argument
[all...]
H A D3c509.c46 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...]
H A D3c529.c28 nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
31 nic->ioaddr, nic->irqno );
H A Depic100.c66 static int ioaddr; variable
114 if (pci->ioaddr == 0)
122 ioaddr = pci->ioaddr;
125 nic->ioaddr = pci->ioaddr & ~3;
128 command = ioaddr + COMMAND; /* Control Register */
129 intstat = ioaddr + INTSTAT; /* Interrupt Status */
130 intmask = ioaddr + INTMASK; /* Interrupt Mask */
131 genctl = ioaddr
[all...]
H A Deepro100.c187 if ( pci->ioaddr == 0 )
206 priv->ioaddr = pci->ioaddr;
268 unsigned long ioaddr = priv->ioaddr; local
277 intr_status = inw ( ioaddr + SCBStatus );
278 outw ( intr_status, ioaddr + SCBStatus );
279 inw ( ioaddr + SCBStatus );
301 unsigned long ioaddr = priv->ioaddr; local
449 unsigned long ioaddr = priv->ioaddr; local
583 unsigned long ioaddr = priv->ioaddr; local
647 unsigned long ioaddr = priv->ioaddr; local
676 unsigned long ioaddr = priv->ioaddr; local
953 unsigned long ioaddr = priv->ioaddr; local
1083 unsigned long ioaddr = priv->ioaddr; local
[all...]
H A Dw89c840.c263 static int ioaddr; variable
270 static int eeprom_read(long ioaddr, int location);
315 writel(0x00000001, ioaddr + PCIBusCfg);
319 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr);
320 writel(virt_to_bus(w840private.tx_ring), ioaddr + TxRingPtr);
323 writeb(nic->node_addr[i], ioaddr + StationAddr + i);
337 writel(0xE010, ioaddr + PCIBusCfg);
339 writel(0, ioaddr + RxStartDemand);
346 writel(0x1A0F5, ioaddr + IntrStatus);
347 writel(0x1A0F5, ioaddr
[all...]
H A Dpnic.c39 unsigned short ioaddr; member in struct:pnic
63 outw ( input_length, pnic->ioaddr + PNIC_REG_LEN );
65 outsb ( pnic->ioaddr + PNIC_REG_DATA, input, input_length );
68 outw ( command, pnic->ioaddr + PNIC_REG_CMD );
70 status = inw ( pnic->ioaddr + PNIC_REG_STAT );
72 _output_length = inw ( pnic->ioaddr + PNIC_REG_LEN );
90 insb ( pnic->ioaddr + PNIC_REG_DATA, output, _output_length );
242 pnic->ioaddr = pci->ioaddr;
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/bus/
H A Dvirtio-pci.c19 int vp_find_vq(unsigned int ioaddr, int queue_index, argument
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);
H A Deisa.c24 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 ) );
H A Disa.c65 isa->driver->name, isa->ioaddr );
83 DBG ( "Removed ISA%04x\n", isa->ioaddr );
112 isa->ioaddr = ISA_IOADDR ( driver, ioidx );
116 "ISA%04x", isa->ioaddr );

Completed in 101 milliseconds

123