On 11/24/10 01:21 PM, John Martin wrote:
On 11/24/10 03:51 PM, Kyle McDonald wrote:
The doc seemed to make it sound like you should avoid using the
pci_* functions unless the ddi_regs_map_setup wouldn't do what you
wanted...
I believe this was written in the context of supporting
a device on systems with different bus types (i.e., not
PCI, PCI-X, PCI-E).
I still believe you should use the pci_* functions, but I'm
being a hypocrite since the NVIDIA driver does exactly
what you are asking (ddi_regs_map_setup(,0,...) followed
by pci_config_* calls). I need to correct this before
it bites me someday.
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss
ddi_regs_map_setup on tuple 0 is guaranteed to work for PCI devices. The format
of the regs property is specified by IEEE1275 and will not change; the only
reason for tuple 0 is to support the mapping.
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss