Searched defs:ioaddr (Results 1 - 24 of 24) sorted by relevance

/external/qemu/
H A Dsoftmmu_template.h104 target_phys_addr_t ioaddr; local
122 ioaddr = env->iotlb[mmu_idx][index];
123 res = glue(io_read, SUFFIX)(ioaddr, addr, retaddr);
197 target_phys_addr_t ioaddr; local
209 ioaddr = env->iotlb[mmu_idx][index];
210 res = glue(io_read, SUFFIX)(ioaddr, addr, retaddr);
279 target_phys_addr_t ioaddr; local
297 ioaddr = env->iotlb[mmu_idx][index];
298 glue(io_write, SUFFIX)(ioaddr, val, addr, retaddr);
371 target_phys_addr_t ioaddr; local
[all...]
/external/grub/netboot/
H A Dcs89x0.c456 unsigned rev_type = 0, ioaddr, ioidx, isa_cnf, cs_revision; local
460 for (ioidx = 0; (ioaddr=netcard_portlist[ioidx++]) != 0; ) {
464 if (ioaddr & 1) {
465 ioaddr &= ~1;
466 if ((inw(ioaddr + ADD_PORT) & ADD_MASK) != ADD_SIG)
468 outw(PP_ChipID, ioaddr + ADD_PORT);
471 if (inw(ioaddr + DATA_PORT) != CHIP_EISA_ID_SIG)
473 eth_nic_base = ioaddr;
645 if (ioaddr == 0)
H A Dpci.c404 unsigned int membase, ioaddr, romaddr; local
441 pcibios_read_config_dword(bus, devfn, reg, &ioaddr);
443 if ((ioaddr & PCI_BASE_ADDRESS_IO_MASK) == 0 || (ioaddr & PCI_BASE_ADDRESS_SPACE_IO) == 0)
446 ioaddr &= PCI_BASE_ADDRESS_IO_MASK;
454 pcidev[i].name, ioaddr, romaddr);
458 pcidev[i].ioaddr = ioaddr;
H A Dsmc9000.c55 * Function: smc_reset( int ioaddr )
70 static void smc_reset(int ioaddr) argument
74 SMC_SELECT_BANK(ioaddr, 0);
75 _outw( RCR_SOFTRESET, ioaddr + RCR );
78 SMC_DELAY(ioaddr);
82 _outw(RCR_CLEAR, ioaddr + RCR);
83 _outw(TCR_CLEAR, ioaddr + TCR);
86 SMC_SELECT_BANK(ioaddr, 2);
87 _outw( MC_RESET, ioaddr + MMU_CMD );
92 _outb(0, ioaddr
[all...]
H A Dtiara.c109 static unsigned short ioaddr; variable
118 outb(CARD_DISABLE, ioaddr + DLCR_ENABLE);
119 outb(CLEAR_STATUS, ioaddr + DLCR_XMIT_STAT);
120 outb(NO_TX_IRQS, ioaddr + DLCR_XMIT_MASK);
121 outb(CLR_RCV_STATUS, ioaddr + DLCR_RECV_STAT);
122 outb(XMIT_MODE, ioaddr + DLCR_XMIT_MODE);
123 outb(RECV_MODE, ioaddr + DLCR_RECV_MODE);
125 while ((inb(ioaddr + DLCR_RECV_MODE) & BUF_EMPTY) == 0)
126 inb(ioaddr + BMPR_MEM_PORT);
129 outb(nic->node_addr[i], ioaddr
[all...]
H A Dotulip.c32 static unsigned short ioaddr; variable
162 outl(0x00000001, ioaddr + CSR0);
165 outl(0x01A08000, ioaddr + CSR0);
173 outl(0x32404000, ioaddr + CSR6);
175 outl(0x32000040, ioaddr + CSR6);
186 outl(0x0, ioaddr + CSR13); /* reset SIA */
187 outl(0x7f3f, ioaddr + CSR14);
188 outl(0x8000008, ioaddr + CSR15);
189 outl(0x0, ioaddr + CSR13);
190 outl(0x1, ioaddr
[all...]
H A Ddavicom.c134 static unsigned long ioaddr;
165 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
233 io_dcr9 = ioaddr + CSR9;
277 io_dcr9 = ioaddr + CSR9;
372 outl(csr6, ioaddr + CSR6);
391 outl(csr6, ioaddr + CSR6);
407 static int read_eeprom(unsigned long ioaddr, int location, int addr_len)
411 long ee_addr = ioaddr + CSR9;
503 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr
133 static unsigned long ioaddr; variable
402 read_eeprom(unsigned long ioaddr, int location, int addr_len) argument
[all...]
H A Depic100.c61 static int ioaddr; variable
121 ioaddr = probeaddrs[0] & ~3; /* Mask the bit that says "this is an io addr" */
124 command = ioaddr + COMMAND; /* Control Register */
125 intstat = ioaddr + INTSTAT; /* Interrupt Status */
126 intmask = ioaddr + INTMASK; /* Interrupt Mask */
127 genctl = ioaddr + GENCTL; /* General Control */
128 eectl = ioaddr + EECTL; /* EEPROM Control */
129 test = ioaddr + TEST; /* Test register (clocks) */
130 mmctl = ioaddr + MMCTL; /* MII Management Interface Control */
131 mmdata = ioaddr
[all...]
H A Di82586.c246 static unsigned short ioaddr, irq, scb_base; variable
311 outb(0, ioaddr + I82586_ATTN);
328 outb(0x20, ioaddr + MISC_CTRL);
345 outb(0xA0, ioaddr + MISC_CTRL);
350 outb(0, ioaddr + I82586_ATTN);
363 outb(0, ioaddr + I82586_ATTN);
367 outb(0x80, ioaddr + MISC_CTRL);
488 outb(0, ioaddr + I82586_ATTN);
490 outb(0, ioaddr + NI52_RESET);
497 static int t507_probe1(struct nic *nic, unsigned short ioaddr) argument
[all...]
H A Dlance.c138 static unsigned short ioaddr; variable
218 (void)inw(ioaddr+LANCE_RESET);
221 outw(0, ioaddr+LANCE_RESET);
226 outw(0x2, ioaddr+LANCE_ADDR);
228 outw(inw(ioaddr+LANCE_BUS_IF) | 0x2, ioaddr+LANCE_BUS_IF);
237 outw(49, ioaddr+0x12) ;
238 media = inw(ioaddr+0x16) ;
249 outw(49, ioaddr+0x12) ;
250 outw(media, ioaddr
[all...]
H A Dsis900.c54 static unsigned long ioaddr;
216 * leaves the ioaddress of the sis900 chip in the variable ioaddr.
234 ioaddr = *io_addrs & ~3;
259 printf("\nsis900_probe: MAC addr %! at ioaddr %#hX\n",
260 nic->node_addr, ioaddr);
347 long ee_addr = ioaddr + mear;
417 long mdio_addr = ioaddr + mear;
446 long mdio_addr = ioaddr + mear;
510 outl(RxENA, ioaddr + cr);
531 outl(0, ioaddr
53 static unsigned long ioaddr; variable
[all...]
H A Ddepca.c239 #define DEPCA_NICSR ioaddr+0x00 /* Network interface CSR */
240 #define DEPCA_RBI ioaddr+0x02 /* RAM buffer index (2k buffer mode) */
241 #define DEPCA_DATA ioaddr+0x04 /* LANCE registers' data port */
242 #define DEPCA_ADDR ioaddr+0x06 /* LANCE registers' address port */
243 #define DEPCA_HBASE ioaddr+0x08 /* EISA high memory base address reg. */
244 #define DEPCA_PROM ioaddr+0x0c /* Ethernet address ROM data port */
245 #define DEPCA_CNFG ioaddr+0x0c /* EISA Configuration port */
246 #define DEPCA_RBSA ioaddr+0x0e /* RAM buffer starting address (2k buff.) */
464 static unsigned short ioaddr = 0; variable
721 adapter_name[adapter], ioaddr, mem_star
[all...]
H A Deepro100.c106 static int ioaddr; variable
282 ioaddr + SCBCtrlMDI);
286 val = inl(ioaddr + SCBCtrlMDI);
302 outl(0x08000000 | (location<<16) | (phy_id<<21), ioaddr + SCBCtrlMDI);
306 val = inl(ioaddr + SCBCtrlMDI);
324 long ee_addr = ioaddr + SCBeeprom;
361 outl(0, ioaddr + SCBPort);
385 status = inw(ioaddr + SCBStatus);
387 outw(status & 0xfc00, ioaddr + SCBStatus);
391 t, s, status, inw (ioaddr
[all...]
H A Dfa311.c101 unsigned int ioaddr; member in struct:FA311_DEV
112 static int eeprom_read(long ioaddr, int location);
139 dev->ioaddr = pci->membase;
142 prev_eedata = eeprom_read(dev->ioaddr, 6);
144 int eedata = eeprom_read(dev->ioaddr, i + 7);
169 writel(virt_to_bus(dev->rx_ring), dev->ioaddr + RxRingPtr);
170 writel(virt_to_bus(dev->tx_ring), dev->ioaddr + TxRingPtr);
174 writel(i, dev->ioaddr + RxFilterAddr);
176 dev->ioaddr + RxFilterData);
181 if (readl(dev->ioaddr
[all...]
H A Dnatsemi.c195 static unsigned long ioaddr;
243 * leaves the ioaddress of the natsemi chip in the variable ioaddr.
261 ioaddr = *io_addrs & ~3;
281 prev_eedata = eeprom_read(ioaddr, 6);
283 int eedata = eeprom_read(ioaddr, i + 7);
289 printf("\nnatsemi_probe: MAC addr %! at ioaddr %#hX\n",
290 nic->node_addr, ioaddr);
294 outl(ChipReset, ioaddr + ChipCmd);
298 u32 chip_config = inl(ioaddr + ChipConfig);
307 nic_name, (int)inl(ioaddr
194 static unsigned long ioaddr; variable
[all...]
H A Dni5010.c53 #define EDLC_XSTAT (ioaddr + 0x00) /* EDLC transmit csr */
54 #define EDLC_XCLR (ioaddr + 0x00) /* EDLC transmit "Clear IRQ" */
55 #define EDLC_XMASK (ioaddr + 0x01) /* EDLC transmit "IRQ Masks" */
56 #define EDLC_RSTAT (ioaddr + 0x02) /* EDLC receive csr */
57 #define EDLC_RCLR (ioaddr + 0x02) /* EDLC receive "Clear IRQ" */
58 #define EDLC_RMASK (ioaddr + 0x03) /* EDLC receive "IRQ Masks" */
59 #define EDLC_XMODE (ioaddr + 0x04) /* EDLC transmit Mode */
60 #define EDLC_RMODE (ioaddr + 0x05) /* EDLC receive Mode */
61 #define EDLC_RESET (ioaddr + 0x06) /* EDLC RESET register */
62 #define EDLC_TDR1 (ioaddr
169 static unsigned short ioaddr = 0; variable
[all...]
H A Dpci.h178 unsigned short ioaddr; member in struct:pci_device
H A Drtl8139.c158 static int ioaddr; variable
195 ioaddr = probeaddrs[0] & ~3;
200 outb(0x00, ioaddr + Config1);
209 *ap++ = inb(ioaddr + MAC0 + i);
212 speed10 = inb(ioaddr + MediaStatus) & MSRSpeed10;
213 fullduplex = inw(ioaddr + MII_BMCR) & BMCRDuplex;
214 printf("ioaddr %#hX, addr %! %sMbps %s-duplex\n", ioaddr,
255 long ee_addr = ioaddr + Cfg9346;
289 outb(CmdReset, ioaddr
[all...]
H A Dsk_g16.c142 #define SK_POS0 ioaddr /* Card-ID Low (R) */
143 #define SK_POS1 ioaddr+1 /* Card-ID High (R) */
144 #define SK_POS2 ioaddr+2 /* Card-Enable, Boot-ROM Disable (RW) */
145 #define SK_POS3 ioaddr+3 /* Base address of RAM */
146 #define SK_POS4 ioaddr+4 /* IRQ */
307 * Check_region is to check if the region at ioaddr with the size "size"
451 static unsigned short ioaddr; /* base io address */ variable
753 for (p = probe_addrs; (ioaddr = *p) != 0; ++p)
755 long offset1, offset0 = inb(ioaddr);
757 ((offset1 = inb(ioaddr
[all...]
H A D3c90x.c256 a3c90x_internal_IssueCommand(int ioaddr, int cmd, int param) argument
266 outw(val, ioaddr + regCommandIntStatus_w);
269 while (inw(ioaddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
278 a3c90x_internal_SetWindow(int ioaddr, int window) argument
285 a3c90x_internal_IssueCommand(ioaddr, cmdSelectRegisterWindow, window);
295 a3c90x_internal_ReadEeprom(int ioaddr, int address) argument
303 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
306 outw(address + ((0x02)<<6), ioaddr + regEepromCommand_0_w);
307 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
308 val = inw(ioaddr
320 a3c90x_internal_WriteEepromWord(int ioaddr, int address, unsigned short value) argument
353 a3c90x_internal_WriteEeprom(int ioaddr, int address, unsigned short value) argument
[all...]
H A Deepro.c261 #define eepro_full_reset(ioaddr) outb(RESET_CMD, ioaddr); udelay(40);
264 #define eepro_sel_reset(ioaddr) { \
265 outb(SEL_RESET_CMD, ioaddr); \
271 #define eepro_clear_int(ioaddr) outb(ALL_MASK, ioaddr + STATUS_REG)
274 #define eepro_en_rx(ioaddr) outb(RCV_ENABLE_CMD, ioaddr)
277 #define eepro_dis_rx(ioaddr) outb(RCV_DISABLE_CMD, ioaddr)
288 static unsigned short ioaddr = 0; variable
[all...]
H A Dw89c840.c261 static int ioaddr; variable
272 static int eeprom_read(long ioaddr, int location);
323 writel(0x00000001, ioaddr + PCIBusCfg);
327 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr);
328 writel(virt_to_bus(w840private.tx_ring), ioaddr + TxRingPtr);
331 writeb(nic->node_addr[i], ioaddr + StationAddr + i);
345 writel(0xE010, ioaddr + PCIBusCfg);
347 writel(0, ioaddr + RxStartDemand);
353 writel(0x1A0F5, ioaddr + IntrStatus);
354 writel(0x1A0F5, ioaddr
[all...]
H A Dtulip.c381 static u32 ioaddr;
482 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
577 long mdio_addr = ioaddr + CSR9;
585 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0);
586 inl(ioaddr + 0xA0);
587 inl(ioaddr + 0xA0);
589 if ( ! ((retval = inl(ioaddr + 0xA0)) & 0x80000000))
597 return inl(ioaddr + 0xB4 + (location<<2));
599 return inl(ioaddr + 0xD0);
601 return inl(ioaddr
380 static u32 ioaddr; variable
693 read_eeprom(unsigned long ioaddr, int location, int addr_len) argument
[all...]
H A Dvia-rhine.c51 /* define all ioaddr */
53 #define byPAR0 ioaddr
54 #define byRCR ioaddr + 6
55 #define byTCR ioaddr + 7
56 #define byCR0 ioaddr + 8
57 #define byCR1 ioaddr + 9
58 #define byISR0 ioaddr + 0x0c
59 #define byISR1 ioaddr + 0x0d
60 #define byIMR0 ioaddr + 0x0e
61 #define byIMR1 ioaddr
639 unsigned short ioaddr; member in struct:rhine_private
716 QueryAuto(int ioaddr) argument
742 ReadMII(int byMIIIndex, int ioaddr) argument
780 WriteMII(char byMIISetByte, char byMIISetBit, char byMIIOP, int ioaddr) argument
877 rhine_probe1(struct nic *nic, int ioaddr, int chip_id, int options) argument
981 int ioaddr = tp->ioaddr; local
997 int ioaddr = tp->ioaddr; local
1135 int ioaddr = tp->ioaddr; local
[all...]

Completed in 190 milliseconds