On 11/24/10 01:03 PM, Kyle McDonald wrote:
When trying to do pci_config_get16(instp->pci_acc_handle, PCI_CONF_VENID) is pci_config_setup( devinfop, &(instp->pci_acc_handle)) absolutely required? or can a ddi_acc_handle_t fromddi_regs_map_setup(devinfop, 1, (caddr_t *)&softs->pci_mem_base_vaddr, 0, softs->min_size,&softs->reg_attr,&softs->pci_acc_handle) usable for this? can the latter be used with pci_config_get*()? or only with ddi_get*()? If the latter, can 'PCI_CONF_VENID' still be passed to ddi_get16()?
Register set 1 (second argument) probably won't work for this. Register set 0 is usually for config space and used in the above code with the correct ddi_device_acc_attr_t would probably work today, but is not guaranteed in the future. Why risk it? _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
