/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | nic.h | 35 unsigned int ioaddr; member in struct:nic
|
H A D | pci.c | 269 uint32_t l, membase, ioaddr, romaddr; local 361 /* Get the ``ioaddr'' */ 363 pcibios_read_config_dword(bus, devfn, reg, &ioaddr); 364 if ((ioaddr & PCI_BASE_ADDRESS_IO_MASK) == 0 || (ioaddr & PCI_BASE_ADDRESS_SPACE_IO) == 0) 369 ioaddr &= PCI_BASE_ADDRESS_IO_MASK; 372 dev->ioaddr = ioaddr;
|
H A D | davicom.c | 133 static unsigned long ioaddr; variable 156 static int read_eeprom(unsigned long ioaddr, int location, int addr_len); 219 io_dcr9 = ioaddr + CSR9; 263 io_dcr9 = ioaddr + CSR9; 358 outl(csr6, ioaddr + CSR6); 377 outl(csr6, ioaddr + CSR6); 393 static int read_eeprom(unsigned long ioaddr, int location, int addr_len) 397 long ee_addr = ioaddr + CSR9; 488 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr 389 read_eeprom(unsigned long ioaddr, int location, int addr_len) argument [all...] |
H A D | epic100.c | 62 static int ioaddr; variable 105 if (pci->ioaddr == 0) 113 ioaddr = pci->ioaddr; 115 nic->ioaddr = pci->ioaddr & ~3; 118 command = ioaddr + COMMAND; /* Control Register */ 119 intstat = ioaddr + INTSTAT; /* Interrupt Status */ 120 intmask = ioaddr + INTMASK; /* Interrupt Mask */ 121 genctl = ioaddr [all...] |
H A D | sis900.c | 57 static unsigned long ioaddr; variable 201 /* long ioaddr = net_dev->base_addr; */ 202 long ee_addr = ioaddr + mear; 282 rfcrSave = inl(rfcr + ioaddr); 284 outl(rfcrSave | RELOAD, ioaddr + cr); 285 outl(0, ioaddr + cr); 288 outl(rfcrSave & ~RFEN, rfcr + ioaddr); 292 outl((i << RFADDR_shift), ioaddr + rfcr); 293 *( ((u16 *)nic->node_addr) + i) = inw(ioaddr + rfdr); 297 outl(rfcrSave | RFEN, rfcr + ioaddr); [all...] |
H A D | natsemi.c | 192 static unsigned long ioaddr; variable 236 * leaves the ioaddress of the natsemi chip in the variable ioaddr. 250 if (pci->ioaddr == 0) 258 nic->ioaddr = pci->ioaddr & ~3; 260 ioaddr = pci->ioaddr & ~3; 278 prev_eedata = eeprom_read(ioaddr, 6); 280 int eedata = eeprom_read(ioaddr, i + 7); 286 printf("\nnatsemi_probe: MAC addr %! at ioaddr [all...] |
H A D | 3c90x.c | 255 a3c90x_internal_IssueCommand(int ioaddr, int cmd, int param) argument 265 outw(val, ioaddr + regCommandIntStatus_w); 268 while (inw(ioaddr + regCommandIntStatus_w) & INT_CMDINPROGRESS); 277 a3c90x_internal_SetWindow(int ioaddr, int window) argument 284 a3c90x_internal_IssueCommand(ioaddr, cmdSelectRegisterWindow, window); 294 a3c90x_internal_ReadEeprom(int ioaddr, int address) argument 302 while((1<<15) & inw(ioaddr + regEepromCommand_0_w)); 305 outw(address + ((0x02)<<6), ioaddr + regEepromCommand_0_w); 306 while((1<<15) & inw(ioaddr + regEepromCommand_0_w)); 307 val = inw(ioaddr [all...] |
H A D | eepro100.c | 102 static int ioaddr; variable 291 ioaddr + SCBCtrlMDI); 295 val = inl(ioaddr + SCBCtrlMDI); 312 outl(0x08000000 | (location<<16) | (phy_id<<21), ioaddr + SCBCtrlMDI); 316 val = inl(ioaddr + SCBCtrlMDI); 336 long ee_addr = ioaddr + SCBeeprom; 397 status = inw(ioaddr + SCBStatus); 399 outw(status & 0xfc00, ioaddr + SCBStatus); 403 t, s, status, inw (ioaddr + SCBCmd)); 428 outl(virt_to_bus(&txfd), ioaddr [all...] |
H A D | pci.h | 272 /* membase and ioaddr are silly and depricated */ 274 unsigned int ioaddr; member in struct:pci_device
|
H A D | pcnet32.c | 64 static u32 ioaddr; /* Globally used for the card's io address */ variable 444 lp->a.reset(ioaddr); 447 lp->a.write_bcr(ioaddr, 20, 2); 450 val = lp->a.read_bcr(ioaddr, 2) & ~2; 453 lp->a.write_bcr(ioaddr, 2, val); 456 val = lp->a.read_bcr(ioaddr, 9) & ~3; 465 read_csr(ioaddr, 466 88) | (lp->a.read_csr(ioaddr, 472 lp->a.write_bcr(ioaddr, 9, val); 476 val = lp->a.read_csr(ioaddr, 12 [all...] |
H A D | r8169.c | 64 static u32 ioaddr; variable 121 #define RTL_W8(reg, val8) writeb ((val8), ioaddr + (reg)) 122 #define RTL_W16(reg, val16) writew ((val16), ioaddr + (reg)) 123 #define RTL_W32(reg, val32) writel ((val32), ioaddr + (reg)) 124 #define RTL_R8(reg) readb (ioaddr + (reg)) 125 #define RTL_R16(reg) readw (ioaddr + (reg)) 126 #define RTL_R32(reg) ((unsigned long) readl (ioaddr + (reg))) 381 ioaddr = (unsigned long) ioremap(rtreg_base, rtreg_len); 382 if (ioaddr == 0) 385 tpc->mmio_addr = &ioaddr; [all...] |
H A D | sundance.c | 309 static int eeprom_read(long ioaddr, int location); 454 intr_status = inw(nic->ioaddr + IntrStatus); 458 outw(intr_status, nic->ioaddr + IntrEnable); 485 intr_status = inw(nic->ioaddr + IntrStatus); 486 outw(intr_status, nic->ioaddr + IntrStatus); 508 nic->ioaddr + IntrStatus); 593 if (pci->ioaddr == 0) 597 BASE = pci->ioaddr; 627 printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE); 747 nic->ioaddr 754 eeprom_read(long ioaddr, int location) argument [all...] |
H A D | w89c840.c | 259 static int ioaddr; variable 264 static int eeprom_read(long ioaddr, int location); 309 writel(0x00000001, ioaddr + PCIBusCfg); 313 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr); 314 writel(virt_to_bus(w840private.tx_ring), ioaddr + TxRingPtr); 317 writeb(nic->node_addr[i], ioaddr + StationAddr + i); 331 writel(0xE010, ioaddr + PCIBusCfg); 333 writel(0, ioaddr + RxStartDemand); 340 writel(0x1A0F5, ioaddr + IntrStatus); 341 writel(0x1A0F5, ioaddr [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | iocache.c | 172 DPRINTF(IOCACHE_SYNC_DEBUG, ("sync_stream_buf: ioaddr 0x%x, page cnt " 187 uint_t ioaddr; local 209 ioaddr = (uint_t)reg << STR_PG_SHIFT; 211 DPRINTF(IOCACHE_DIAG_REG_DEBUG, ("ioaddr 0x%x, " 213 ioaddr, addr, 215 if (ioaddr >= addr && ioaddr <= hiaddr) { 217 ioaddr;
|
H A D | iommu.c | 297 ioaddr_t hiaddr, ioaddr; local 311 ioaddr = (ioaddr_t)((tmpreg & IOMMU_TLBTAG_VA_MASK) << 317 (void *)vaddr_reg, tmpreg, ioaddr, addr, hiaddr)); 319 if (ioaddr >= addr && ioaddr <= hiaddr) { 327 *softsp->iommu_flush_reg = (uint64_t)ioaddr; 361 ioaddr_t ioaddr; local 363 ioaddr_t ioaddr = mp->dmai_mapping & ~IOMMU_PAGEOFFSET; local 377 ioaddr = mp->dmai_mapping & ~IOMMU_PAGEOFFSET; 386 if (walk->ioaddr 422 ioaddr_t ioaddr; local 573 ioaddr_t ioaddr; local 856 ioaddr_t ioaddr; local 1333 ioaddr_t ioaddr; local 1429 ioaddr_t ioaddr = mp->dmai_mapping; local 1498 ioaddr_t ioaddr; local 1590 ioaddr_t ioaddr; local 1642 ioaddr_t ioaddr; local [all...] |
/illumos-gate/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_q.c | 579 uint32_t ioaddr; local 613 sizeof (hci1394_desc_imm_t), &ioaddr);
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | atapi.c | 283 caddr_t ioaddr) 288 if (ddi_get8(io_hdl, (uchar_t *)ioaddr + AT_HCYL) == ATAPI_SIG_HI && 289 ddi_get8(io_hdl, (uchar_t *)ioaddr + AT_LCYL) != ATAPI_SIG_LO) 308 ddi_put8(io_hdl, (uchar_t *)ioaddr + AT_HCYL, 0); 309 ddi_put8(io_hdl, (uchar_t *)ioaddr + AT_LCYL, 0); 281 atapi_signature( ddi_acc_handle_t io_hdl, caddr_t ioaddr) argument
|
H A D | ata_common.c | 1514 caddr_t ioaddr, 1525 val = ddi_get8(io_hdl, (uchar_t *)ioaddr + AT_ALTSTATUS); 1544 caddr_t ioaddr, 1558 val = ddi_get8(io_hdl, (uchar_t *)ioaddr + AT_ALTSTATUS); 1512 ata_wait( ddi_acc_handle_t io_hdl, caddr_t ioaddr, uchar_t onbits, uchar_t offbits, uint_t timeout_usec) argument 1542 ata_wait3( ddi_acc_handle_t io_hdl, caddr_t ioaddr, uchar_t onbits1, uchar_t offbits1, uchar_t failure_onbits2, uchar_t failure_offbits2, uchar_t failure_onbits3, uchar_t failure_offbits3, uint_t timeout_usec) argument
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | comconsole.c | 66 int ioaddr; member in struct:serial 149 port->ioaddr = COM1_IOADDR; 151 port->ioaddr = COM2_IOADDR; 153 port->ioaddr = COM3_IOADDR; 155 port->ioaddr = COM4_IOADDR; 241 if (inb(sp->ioaddr + com_lsr) & LSR_TXRDY) { 242 outb(sp->ioaddr + com_data, (u_char)c); 251 return (comc_ischar(cp) ? inb(sp->ioaddr + com_data) : -1); 258 return (inb(sp->ioaddr + com_lsr) & LSR_RXRDY); 567 outb(sp->ioaddr [all...] |
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_hp.c | 1800 caddr_t ioaddr; local 1806 (caddr_t *)&ioaddr, 1816 ddi_get32(iohandle, (uint32_t *)(ioaddr+CB_STATUS_EVENT))); 1818 ddi_get32(iohandle, (uint32_t *)(ioaddr+CB_STATUS_MASK))); 1820 ddi_get32(iohandle, (uint32_t *)(ioaddr+CB_PRESENT_STATE)));
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_diskq.c | 1677 uchar_t *ioaddr = NULL; local 1743 ioaddr = (uchar_t *)hdr; 1745 bcopy(vaddr, ioaddr, sizeof (*hdr)); 1757 cmn_err(CE_WARN, "!VADDR %p, IOADDR %p", vaddr, ioaddr);
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | sysiosbus.h | 405 ulong_t ioaddr; member in struct:io_mem_list
|
/illumos-gate/usr/src/uts/sun4v/io/px/ |
H A D | px_lib4v.c | 631 px_lib_ro_bypass(dev_info_t *dip, io_attributes_t attr, uint64_t ioaddr) argument 633 return (ioaddr);
|
/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_lib4u.c | 638 px_lib_ro_bypass(dev_info_t *dip, io_attributes_t attr, uint64_t ioaddr) argument 644 return (MMU_OBERON_BYPASS_RO | ioaddr); 646 return (ioaddr);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fdc.c | 210 static int get_ioaddr(dev_info_t *dip, int *ioaddr); 463 int ioaddr; local 478 if (get_ioaddr(dip, &ioaddr) != DDI_SUCCESS) 481 stat = inb(ioaddr + FCR_MSR); 3235 * Assumptions: ioaddr is either 0x3f0 or 0x370 3240 int ioaddr; local 3242 if (get_ioaddr(dip, &ioaddr) != DDI_SUCCESS) 3245 switch (ioaddr) { 3261 get_ioaddr(dev_info_t *dip, int *ioaddr) argument 3280 *ioaddr [all...] |