Lines Matching defs:pci_conf_handle
123 static void mcp5x_reg_init(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle);
124 static void ck804_reg_init(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle);
127 static int nv_init_ctl(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle);
172 static void nv_sgp_led_init(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle);
173 static int nv_sgp_detect(ddi_acc_handle_t pci_conf_handle, uint16_t *csrpp,
572 ddi_acc_handle_t pci_conf_handle;
601 if (pci_config_setup(dip, &pci_conf_handle) == DDI_SUCCESS) {
602 nvc->nvc_revid = pci_config_get8(pci_conf_handle,
616 command = pci_config_get16(pci_conf_handle, PCI_CONF_COMM);
617 pci_config_put16(pci_conf_handle, PCI_CONF_COMM,
620 subclass = pci_config_get8(pci_conf_handle, PCI_CONF_SUBCLASS);
656 status = nv_init_ctl(nvc, pci_conf_handle);
754 nv_sgp_led_init(nvc, pci_conf_handle);
797 pci_config_teardown(&pci_conf_handle);
810 if (pci_config_setup(dip, &pci_conf_handle) != DDI_SUCCESS) {
817 command = pci_config_get16(pci_conf_handle, PCI_CONF_COMM);
818 pci_config_put16(pci_conf_handle, PCI_CONF_COMM,
825 reg32 = pci_config_get32(pci_conf_handle, NV_SATA_CFG_20);
828 pci_config_put32(pci_conf_handle, NV_SATA_CFG_20,
838 pci_config_teardown(&pci_conf_handle);
889 pci_config_teardown(&pci_conf_handle);
2501 mcp5x_reg_init(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle)
2560 reg32 = pci_config_get32(pci_conf_handle,
2562 pci_config_put32(pci_conf_handle, NV_SATA_CFG_20,
2573 reg32 = pci_config_get32(pci_conf_handle,
2575 pci_config_put32(pci_conf_handle, NV_SATA_CFG_23,
2592 ck804_reg_init(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle)
2603 reg32 = pci_config_get32(pci_conf_handle, NV_SATA_CFG_42);
2604 pci_config_put32(pci_conf_handle, NV_SATA_CFG_42,
2641 nv_init_ctl(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle)
2663 reg32 = pci_config_get32(pci_conf_handle, NV_SATA_CFG_20);
2665 pci_config_put32(pci_conf_handle, NV_SATA_CFG_20,
2775 (*(nvc->nvc_reg_init))(nvc, pci_conf_handle);
6447 nv_sgp_led_init(nv_ctl_t *nvc, ddi_acc_handle_t pci_conf_handle)
6490 if (nv_sgp_detect(pci_conf_handle, &csrp, &cbp) != NV_SUCCESS) {
6610 nv_sgp_detect(ddi_acc_handle_t pci_conf_handle, uint16_t *csrpp,
6614 *csrpp = pci_config_get16(pci_conf_handle, SGPIO_CSRP);
6620 *cbpp = pci_config_get32(pci_conf_handle, SGPIO_CBP);