/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_osdep.c | 51 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, *value); in e1000_write_pci_cfg() 58 pci_config_get16(OS_DEP(hw)->cfg_handle, reg); in e1000_read_pci_cfg() 74 status = pci_lcap_locate((OS_DEP(hw))->cfg_handle, pcie_id, &pcie_cap); in e1000_read_pcie_cap_reg() 78 *value = pci_config_get16(OS_DEP(hw)->cfg_handle, in e1000_read_pcie_cap_reg() 98 status = pci_lcap_locate(OS_DEP(hw)->cfg_handle, pcie_id, &pcie_cap); in e1000_write_pcie_cap_reg() 102 pci_config_put16(OS_DEP(hw)->cfg_handle, in e1000_write_pcie_cap_reg()
|
H A D | e1000_osdep.h | 181 ddi_acc_handle_t cfg_handle; member
|
H A D | igb_main.c | 489 if (pci_config_setup(devinfo, &osdep->cfg_handle) != DDI_SUCCESS) { in igb_attach() 558 if (igb_check_acc_handle(igb->osdep.cfg_handle) != DDI_FM_OK) { in igb_attach() 861 if (igb->osdep.cfg_handle != NULL) in igb_unconfigure() 862 pci_config_teardown(&igb->osdep.cfg_handle); in igb_unconfigure() 940 pci_config_get16(osdep->cfg_handle, PCI_CONF_VENID); in igb_identify_hardware() 942 pci_config_get16(osdep->cfg_handle, PCI_CONF_DEVID); in igb_identify_hardware() 944 pci_config_get8(osdep->cfg_handle, PCI_CONF_REVID); in igb_identify_hardware() 946 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBSYSID); in igb_identify_hardware() 948 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBVENID); in igb_identify_hardware() 1688 if (igb_check_acc_handle(igb->osdep.cfg_handle) != DDI_FM_OK) in igb_reset() [all …]
|
H A D | igb_debug.c | 57 handle = igb->osdep.cfg_handle; in pci_dump()
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_osdep.c | 48 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, *value); in e1000_write_pci_cfg() 55 pci_config_get16(OS_DEP(hw)->cfg_handle, reg); in e1000_read_pci_cfg() 111 *value = pci_config_get16(OS_DEP(hw)->cfg_handle, in e1000_read_pcie_cap_reg() 130 status = pci_lcap_locate(OS_DEP(hw)->cfg_handle, pcie_id, &pcie_cap); in e1000_write_pcie_cap_reg() 134 pci_config_put16(OS_DEP(hw)->cfg_handle, in e1000_write_pcie_cap_reg()
|
H A D | e1000g_debug.c | 377 handle = Adapter->osdep.cfg_handle; in pciconfig_dump() 541 ddi_acc_handle_t handle = Adapter->osdep.cfg_handle; in pciconfig_bar()
|
H A D | e1000g_main.c | 461 if (pci_config_setup(devinfo, &osdep->cfg_handle) != DDI_SUCCESS) { in e1000g_attach() 492 if (e1000g_check_acc_handle(Adapter->osdep.cfg_handle) != DDI_FM_OK) { in e1000g_attach() 639 pci_config_get16(osdep->cfg_handle, PCI_CONF_VENID); in e1000g_identify_hardware() 641 pci_config_get16(osdep->cfg_handle, PCI_CONF_DEVID); in e1000g_identify_hardware() 643 pci_config_get8(osdep->cfg_handle, PCI_CONF_REVID); in e1000g_identify_hardware() 645 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBSYSID); in e1000g_identify_hardware() 647 pci_config_get16(osdep->cfg_handle, PCI_CONF_SUBVENID); in e1000g_identify_hardware() 1176 if (Adapter->osdep.cfg_handle != NULL) in e1000g_unattach() 1177 pci_config_teardown(&Adapter->osdep.cfg_handle); in e1000g_unattach() 1467 pci_config_put8(Adapter->osdep.cfg_handle, in e1000g_init() [all …]
|
H A D | e1000_osdep.h | 214 ddi_acc_handle_t cfg_handle; member
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | pcic.c | 854 &pcic->cfg_handle) != in pcic_attach() 892 (void *)pcic->cfg_handle, nr); in pcic_attach() 914 ddi_regs_map_free(&pcic->cfg_handle); in pcic_attach() 930 ddi_regs_map_free(&pcic->cfg_handle); in pcic_attach() 965 ddi_regs_map_free(&pcic->cfg_handle); in pcic_attach() 981 ddi_regs_map_free(&pcic->cfg_handle); in pcic_attach() 1011 ddi_regs_map_free(&pcic->cfg_handle); in pcic_attach() 1070 iline = cardbus_validate_iline(dip, pcic->cfg_handle); in pcic_attach() 1077 cfg = ddi_get8(pcic->cfg_handle, in pcic_attach() 1135 cfg = ddi_get8(pcic->cfg_handle, in pcic_attach() [all …]
|
/illumos-gate/usr/src/uts/i86xpv/io/psm/ |
H A D | xpv_uppc.c | 670 ddi_acc_handle_t cfg_handle; in xen_uppc_translate_irq() local 701 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in xen_uppc_translate_irq() 704 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in xen_uppc_translate_irq() 705 iline = pci_config_get8(cfg_handle, PCI_CONF_ILINE); in xen_uppc_translate_irq() 729 pci_config_put8(cfg_handle, in xen_uppc_translate_irq() 732 pci_config_teardown(&cfg_handle); in xen_uppc_translate_irq() 736 pci_config_teardown(&cfg_handle); in xen_uppc_translate_irq()
|
H A D | mp_platform_xpv.c | 726 ddi_acc_handle_t cfg_handle; in apic_introp_xlate() local 799 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in apic_introp_xlate() 801 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in apic_introp_xlate() 802 pci_config_teardown(&cfg_handle); in apic_introp_xlate()
|
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_chip2.c | 187 regval = pci_config_get16(bgep->cfg_handle, regno); in bge_cfg_clr16() 193 pci_config_put16(bgep->cfg_handle, regno, regval); in bge_cfg_clr16() 209 regval = pci_config_get32(bgep->cfg_handle, regno); in bge_cfg_clr32() 215 pci_config_put32(bgep->cfg_handle, regno, regval); in bge_cfg_clr32() 251 pci_config_put32(bgep->cfg_handle, PCI_CONF_BGE_RIAAR, regno); in bge_ind_get32() 252 val = pci_config_get32(bgep->cfg_handle, PCI_CONF_BGE_RIADR); in bge_ind_get32() 279 pci_config_put32(bgep->cfg_handle, PCI_CONF_BGE_RIAAR, regno); in bge_ind_put32() 280 pci_config_put32(bgep->cfg_handle, PCI_CONF_BGE_RIADR, val); in bge_ind_put32() 295 pcistatus = pci_config_get16(bgep->cfg_handle, PCI_CONF_STAT); in bge_pci_check() 362 handle = bgep->cfg_handle; in bge_chip_cfg_init() [all …]
|
H A D | bge_main2.c | 567 (void) bge_check_acc_handle(bgep, bgep->cfg_handle); 574 (void) bge_check_acc_handle(bgep, bgep->cfg_handle); 584 if (bge_check_acc_handle(bgep, bgep->cfg_handle) != DDI_FM_OK) { 637 (void) bge_check_acc_handle(bgep, bgep->cfg_handle); 665 (void) bge_check_acc_handle(bgep, bgep->cfg_handle); 686 if (bge_check_acc_handle(bgep, bgep->cfg_handle) != DDI_FM_OK) { 1336 bgep->cfg_handle); 1354 bgep->cfg_handle); 1365 if (bge_check_acc_handle(bgep, bgep->cfg_handle) != DDI_FM_OK) { 1409 (void) bge_check_acc_handle(bgep, bgep->cfg_handle); [all …]
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_osdep.c | 35 return (pci_config_get16(OS_DEP(hw)->cfg_handle, reg)); in ixgbe_read_pci_cfg() 41 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, val); in ixgbe_write_pci_cfg()
|
H A D | ixgbe_osdep.h | 159 ddi_acc_handle_t cfg_handle; member
|
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | uppc.c | 861 ddi_acc_handle_t cfg_handle; in uppc_translate_irq() local 892 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in uppc_translate_irq() 895 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in uppc_translate_irq() 896 iline = pci_config_get8(cfg_handle, PCI_CONF_ILINE); in uppc_translate_irq() 919 pci_config_put8(cfg_handle, in uppc_translate_irq() 922 pci_config_teardown(&cfg_handle); in uppc_translate_irq() 926 pci_config_teardown(&cfg_handle); in uppc_translate_irq()
|
H A D | psm_common.c | 347 ddi_acc_handle_t cfg_handle; in psm_is_pci_bridge() local 350 if (pci_config_setup(dip, &cfg_handle) == DDI_SUCCESS) { in psm_is_pci_bridge() 351 rv = ((pci_config_get8(cfg_handle, PCI_CONF_BASCLASS) == in psm_is_pci_bridge() 352 PCI_CLASS_BRIDGE) && (pci_config_get8(cfg_handle, in psm_is_pci_bridge() 354 pci_config_teardown(&cfg_handle); in psm_is_pci_bridge()
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_chip.c | 707 chip->is_pcie = pci_lcap_locate(rgep->cfg_handle, in rge_chip_ident() 730 pci_config_put8(rgep->cfg_handle, PCI_CONF_LATENCY_TIMER, 0x40); in rge_chip_ident() 803 handle = rgep->cfg_handle; in rge_chip_cfg_init() 1767 regval = pci_config_get8(rgep->cfg_handle, regno); in rge_chip_peek_cfg() 1771 regval = pci_config_get16(rgep->cfg_handle, regno); in rge_chip_peek_cfg() 1775 regval = pci_config_get32(rgep->cfg_handle, regno); in rge_chip_peek_cfg() 1779 regval = pci_config_get64(rgep->cfg_handle, regno); in rge_chip_peek_cfg() 1803 pci_config_put8(rgep->cfg_handle, regno, regval); in rge_chip_poke_cfg() 1807 pci_config_put16(rgep->cfg_handle, regno, regval); in rge_chip_poke_cfg() 1811 pci_config_put32(rgep->cfg_handle, regno, regval); in rge_chip_poke_cfg() [all …]
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_chip.c | 129 regval = pci_config_get8(ngep->cfg_handle, regno); in nge_chip_peek_cfg() 133 regval = pci_config_get16(ngep->cfg_handle, regno); in nge_chip_peek_cfg() 137 regval = pci_config_get32(ngep->cfg_handle, regno); in nge_chip_peek_cfg() 141 regval = pci_config_get64(ngep->cfg_handle, regno); in nge_chip_peek_cfg() 166 pci_config_put8(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg() 170 pci_config_put16(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg() 174 pci_config_put32(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg() 178 pci_config_put64(ngep->cfg_handle, regno, regval); in nge_chip_poke_cfg() 605 handle = ngep->cfg_handle; in nge_chip_cfg_init() 1038 pci_config_put8(ngep->cfg_handle, PCI_CONF_CACHE_LINESZ, in nge_chip_reset() [all …]
|
/illumos-gate/usr/src/uts/common/io/hme/ |
H A D | hme.c | 1054 ddi_acc_handle_t cfg_handle; in hmeget_promprops() local 1083 0, 0, &hmep->hme_dev_attr, &cfg_handle)) { in hmeget_promprops() 1090 ddi_put16(cfg_handle, &cfg_ptr->command, in hmeget_promprops() 1097 rom_bar = ddi_get32(cfg_handle, &cfg_ptr->base30); in hmeget_promprops() 1098 ddi_put32(cfg_handle, &cfg_ptr->base30, rom_bar | 1); in hmeget_promprops() 1106 ddi_regs_map_free(&cfg_handle); in hmeget_promprops() 1115 ddi_regs_map_free(&cfg_handle); in hmeget_promprops() 1169 ddi_acc_handle_t cfg_handle; in hmeattach() local 1399 0, 0, &hmep->hme_dev_attr, &cfg_handle)) { in hmeattach() 1407 hm_rev = ddi_get8(cfg_handle, &cfg_ptr->revid); in hmeattach() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | mp_platform_common.c | 1423 ddi_acc_handle_t cfg_handle; in apic_handle_pci_pci_bridge() local 1432 (pci_config_setup(dipp, &cfg_handle) != DDI_SUCCESS)) in apic_handle_pci_pci_bridge() 1434 if ((pci_config_get8(cfg_handle, PCI_CONF_BASCLASS) == in apic_handle_pci_pci_bridge() 1435 PCI_CLASS_BRIDGE) && (pci_config_get8(cfg_handle, in apic_handle_pci_pci_bridge() 1437 pci_config_teardown(&cfg_handle); in apic_handle_pci_pci_bridge() 1461 pci_config_teardown(&cfg_handle); in apic_handle_pci_pci_bridge()
|
H A D | mp_platform_misc.c | 776 ddi_acc_handle_t cfg_handle; in apic_introp_xlate() local 849 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in apic_introp_xlate() 851 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in apic_introp_xlate() 852 pci_config_teardown(&cfg_handle); in apic_introp_xlate()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_main.c | 1957 ddi_acc_handle_t cfg_handle; in nxge_test_map_regs() local 1971 cfg_handle = nxgep->dev_regs->nxge_pciregh; in nxge_test_map_regs() 1981 NXGE_PIO_READ16(cfg_handle, &cfg_ptr->vendorid, 0), in nxge_test_map_regs() 1982 NXGE_PIO_READ16(cfg_handle, &cfg_ptr->devid, 0))); in nxge_test_map_regs() 1986 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base, 0), in nxge_test_map_regs() 1987 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base14, 0), in nxge_test_map_regs() 1988 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base18, 0), in nxge_test_map_regs() 1989 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base1c, 0))); in nxge_test_map_regs() 1993 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base20, 0), in nxge_test_map_regs() 1994 NXGE_PIO_READ32(cfg_handle, &cfg_ptr->base24, 0), in nxge_test_map_regs() [all …]
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/oce/ |
H A D | oce_impl.h | 233 ddi_acc_handle_t cfg_handle; /* MMIO PCI Config Space Regs */ member
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix.c | 2379 ddi_acc_handle_t cfg_handle; in apix_intx_setup_pci() local 2390 if (pci_config_setup(dip, &cfg_handle) != DDI_SUCCESS) in apix_intx_setup_pci() 2392 ipin = pci_config_get8(cfg_handle, PCI_CONF_IPIN) - PCI_INTA; in apix_intx_setup_pci() 2393 pci_config_teardown(&cfg_handle); in apix_intx_setup_pci()
|