Lines Matching refs:config_handle
335 static void pcicfg_dump_common_config(ddi_acc_handle_t config_handle);
338 static void pcicfg_dump_bridge_config(ddi_acc_handle_t config_handle);
421 pcicfg_dump_common_config(ddi_acc_handle_t config_handle)
426 pci_config_get16(config_handle, PCI_CONF_VENID));
428 pci_config_get16(config_handle, PCI_CONF_DEVID));
430 pci_config_get16(config_handle, PCI_CONF_COMM));
432 pci_config_get16(config_handle, PCI_CONF_STAT));
434 pci_config_get8(config_handle, PCI_CONF_REVID));
436 pci_config_get8(config_handle, PCI_CONF_PROGCLASS));
438 pci_config_get8(config_handle, PCI_CONF_SUBCLASS));
440 pci_config_get8(config_handle, PCI_CONF_BASCLASS));
442 pci_config_get8(config_handle, PCI_CONF_CACHE_LINESZ));
444 pci_config_get8(config_handle, PCI_CONF_HEADER));
446 pci_config_get8(config_handle, PCI_CONF_BIST));
448 pci_config_get32(config_handle, PCI_CONF_BASE0));
450 pci_config_get32(config_handle, PCI_CONF_BASE1));
455 pcicfg_dump_device_config(ddi_acc_handle_t config_handle)
459 pcicfg_dump_common_config(config_handle);
462 pci_config_get32(config_handle, PCI_CONF_BASE2));
464 pci_config_get32(config_handle, PCI_CONF_BASE3));
466 pci_config_get32(config_handle, PCI_CONF_BASE4));
468 pci_config_get32(config_handle, PCI_CONF_BASE5));
470 pci_config_get32(config_handle, PCI_CONF_CIS));
472 pci_config_get16(config_handle, PCI_CONF_SUBVENID));
474 pci_config_get16(config_handle, PCI_CONF_SUBSYSID));
476 pci_config_get32(config_handle, PCI_CONF_ROM));
478 pci_config_get8(config_handle, PCI_CONF_ILINE));
480 pci_config_get8(config_handle, PCI_CONF_IPIN));
482 pci_config_get8(config_handle, PCI_CONF_MIN_G));
484 pci_config_get8(config_handle, PCI_CONF_MAX_L));
488 pcicfg_dump_bridge_config(ddi_acc_handle_t config_handle)
493 pcicfg_dump_common_config(config_handle);
498 pci_config_get8(config_handle, PCI_BCNF_PRIBUS));
500 pci_config_get8(config_handle, PCI_BCNF_SECBUS));
502 pci_config_get8(config_handle, PCI_BCNF_SUBBUS));
504 pci_config_get8(config_handle, PCI_BCNF_LATENCY_TIMER));
506 pci_config_get8(config_handle, PCI_BCNF_IO_BASE_LOW));
508 pci_config_get8(config_handle, PCI_BCNF_IO_LIMIT_LOW));
510 pci_config_get16(config_handle, PCI_BCNF_SEC_STATUS));
512 pci_config_get16(config_handle, PCI_BCNF_MEM_BASE));
514 pci_config_get16(config_handle, PCI_BCNF_MEM_LIMIT));
516 pci_config_get16(config_handle, PCI_BCNF_PF_BASE_LOW));
518 pci_config_get16(config_handle, PCI_BCNF_PF_LIMIT_LOW));
520 pci_config_get32(config_handle, PCI_BCNF_PF_BASE_HIGH));
522 pci_config_get32(config_handle, PCI_BCNF_PF_LIMIT_HIGH));
524 pci_config_get16(config_handle, PCI_BCNF_IO_BASE_HI));
526 pci_config_get16(config_handle, PCI_BCNF_IO_LIMIT_HI));
528 pci_config_get32(config_handle, PCI_BCNF_ROM));
530 pci_config_get8(config_handle, PCI_BCNF_ILINE));
532 pci_config_get8(config_handle, PCI_BCNF_IPIN));
534 pci_config_get16(config_handle, PCI_BCNF_BCNTRL));
912 ddi_acc_handle_t config_handle;
932 if (pci_config_setup(new_device, &config_handle) != DDI_SUCCESS)
935 if (pcicfg_pcie_device_type(new_device, config_handle) == DDI_SUCCESS)
937 pci_config_teardown(&config_handle);
1022 &config_handle)) != PCICFG_SUCCESS) {
1035 vid = pci_config_get16(config_handle, PCI_CONF_VENID);
1037 pci_config_teardown(&config_handle);
1329 ddi_acc_handle_t config_handle;
1357 if (pcicfg_config_setup(new_ntbridgechild, &config_handle)
1370 vid = pci_config_get16(config_handle, PCI_CONF_VENID);
1372 pci_config_teardown(&config_handle);
1440 ddi_acc_handle_t config_handle;
1444 if (pcicfg_config_setup(dip, &config_handle) != DDI_SUCCESS) {
1449 class = pci_config_get8(config_handle, PCI_CONF_BASCLASS);
1450 subclass = pci_config_get8(config_handle, PCI_CONF_SUBCLASS);
1457 pci_config_get16(config_handle, PCI_CONF_VENID),
1458 pci_config_get16(config_handle, PCI_CONF_DEVID),
1460 pci_config_teardown(&config_handle);
1673 ddi_acc_handle_t config_handle;
1686 if (pci_config_setup(dip, &config_handle) != PCICFG_SUCCESS) {
1690 pcicfg_device_off(config_handle);
1691 pci_config_teardown(&config_handle);
3381 pcicfg_device_on(ddi_acc_handle_t config_handle)
3388 pci_config_put16(config_handle, PCI_CONF_COMM,
3389 pci_config_get16(config_handle, PCI_CONF_COMM) | 0x7);
3393 pcicfg_device_off(ddi_acc_handle_t config_handle)
3398 pci_config_put16(config_handle, PCI_CONF_COMM, 0x0);
3406 pcicfg_set_standard_props(dev_info_t *dip, ddi_acc_handle_t config_handle,
3415 if (((pci_config_get8(config_handle, PCI_CONF_HEADER)
3417 byteval = pci_config_get8(config_handle, PCI_CONF_MIN_G);
3423 byteval = pci_config_get8(config_handle, PCI_CONF_MAX_L);
3434 val = pci_config_get16(config_handle, PCI_CONF_VENID);
3440 val = pci_config_get16(config_handle, PCI_CONF_DEVID);
3445 byteval = pci_config_get8(config_handle, PCI_CONF_REVID);
3451 wordval = (pci_config_get16(config_handle, PCI_CONF_SUBCLASS)<< 8) |
3452 (pci_config_get8(config_handle, PCI_CONF_PROGCLASS));
3459 val = (pci_config_get16(config_handle,
3472 (pci_config_get16(config_handle, PCI_CONF_STAT) &
3480 (pci_config_get16(config_handle, PCI_CONF_STAT) &
3487 if (pci_config_get16(config_handle, PCI_CONF_STAT) & PCI_STAT_UDF) {
3500 if ((val = pci_config_get16(config_handle,
3507 if ((val = pci_config_get16(config_handle,
3514 if ((val = pci_config_get16(config_handle,
3526 if ((byteval = pci_config_get8(config_handle, PCI_CONF_IPIN)) != 0) {
3537 ret = PCI_CAP_LOCATE(config_handle, PCI_CAP_ID_PCI_E, &cap_ptr);
3540 val = PCI_CAP_GET16(config_handle, NULL, cap_ptr,
3544 wordval = (PCI_CAP_GET32(config_handle, NULL,
3600 pcicfg_set_childnode_props(dev_info_t *dip, ddi_acc_handle_t config_handle,
3619 sub_vid = pci_config_get16(config_handle, PCI_CONF_SUBVENID);
3620 sub_sid = pci_config_get16(config_handle, PCI_CONF_SUBSYSID);
3621 vid = pci_config_get16(config_handle, PCI_CONF_VENID);
3622 did = pci_config_get16(config_handle, PCI_CONF_DEVID);
3623 revid = pci_config_get8(config_handle, PCI_CONF_REVID);
3624 pif = pci_config_get8(config_handle, PCI_CONF_PROGCLASS);
3625 classcode = pci_config_get16(config_handle, PCI_CONF_SUBCLASS);
3626 pclass = pci_config_get8(config_handle, PCI_CONF_BASCLASS);
3627 psubclass = pci_config_get8(config_handle, PCI_CONF_SUBCLASS);
3776 pcicfg_set_bus_numbers(ddi_acc_handle_t config_handle,
3784 pci_config_put8(config_handle, PCI_BCNF_PRIBUS, primary);
3789 pci_config_put8(config_handle, PCI_BCNF_SECBUS, secondary);
3794 pci_config_put8(config_handle, PCI_BCNF_SUBBUS, subordinate);
4010 ddi_acc_handle_t config_handle;
4038 if ((ret = pcicfg_config_setup(new_child, &config_handle))
4058 (void) pcicfg_device_off(config_handle);
4070 if (pcicfg_set_standard_props(new_child, config_handle,
4079 if (pcicfg_set_childnode_props(new_child, config_handle,
4084 header_type = pci_config_get8(config_handle, PCI_CONF_HEADER);
4091 (void) pcicfg_config_teardown(&config_handle);
4097 pci_config_get16(config_handle, PCI_CONF_VENID));
4099 pci_config_get16(config_handle, PCI_CONF_DEVID));
4115 if (pcicfg_probe_bridge(new_child, config_handle,
4133 config_handle);
4153 config_handle);
4169 (void) pcicfg_config_teardown(&config_handle);
4182 (void) pcicfg_config_teardown(&config_handle);
4197 ddi_acc_handle_t config_handle)
4206 pci_config_put32(config_handle, i, 0xffffffff);
4208 request = pci_config_get32(config_handle, i);
4249 pci_config_put32(config_handle, PCI_CONF_ROM, 0xfffffffe);
4251 request = pci_config_get32(config_handle, PCI_CONF_ROM);
4785 ddi_acc_handle_t config_handle)
4796 base = pci_config_get32(config_handle, i);
4797 pci_config_put32(config_handle, i, 0xffffffff);
4798 request = pci_config_get32(config_handle, i);
4799 pci_config_put32(config_handle, i, base);
4815 base_hi = pci_config_get32(config_handle, i+4);
4855 base = pci_config_get32(config_handle, PCI_CONF_ROM);
4856 pci_config_put32(config_handle, PCI_CONF_ROM, 0xfffffffe);
4857 request = pci_config_get32(config_handle, PCI_CONF_ROM);
4858 pci_config_put32(config_handle, PCI_CONF_ROM, base);