OracleSolaris 11.2 - locate capability of PCI device

70 Views Asked by At

I need solaris analogue to linux's pci_find_capability kernel function. I grepped through /usr/src/ for some similarities, but didn't find anything close to it. What do pci/pcie drivers normally use to find capabilities supported by devices? Thanks.

1

There are 1 best solutions below

0
James McPherson On

<sys/sunddi.h> has pcie_get_cap(), but apart from that the drivers I'm aware of just go and read the pci/pcie device config space directly looking for the info that they're after.

What problem are you trying to solve here?