Home
last modified time | relevance | path

Searched refs:config_handle (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_cfg.c207 ddi_acc_handle_t config_handle);
213 ddi_acc_handle_t config_handle);
214 static void cardbus_set_bus_numbers(ddi_acc_handle_t config_handle,
217 ddi_acc_handle_t config_handle);
219 ddi_acc_handle_t config_handle);
221 ddi_acc_handle_t config_handle);
223 ddi_acc_handle_t config_handle);
225 ddi_acc_handle_t config_handle);
227 static void disable_cardbus_device(ddi_acc_handle_t config_handle);
235 static void cardbus_dump_common_config(ddi_acc_handle_t config_handle);
[all …]
H A Dcardbus.c1096 ddi_acc_handle_t config_handle; in cardbus_init_child_regs() local
1117 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) in cardbus_init_child_regs()
1125 header_type = pci_config_get8(config_handle, PCI_CONF_HEADER); in cardbus_init_child_regs()
1139 command = pci_config_get16(config_handle, PCI_CONF_COMM); in cardbus_init_child_regs()
1142 pci_config_put16(config_handle, PCI_CONF_COMM, command); in cardbus_init_child_regs()
1143 command = pci_config_get16(config_handle, PCI_CONF_COMM); in cardbus_init_child_regs()
1151 bcr = pci_config_get8(config_handle, PCI_BCNF_BCNTRL); in cardbus_init_child_regs()
1157 pci_config_put8(config_handle, PCI_BCNF_BCNTRL, bcr); in cardbus_init_child_regs()
1167 pci_config_put8(config_handle, PCI_CONF_CACHE_LINESZ, in cardbus_init_child_regs()
1169 n = pci_config_get8(config_handle, PCI_CONF_CACHE_LINESZ); in cardbus_init_child_regs()
[all …]
H A Dcardbus_hp.c1754 ddi_acc_handle_t config_handle; in cardbus_dump_pci_node() local
1769 if (pci_config_setup(next, &config_handle) != DDI_SUCCESS) { in cardbus_dump_pci_node()
1775 cardbus_dump(spcfg, config_handle); in cardbus_dump_pci_node()
1776 pci_config_teardown(&config_handle); in cardbus_dump_pci_node()
1786 ddi_acc_handle_t config_handle; in cardbus_dump_pci_config() local
1788 if (pci_config_setup(dip, &config_handle) != DDI_SUCCESS) { in cardbus_dump_pci_config()
1795 cardbus_dump(spcfg, config_handle); in cardbus_dump_pci_config()
1797 pci_config_teardown(&config_handle); in cardbus_dump_pci_config()
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Ddb21554.c315 static void db_pci_get_header(ddi_acc_handle_t config_handle,
317 static void db_pci_get_conf_regs(ddi_acc_handle_t config_handle,
1450 ddi_acc_handle_t config_handle; in db_ioctl() local
1495 (void) pci_config_setup(child_dip, &config_handle); in db_ioctl()
1496 db_pci_get_header(config_handle, &pci_data.pri_hdr, 0); in db_ioctl()
1500 db_pci_get_header(config_handle, in db_ioctl()
1502 db_pci_get_conf_regs(config_handle, in db_ioctl()
1505 pci_config_teardown(&config_handle); in db_ioctl()
1613 db_pci_get_header(ddi_acc_handle_t config_handle, db_pci_header_t *ph, in db_pci_get_header() argument
1616 ph->venid = pci_config_get16(config_handle, hdr_off + PCI_CONF_VENID); in db_pci_get_header()
[all …]
H A Dsimba.c254 ddi_acc_handle_t config_handle; member
413 if (pci_config_setup(devi, &simba->config_handle) != in simba_attach()
425 pci_config_get8(simba->config_handle, in simba_attach()
428 pci_config_get8(simba->config_handle, in simba_attach()
432 pci_config_put16(simba->config_handle, 0x6, 0xffff); in simba_attach()
433 pci_config_put16(simba->config_handle, 0x1e, 0xffff); in simba_attach()
488 pci_config_teardown(&simba->config_handle); in simba_detach()
529 simba_err.afsr = pci_config_get64(simba->config_handle, 0xe8); in simba_err_callback()
530 simba_err.afar = pci_config_get64(simba->config_handle, 0xf0); in simba_err_callback()
540 pci_config_put64(simba->config_handle, 0xe8, simba_err.afsr); in simba_err_callback()
[all …]
H A Dpci_util.c403 ddi_acc_handle_t config_handle; in init_child() local
529 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) { in init_child()
539 header_type = pci_config_get8(config_handle, PCI_CONF_HEADER); in init_child()
557 command = pci_config_get16(config_handle, PCI_CONF_COMM); in init_child()
560 pci_config_put16(config_handle, PCI_CONF_COMM, command); in init_child()
561 command = pci_config_get16(config_handle, PCI_CONF_COMM); in init_child()
564 pci_config_get16(config_handle, PCI_CONF_COMM)); in init_child()
571 bcr = pci_config_get8(config_handle, PCI_BCNF_BCNTRL); in init_child()
577 pci_config_put8(config_handle, PCI_BCNF_BCNTRL, bcr); in init_child()
587 pci_config_put8(config_handle, PCI_CONF_CACHE_LINESZ, in init_child()
[all …]
H A Dpci_pci.c374 ddi_acc_handle_t config_handle; in ppb_attach() local
396 if (pci_config_setup(devi, &config_handle) != DDI_SUCCESS) { in ppb_attach()
418 pci_config_get8(config_handle, PCI_CONF_CACHE_LINESZ); in ppb_attach()
420 pci_config_get8(config_handle, PCI_CONF_LATENCY_TIMER); in ppb_attach()
429 ppb_create_ranges_prop(devi, config_handle); in ppb_attach()
432 pci_config_teardown(&config_handle); in ppb_attach()
789 ddi_acc_handle_t config_handle; in ppb_initchild() local
884 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) { in ppb_initchild()
895 header_type = pci_config_get8(config_handle, PCI_CONF_HEADER); in ppb_initchild()
902 command = pci_config_get16(config_handle, PCI_CONF_COMM); in ppb_initchild()
[all …]
H A Dpci_intr.c151 ddi_acc_handle_t config_handle; in map_pcidev_cfg_reg() local
185 if (pci_config_setup(cdip, &config_handle) != DDI_SUCCESS) { in map_pcidev_cfg_reg()
192 if (pci_config_get8(config_handle, PCI_CONF_BASCLASS) in map_pcidev_cfg_reg()
198 pci_config_teardown(&config_handle); in map_pcidev_cfg_reg()
/illumos-gate/usr/src/uts/sun4/io/
H A Dpcicfg.c337 static void pcicfg_dump_common_config(ddi_acc_handle_t config_handle);
340 static void pcicfg_dump_bridge_config(ddi_acc_handle_t config_handle);
423 pcicfg_dump_common_config(ddi_acc_handle_t config_handle) in pcicfg_dump_common_config() argument
428 pci_config_get16(config_handle, PCI_CONF_VENID)); in pcicfg_dump_common_config()
430 pci_config_get16(config_handle, PCI_CONF_DEVID)); in pcicfg_dump_common_config()
432 pci_config_get16(config_handle, PCI_CONF_COMM)); in pcicfg_dump_common_config()
434 pci_config_get16(config_handle, PCI_CONF_STAT)); in pcicfg_dump_common_config()
436 pci_config_get8(config_handle, PCI_CONF_REVID)); in pcicfg_dump_common_config()
438 pci_config_get8(config_handle, PCI_CONF_PROGCLASS)); in pcicfg_dump_common_config()
440 pci_config_get8(config_handle, PCI_CONF_SUBCLASS)); in pcicfg_dump_common_config()
[all …]
/illumos-gate/usr/src/uts/intel/io/hotplug/pcicfg/
H A Dpcicfg.c281 static void pcicfg_dump_common_config(ddi_acc_handle_t config_handle);
283 static void pcicfg_dump_bridge_config(ddi_acc_handle_t config_handle);
392 pcicfg_dump_common_config(ddi_acc_handle_t config_handle) in pcicfg_dump_common_config() argument
397 pci_config_get16(config_handle, PCI_CONF_VENID)); in pcicfg_dump_common_config()
399 pci_config_get16(config_handle, PCI_CONF_DEVID)); in pcicfg_dump_common_config()
401 pci_config_get16(config_handle, PCI_CONF_COMM)); in pcicfg_dump_common_config()
403 pci_config_get16(config_handle, PCI_CONF_STAT)); in pcicfg_dump_common_config()
405 pci_config_get8(config_handle, PCI_CONF_REVID)); in pcicfg_dump_common_config()
407 pci_config_get8(config_handle, PCI_CONF_PROGCLASS)); in pcicfg_dump_common_config()
409 pci_config_get8(config_handle, PCI_CONF_SUBCLASS)); in pcicfg_dump_common_config()
[all …]
/illumos-gate/usr/src/uts/sparc/io/pciex/
H A Dpcieb_sparc.c123 pcieb_plat_pcishpc_probe(dev_info_t *dip, ddi_acc_handle_t config_handle) in pcieb_plat_pcishpc_probe() argument
126 if ((PCI_CAP_LOCATE(config_handle, PCI_CAP_ID_PCI_HOTPLUG, &cap_ptr)) != in pcieb_plat_pcishpc_probe()
202 ddi_acc_handle_t config_handle = bus_p->bus_cfg_hdl; in pcieb_attach_plx_workarounds() local
237 primary = pci_config_get8(config_handle, PCI_BCNF_PRIBUS); in pcieb_attach_plx_workarounds()
238 secondary = pci_config_get8(config_handle, PCI_BCNF_SECBUS); in pcieb_attach_plx_workarounds()
240 pci_config_put16(config_handle, PCI_BCNF_PRIBUS, bus_num); in pcieb_attach_plx_workarounds()
255 pci_config_put16(config_handle, PCI_CONF_COMM, in pcieb_attach_plx_workarounds()
256 pci_config_get16(config_handle, PCI_CONF_COMM) | in pcieb_attach_plx_workarounds()
280 ddi_acc_handle_t config_handle; in pcieb_init_plx_workarounds() local
304 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) { in pcieb_init_plx_workarounds()
[all …]
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_pci.c285 ddi_acc_handle_t config_handle; in ppb_attach() local
331 if (pci_config_setup(devi, &config_handle) != DDI_SUCCESS) { in ppb_attach()
359 (void) ppb_ht_msimap_set(config_handle, in ppb_attach()
362 (void) ppb_ht_msimap_set(config_handle, in ppb_attach()
365 pci_config_teardown(&config_handle); in ppb_attach()
642 ddi_acc_handle_t config_handle; in ppb_initchild() local
717 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) { in ppb_initchild()
727 command = pci_config_get16(config_handle, PCI_CONF_COMM); in ppb_initchild()
730 pci_config_put16(config_handle, PCI_CONF_COMM, command); in ppb_initchild()
732 pci_config_teardown(&config_handle); in ppb_initchild()
[all …]
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/
H A Dpcmu_util.c361 ddi_acc_handle_t config_handle; in pcmu_init_child() local
387 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) { in pcmu_init_child()
395 header_type = pci_config_get8(config_handle, PCI_CONF_HEADER); in pcmu_init_child()
404 bcr = pci_config_get8(config_handle, PCI_BCNF_BCNTRL); in pcmu_init_child()
410 pci_config_put8(config_handle, PCI_BCNF_BCNTRL, bcr); in pcmu_init_child()
413 pci_config_teardown(&config_handle); in pcmu_init_child()
/illumos-gate/usr/src/uts/common/io/pciex/
H A Dpcieb.c486 ddi_acc_handle_t config_handle = bus_p->bus_cfg_hdl; in pcieb_attach() local
570 pcieb_create_ranges_prop(devi, config_handle); in pcieb_attach()
574 pcieb_set_pci_perf_parameters(devi, config_handle); in pcieb_attach()
2041 ddi_acc_handle_t config_handle = bus_p->bus_cfg_hdl; in pcieb_id_props() local
2058 if ((fic == 0) && ((PCI_CAP_LOCATE(config_handle, in pcieb_id_props()
2060 uint8_t esr = PCI_CAP_GET8(config_handle, 0, in pcieb_id_props()
2066 if ((PCI_CAP_LOCATE(config_handle, in pcieb_id_props()
2069 serialid = PCI_XCAP_GET32(config_handle, 0, in pcieb_id_props()
2072 serialid |= PCI_XCAP_GET32(config_handle, 0, in pcieb_id_props()
2086 ddi_acc_handle_t config_handle) in pcieb_create_ranges_prop() argument
[all …]
H A Dpcieb.h166 ddi_acc_handle_t config_handle);
174 ddi_acc_handle_t config_handle);
H A Dpcie.c2698 ddi_acc_handle_t config_handle; in pcie_root_port() local
2707 if (pci_config_setup(cdip, &config_handle) != DDI_SUCCESS) in pcie_root_port()
2710 if ((PCI_CAP_LOCATE(config_handle, PCI_CAP_ID_PCI_E, in pcie_root_port()
2712 pci_config_teardown(&config_handle); in pcie_root_port()
2716 port_type = PCI_CAP_GET16(config_handle, 0, cap_ptr, in pcie_root_port()
2719 pci_config_teardown(&config_handle); in pcie_root_port()
/illumos-gate/usr/src/uts/common/io/hotplug/pcihp/
H A Dpcihp.c3522 ddi_acc_handle_t config_handle, uint8_t *hs_csr) in pcihp_get_hs_csr() argument
3529 pcihp_get_hs_csr_location(config_handle); in pcihp_get_hs_csr()
3534 *hs_csr = pci_config_get8(config_handle, slotinfop->hs_csr_location); in pcihp_get_hs_csr()
3544 ddi_acc_handle_t config_handle, uint8_t *hs_csr) in pcihp_set_hs_csr() argument
3550 pcihp_get_hs_csr_location(config_handle); in pcihp_set_hs_csr()
3554 pci_config_put8(config_handle, slotinfop->hs_csr_location, *hs_csr); in pcihp_set_hs_csr()
3556 pci_config_get8(config_handle, slotinfop->hs_csr_location))); in pcihp_set_hs_csr()
3560 pcihp_get_hs_csr_location(ddi_acc_handle_t config_handle) in pcihp_get_hs_csr_location() argument
3573 status = pci_config_get16(config_handle, PCI_CONF_STAT); in pcihp_get_hs_csr_location()
3578 cap_id_loc = pci_config_get8(config_handle, PCI_CONF_EXTCAP); in pcihp_get_hs_csr_location()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci.c665 ddi_acc_handle_t config_handle; in pci_initchild() local
736 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) in pci_initchild()
744 command = pci_config_get16(config_handle, PCI_CONF_COMM); in pci_initchild()
747 pci_config_put16(config_handle, PCI_CONF_COMM, command); in pci_initchild()
749 pci_config_teardown(&config_handle); in pci_initchild()
/illumos-gate/usr/src/uts/sun4u/io/i2c/nexus/
H A Dsmbus.c739 ddi_acc_handle_t config_handle = smbus->smbus_confighandle; in smbus_put() local
751 (void) ddi_get8(config_handle, &config_addr[0]); in smbus_put()
/illumos-gate/usr/src/uts/intel/io/pciex/
H A Dpcieb_x86.c114 pcieb_plat_pcishpc_probe(dev_info_t *dip, ddi_acc_handle_t config_handle) in pcieb_plat_pcishpc_probe() argument