/titanic_44/usr/src/grub/grub-0.97/netboot/ |
H A D | via-rhine.c | 52 #define byPAR0 ioaddr 53 #define byRCR ioaddr + 6 54 #define byTCR ioaddr + 7 55 #define byCR0 ioaddr + 8 56 #define byCR1 ioaddr + 9 57 #define byISR0 ioaddr + 0x0c 58 #define byISR1 ioaddr + 0x0d 59 #define byIMR0 ioaddr + 0x0e 60 #define byIMR1 ioaddr + 0x0f 61 #define byMAR0 ioaddr + 0x10 [all …]
|
H A D | tulip.c | 392 static u32 ioaddr; variable 481 static int read_eeprom(unsigned long ioaddr, int location, int addr_len); 571 long mdio_addr = ioaddr + CSR9; in mdio_read() 579 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0); in mdio_read() 580 inl(ioaddr + 0xA0); in mdio_read() 581 inl(ioaddr + 0xA0); in mdio_read() 583 if ( ! ((retval = inl(ioaddr + 0xA0)) & 0x80000000)) in mdio_read() 591 return inl(ioaddr + 0xB4 + (location<<2)); in mdio_read() 593 return inl(ioaddr + 0xD0); in mdio_read() 595 return inl(ioaddr + 0xD4 + ((location-29)<<2)); in mdio_read() [all …]
|
H A D | natsemi.c | 192 static unsigned long ioaddr; variable 250 if (pci->ioaddr == 0) in natsemi_probe() 258 nic->ioaddr = pci->ioaddr & ~3; in natsemi_probe() 260 ioaddr = pci->ioaddr & ~3; in natsemi_probe() 278 prev_eedata = eeprom_read(ioaddr, 6); in natsemi_probe() 280 int eedata = eeprom_read(ioaddr, i + 7); in natsemi_probe() 287 nic->node_addr, ioaddr); in natsemi_probe() 291 outl(ChipReset, ioaddr + ChipCmd); in natsemi_probe() 295 u32 chip_config = inl(ioaddr + ChipConfig); in natsemi_probe() 304 nic_name, (int)inl(ioaddr + 0x84), advertising); in natsemi_probe() [all …]
|
H A D | eepro100.c | 102 static int ioaddr; variable 291 ioaddr + SCBCtrlMDI); in mdio_write() 295 val = inl(ioaddr + SCBCtrlMDI); in mdio_write() 312 outl(0x08000000 | (location<<16) | (phy_id<<21), ioaddr + SCBCtrlMDI); in mdio_read() 316 val = inl(ioaddr + SCBCtrlMDI); in mdio_read() 336 long ee_addr = ioaddr + SCBeeprom; in do_eeprom_cmd() 397 status = inw(ioaddr + SCBStatus); in eepro100_transmit() 399 outw(status & 0xfc00, ioaddr + SCBStatus); in eepro100_transmit() 403 t, s, status, inw (ioaddr + SCBCmd)); in eepro100_transmit() 428 outl(virt_to_bus(&txfd), ioaddr + SCBPointer); in eepro100_transmit() [all …]
|
H A D | pcnet32.c | 64 static u32 ioaddr; /* Globally used for the card's io address */ variable 444 lp->a.reset(ioaddr); in pcnet32_reset() 447 lp->a.write_bcr(ioaddr, 20, 2); in pcnet32_reset() 450 val = lp->a.read_bcr(ioaddr, 2) & ~2; in pcnet32_reset() 453 lp->a.write_bcr(ioaddr, 2, val); in pcnet32_reset() 456 val = lp->a.read_bcr(ioaddr, 9) & ~3; in pcnet32_reset() 465 read_csr(ioaddr, in pcnet32_reset() 466 88) | (lp->a.read_csr(ioaddr, in pcnet32_reset() 472 lp->a.write_bcr(ioaddr, 9, val); in pcnet32_reset() 476 val = lp->a.read_csr(ioaddr, 124) & ~0x10; in pcnet32_reset() [all …]
|
H A D | rtl8139.c | 198 nic->ioaddr = pci->ioaddr & ~3; in rtl8139_probe() 206 outb(0x00, nic->ioaddr + Config1); in rtl8139_probe() 212 speed10 = inb(nic->ioaddr + MediaStatus) & MSRSpeed10; in rtl8139_probe() 213 fullduplex = inw(nic->ioaddr + MII_BMCR) & BMCRDuplex; in rtl8139_probe() 214 printf("ioaddr %#hX, irq %d, addr %! %sMbps %s-duplex\n", nic->ioaddr, in rtl8139_probe() 220 if (inb(nic->ioaddr + MediaStatus) & MSRLinkFail) { in rtl8139_probe() 260 long ee_addr = nic->ioaddr + Cfg9346; in read_eeprom() 304 outl(rtl8139_rx_config | rx_mode, nic->ioaddr + RxConfig); in set_rx_mode() 306 outl(mc_filter[0], nic->ioaddr + MAR0 + 0); in set_rx_mode() 307 outl(mc_filter[1], nic->ioaddr + MAR0 + 4); in set_rx_mode() [all …]
|
H A D | sis900.c | 57 static unsigned long ioaddr; variable 202 long ee_addr = ioaddr + mear; in sis96x_get_mac_addr() 282 rfcrSave = inl(rfcr + ioaddr); in sis635_get_mac_addr() 284 outl(rfcrSave | RELOAD, ioaddr + cr); in sis635_get_mac_addr() 285 outl(0, ioaddr + cr); in sis635_get_mac_addr() 288 outl(rfcrSave & ~RFEN, rfcr + ioaddr); in sis635_get_mac_addr() 292 outl((i << RFADDR_shift), ioaddr + rfcr); in sis635_get_mac_addr() 293 *( ((u16 *)nic->node_addr) + i) = inw(ioaddr + rfdr); in sis635_get_mac_addr() 297 outl(rfcrSave | RFEN, rfcr + ioaddr); in sis635_get_mac_addr() 325 if (pci->ioaddr == 0) in sis900_probe() [all …]
|
H A D | davicom.c | 133 static unsigned long ioaddr; variable 155 static int read_eeprom(unsigned long ioaddr, int location, int addr_len); 216 io_dcr9 = ioaddr + CSR9; in phy_read() 260 io_dcr9 = ioaddr + CSR9; in phy_write() 355 outl(csr6, ioaddr + CSR6); in davicom_media_chk() 374 outl(csr6, ioaddr + CSR6); in davicom_media_chk() 389 static int read_eeprom(unsigned long ioaddr, int location, int addr_len) in read_eeprom() argument 393 long ee_addr = ioaddr + CSR9; in read_eeprom() 482 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6); in davicom_reset() 485 outl(0x00000001, ioaddr + CSR0); in davicom_reset() [all …]
|
H A D | epic100.c | 62 static int ioaddr; variable 105 if (pci->ioaddr == 0) in epic100_probe() 113 ioaddr = pci->ioaddr; in epic100_probe() 115 nic->ioaddr = pci->ioaddr & ~3; in epic100_probe() 118 command = ioaddr + COMMAND; /* Control Register */ in epic100_probe() 119 intstat = ioaddr + INTSTAT; /* Interrupt Status */ in epic100_probe() 120 intmask = ioaddr + INTMASK; /* Interrupt Mask */ in epic100_probe() 121 genctl = ioaddr + GENCTL; /* General Control */ in epic100_probe() 122 eectl = ioaddr + EECTL; /* EEPROM Control */ in epic100_probe() 123 test = ioaddr + TEST; /* Test register (clocks) */ in epic100_probe() [all …]
|
H A D | 3c90x.c | 255 a3c90x_internal_IssueCommand(int ioaddr, int cmd, int param) in a3c90x_internal_IssueCommand() argument 265 outw(val, ioaddr + regCommandIntStatus_w); in a3c90x_internal_IssueCommand() 268 while (inw(ioaddr + regCommandIntStatus_w) & INT_CMDINPROGRESS); in a3c90x_internal_IssueCommand() 277 a3c90x_internal_SetWindow(int ioaddr, int window) in a3c90x_internal_SetWindow() argument 284 a3c90x_internal_IssueCommand(ioaddr, cmdSelectRegisterWindow, window); in a3c90x_internal_SetWindow() 294 a3c90x_internal_ReadEeprom(int ioaddr, int address) in a3c90x_internal_ReadEeprom() argument 302 while((1<<15) & inw(ioaddr + regEepromCommand_0_w)); in a3c90x_internal_ReadEeprom() 305 outw(address + ((0x02)<<6), ioaddr + regEepromCommand_0_w); in a3c90x_internal_ReadEeprom() 306 while((1<<15) & inw(ioaddr + regEepromCommand_0_w)); in a3c90x_internal_ReadEeprom() 307 val = inw(ioaddr + regEepromData_0_w); in a3c90x_internal_ReadEeprom() [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); in w89c840_reset() 313 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr); in w89c840_reset() 314 writel(virt_to_bus(w840private.tx_ring), ioaddr + TxRingPtr); in w89c840_reset() 317 writeb(nic->node_addr[i], ioaddr + StationAddr + i); in w89c840_reset() 331 writel(0xE010, ioaddr + PCIBusCfg); in w89c840_reset() 333 writel(0, ioaddr + RxStartDemand); in w89c840_reset() 356 writel(intr_stat & 0x001ffff, ioaddr + IntrStatus); 370 writel(0, ioaddr + RxStartDemand); [all …]
|
H A D | pnic.c | 58 outw ( input_length, nic->ioaddr + PNIC_REG_LEN ); in pnic_command_quiet() 61 outb( ((char*)input)[i], nic->ioaddr + PNIC_REG_DATA ); in pnic_command_quiet() 65 outw ( command, nic->ioaddr + PNIC_REG_CMD ); in pnic_command_quiet() 67 status = inw ( nic->ioaddr + PNIC_REG_STAT ); in pnic_command_quiet() 69 _output_length = inw ( nic->ioaddr + PNIC_REG_LEN ); in pnic_command_quiet() 89 inb ( nic->ioaddr + PNIC_REG_DATA ); in pnic_command_quiet() 227 nic->ioaddr = pci->ioaddr & ~3; in pnic_probe() 245 nic->ioaddr ); in pnic_probe()
|
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); in rtl8169_init_board() 382 if (ioaddr == 0) in rtl8169_init_board() 385 tpc->mmio_addr = &ioaddr; in rtl8169_init_board() [all …]
|
H A D | sundance.c | 309 static int eeprom_read(long ioaddr, int location); 454 intr_status = inw(nic->ioaddr + IntrStatus); in sundance_irq() 458 outw(intr_status, nic->ioaddr + IntrEnable); in sundance_irq() 485 intr_status = inw(nic->ioaddr + IntrStatus); in sundance_poll() 486 outw(intr_status, nic->ioaddr + IntrStatus); in sundance_poll() 508 nic->ioaddr + IntrStatus); in sundance_poll() 593 if (pci->ioaddr == 0) in sundance_probe() 597 BASE = pci->ioaddr; in sundance_probe() 747 nic->ioaddr = BASE; in sundance_probe() 754 static int eeprom_read(long ioaddr, int location) in eeprom_read() argument [all …]
|
H A D | pci.c | 269 uint32_t l, membase, ioaddr, romaddr; in scan_pci_bus() local 363 pcibios_read_config_dword(bus, devfn, reg, &ioaddr); in scan_pci_bus() 364 if ((ioaddr & PCI_BASE_ADDRESS_IO_MASK) == 0 || (ioaddr & PCI_BASE_ADDRESS_SPACE_IO) == 0) in scan_pci_bus() 369 ioaddr &= PCI_BASE_ADDRESS_IO_MASK; in scan_pci_bus() 372 dev->ioaddr = ioaddr; in scan_pci_bus()
|
H A D | 3c595.c | 476 if (pci->ioaddr == 0) in t595_probe() 479 eth_nic_base = pci->ioaddr; in t595_probe() 482 nic->ioaddr = pci->ioaddr & ~3; in t595_probe()
|
H A D | nic.h | 35 unsigned int ioaddr; member
|
H A D | ns83820.c | 821 if (pci->ioaddr == 0) in ns83820_probe() 842 nic->ioaddr = pci->ioaddr & ~3; in ns83820_probe() 994 nic->node_addr, pci->ioaddr)); in ns83820_probe()
|
/titanic_44/usr/src/uts/sun4u/io/ |
H A D | iommu.c | 297 ioaddr_t hiaddr, ioaddr; in iommu_tlb_flush() local 311 ioaddr = (ioaddr_t)((tmpreg & IOMMU_TLBTAG_VA_MASK) << in iommu_tlb_flush() 317 (void *)vaddr_reg, tmpreg, ioaddr, addr, hiaddr)); in iommu_tlb_flush() 319 if (ioaddr >= addr && ioaddr <= hiaddr) { in iommu_tlb_flush() 327 *softsp->iommu_flush_reg = (uint64_t)ioaddr; in iommu_tlb_flush() 361 ioaddr_t ioaddr; in iommu_remove_mappings() local 363 ioaddr_t ioaddr = mp->dmai_mapping & ~IOMMU_PAGEOFFSET; in iommu_remove_mappings() local 377 ioaddr = mp->dmai_mapping & ~IOMMU_PAGEOFFSET; in iommu_remove_mappings() 386 if (walk->ioaddr == ioaddr) { in iommu_remove_mappings() 400 iotte_ptr = IOTTE_NDX(ioaddr, softsp->soft_tsb_base_addr); in iommu_remove_mappings() [all …]
|
H A D | iocache.c | 187 uint_t ioaddr; in sync_stream_buf() local 209 ioaddr = (uint_t)reg << STR_PG_SHIFT; in sync_stream_buf() 213 ioaddr, addr, in sync_stream_buf() 215 if (ioaddr >= addr && ioaddr <= hiaddr) { in sync_stream_buf() 217 ioaddr; in sync_stream_buf()
|
/titanic_44/usr/src/uts/sun/sys/dada/adapters/ |
H A D | atapi.h | 103 int atapi_id(ddi_acc_handle_t handle, uint8_t *ioaddr, ushort_t *buf); 104 int atapi_signature(ddi_acc_handle_t handle, uint8_t *ioaddr);
|
/titanic_44/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | atapi.c | 283 caddr_t ioaddr) in atapi_signature() argument 288 if (ddi_get8(io_hdl, (uchar_t *)ioaddr + AT_HCYL) == ATAPI_SIG_HI && in atapi_signature() 289 ddi_get8(io_hdl, (uchar_t *)ioaddr + AT_LCYL) != ATAPI_SIG_LO) in atapi_signature() 308 ddi_put8(io_hdl, (uchar_t *)ioaddr + AT_HCYL, 0); in atapi_signature() 309 ddi_put8(io_hdl, (uchar_t *)ioaddr + AT_LCYL, 0); in atapi_signature()
|
H A D | atapi.h | 113 int atapi_signature(ddi_acc_handle_t io_hdl, caddr_t ioaddr);
|
/titanic_44/usr/src/uts/common/io/ |
H A D | pcic.c | 591 caddr_t ioaddr; in cardbus_enable_cd_intr() local 597 (caddr_t *)&ioaddr, in cardbus_enable_cd_intr() 603 ddi_put32(iohandle, (uint32_t *)(ioaddr+CB_STATUS_MASK), in cardbus_enable_cd_intr() 605 (uint32_t *)(ioaddr+CB_STATUS_MASK)) | CB_SE_CCDMASK); in cardbus_enable_cd_intr() 607 ddi_put32(iohandle, (uint32_t *)(ioaddr+CB_STATUS_EVENT), in cardbus_enable_cd_intr() 608 ddi_get32(iohandle, (uint32_t *)(ioaddr+CB_STATUS_EVENT))); in cardbus_enable_cd_intr() 905 (caddr_t *)&pcic->ioaddr, in pcic_attach() 956 (caddr_t *)&pcic->ioaddr, in pcic_attach() 1001 (caddr_t *)&pcic->ioaddr, in pcic_attach() 1033 (caddr_t *)&pcic->ioaddr, in pcic_attach() [all …]
|
H A D | fdc.c | 210 static int get_ioaddr(dev_info_t *dip, int *ioaddr); 463 int ioaddr; in fdc_probe() local 478 if (get_ioaddr(dip, &ioaddr) != DDI_SUCCESS) in fdc_probe() 481 stat = inb(ioaddr + FCR_MSR); in fdc_probe() 3240 int ioaddr; in get_unit() local 3242 if (get_ioaddr(dip, &ioaddr) != DDI_SUCCESS) in get_unit() 3245 switch (ioaddr) { in get_unit() 3261 get_ioaddr(dev_info_t *dip, int *ioaddr) in get_ioaddr() argument 3280 *ioaddr = reglist[i].base; in get_ioaddr() 3288 if (*ioaddr == 0x3f2 || *ioaddr == 0x372) { in get_ioaddr() [all …]
|