commit | d7b7e60526d54da4c94afe5f137714cee7d05c41 | [log] [tgz] |
---|---|---|
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | Wed Nov 11 14:29:54 2009 +0900 |
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | Tue Nov 24 15:25:11 2009 -0800 |
tree | e8cdf8d2e60c274848e860501234ebb958ab0ae9 | |
parent | 8c8def26bfaa704db67d515da3eb92cf26067548 [diff] |
PCI: introduce pci_pcie_cap() Introduce pci_pcie_cap() API that returns saved PCIe capability offset (currently it is saved in 'pcie_cap' field in the struct PCI dev). Using pci_pcie_cap() instead of pci_find_capability() avoids unnecessary search in PCI configuration space. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>