pci_pcie_cap — get the saved PCIe capability offset
int pci_pcie_cap ( | struct pci_dev * dev) ; |
PCIe capability offset is calculated at PCI device initialization
time and saved in the data structure. This function returns saved
PCIe capability offset. Using this instead of pci_find_capability
reduces unnecessary search in the PCI configuration space. If you
need to calculate PCIe capability offset from raw device for some
reasons, please use pci_find_capability
instead.