/illumos-gate/usr/src/uts/i86pc/io/pciex/ |
H A D | npe_misc.c | 45 void npe_ck804_fix_aer_ptr(ddi_acc_handle_t cfg_hdl); 47 void npe_nvidia_error_workaround(ddi_acc_handle_t cfg_hdl); 48 void npe_intel_error_workaround(ddi_acc_handle_t cfg_hdl); 50 int npe_enable_htmsi(ddi_acc_handle_t cfg_hdl); 64 npe_ck804_fix_aer_ptr(ddi_acc_handle_t cfg_hdl) in npe_ck804_fix_aer_ptr() argument 68 if ((pci_config_get16(cfg_hdl, PCI_CONF_VENID) == NVIDIA_VENDOR_ID) && in npe_ck804_fix_aer_ptr() 69 (pci_config_get16(cfg_hdl, PCI_CONF_DEVID) == in npe_ck804_fix_aer_ptr() 71 (pci_config_get8(cfg_hdl, PCI_CONF_REVID) >= in npe_ck804_fix_aer_ptr() 73 cya1 = pci_config_get16(cfg_hdl, NVIDIA_CK804_VEND_CYA1_OFF); in npe_ck804_fix_aer_ptr() 75 (void) pci_config_put16(cfg_hdl, in npe_ck804_fix_aer_ptr() [all …]
|
H A D | npe.c | 212 extern void npe_ck804_fix_aer_ptr(ddi_acc_handle_t cfg_hdl); 214 extern void npe_nvidia_error_workaround(ddi_acc_handle_t cfg_hdl); 215 extern void npe_intel_error_workaround(ddi_acc_handle_t cfg_hdl); 966 ddi_acc_handle_t cfg_hdl; in npe_initchild() local 1055 if (pci_config_setup(child, &cfg_hdl) == DDI_SUCCESS) { in npe_initchild() 1056 npe_ck804_fix_aer_ptr(cfg_hdl); in npe_initchild() 1057 npe_nvidia_error_workaround(cfg_hdl); in npe_initchild() 1058 npe_intel_error_workaround(cfg_hdl); in npe_initchild() 1059 pci_config_teardown(&cfg_hdl); in npe_initchild()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | pci_intr_lib.c | 1009 ddi_acc_handle_t cfg_hdl; in pci_intx_get_cap() local 1018 if (pci_config_setup(dip, &cfg_hdl) != DDI_SUCCESS) { in pci_intx_get_cap() 1024 savereg = pci_config_get16(cfg_hdl, PCI_CONF_COMM); in pci_intx_get_cap() 1030 pci_config_put16(cfg_hdl, PCI_CONF_COMM, cmdreg); in pci_intx_get_cap() 1033 statreg = pci_config_get16(cfg_hdl, PCI_CONF_STAT); in pci_intx_get_cap() 1039 cmdreg = pci_config_get16(cfg_hdl, PCI_CONF_COMM); in pci_intx_get_cap() 1053 pci_config_put16(cfg_hdl, PCI_CONF_COMM, savereg); in pci_intx_get_cap() 1055 pci_config_teardown(&cfg_hdl); in pci_intx_get_cap() 1069 ddi_acc_handle_t cfg_hdl; in pci_intx_clr_mask() local 1074 if (pci_config_setup(dip, &cfg_hdl) != DDI_SUCCESS) { in pci_intx_clr_mask() [all …]
|
/illumos-gate/usr/src/uts/intel/io/pciex/ |
H A D | pcieb_x86.c | 469 ddi_acc_handle_t cfg_hdl = bus_p->bus_cfg_hdl; in pcieb_intel_serr_workaround() local 500 data = (uint32_t)pci_config_get32(cfg_hdl, in pcieb_intel_serr_workaround() 505 pci_config_put32(cfg_hdl, reg->offset, value); in pcieb_intel_serr_workaround() 506 value = (uint32_t)pci_config_get32(cfg_hdl, in pcieb_intel_serr_workaround() 510 data = (uint32_t)pci_config_get16(cfg_hdl, in pcieb_intel_serr_workaround() 515 pci_config_put16(cfg_hdl, reg->offset, in pcieb_intel_serr_workaround() 517 value = (uint32_t)pci_config_get16(cfg_hdl, in pcieb_intel_serr_workaround() 521 data = (uint32_t)pci_config_get8(cfg_hdl, in pcieb_intel_serr_workaround() 526 pci_config_put8(cfg_hdl, reg->offset, in pcieb_intel_serr_workaround() 528 value = (uint32_t)pci_config_get8(cfg_hdl, in pcieb_intel_serr_workaround() [all …]
|
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_pci.c | 233 static boolean_t ppb_ht_msimap_check(ddi_acc_handle_t cfg_hdl); 234 static int ppb_ht_msimap_set(ddi_acc_handle_t cfg_hdl, int cmd); 835 ppb_ht_msimap_check(ddi_acc_handle_t cfg_hdl) in ppb_ht_msimap_check() argument 839 if (pci_htcap_locate(cfg_hdl, in ppb_ht_msimap_check() 850 ppb_ht_msimap_set(ddi_acc_handle_t cfg_hdl, int cmd) in ppb_ht_msimap_set() argument 855 if (pci_htcap_locate(cfg_hdl, PCI_HTCAP_TYPE_MASK, in ppb_ht_msimap_set() 859 reg = pci_config_get16(cfg_hdl, ptr + PCI_CAP_ID_REGS_OFF); in ppb_ht_msimap_set() 869 pci_config_put16(cfg_hdl, ptr + PCI_CAP_ID_REGS_OFF, reg); in ppb_ht_msimap_set() 881 ddi_acc_handle_t cfg_hdl; in ppb_intr_ops() local 907 if (pci_config_setup(pdip, &cfg_hdl) != DDI_SUCCESS) { in ppb_intr_ops() [all …]
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 411 ddi_acc_handle_t cfg_hdl; in pcieb_41210_mps_wkrnd() local 427 if (sdip == cdip || pci_config_setup(sdip, &cfg_hdl) in pcieb_41210_mps_wkrnd() 432 bus_dev_ven_id = pci_config_get32(cfg_hdl, PCI_CONF_VENID); in pcieb_41210_mps_wkrnd() 434 pci_config_teardown(&cfg_hdl); in pcieb_41210_mps_wkrnd() 438 if (PCI_CAP_LOCATE(cfg_hdl, PCI_CAP_ID_PCI_E, &cap_ptr) in pcieb_41210_mps_wkrnd() 440 pci_config_teardown(&cfg_hdl); in pcieb_41210_mps_wkrnd() 445 sdip_dev_ctrl = PCI_CAP_GET16(cfg_hdl, 0, cap_ptr, in pcieb_41210_mps_wkrnd() 454 pci_config_teardown(&cfg_hdl); in pcieb_41210_mps_wkrnd() 464 (void) PCI_CAP_PUT16(cfg_hdl, 0, cap_ptr, PCIE_DEVCTL, in pcieb_41210_mps_wkrnd() 473 pci_config_teardown(&cfg_hdl); in pcieb_41210_mps_wkrnd() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_intr.c | 304 ddi_acc_handle_t cfg_hdl = ih_p->ih_config_handle; in pci_intr_wrapper() local 306 if (pci_intr_dma_sync && cfg_hdl && pbm_p->pbm_sync_reg_pa) { in pci_intr_wrapper() 307 (void) pci_config_get16(cfg_hdl, PCI_CONF_VENID); in pci_intr_wrapper()
|
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_var.h | 473 ddi_acc_handle_t cfg_hdl; member
|
H A D | myri10ge.c | 4847 ddi_acc_handle_t handle = mgp->cfg_hdl; in myri10ge_reset_nic() 5679 ddi_acc_handle_t handle = mgp->cfg_hdl; in myri10ge_save_pci_state() 5699 ddi_acc_handle_t handle = mgp->cfg_hdl; in myri10ge_restore_pci_state() 5844 mgp->cfg_hdl = handle; in myri10ge_attach() 6054 pci_config_teardown(&mgp->cfg_hdl); in myri10ge_detach()
|