diff options
author | Myron Stowe <myron.stowe@redhat.com> | 2013-01-25 19:55:39 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-01-30 23:24:05 -0500 |
commit | 7c9c003c68de51fb8712a01e904444ef40c742f5 (patch) | |
tree | b552544c5c2d59b8e94199ccc75fd782c5a68ee8 /include/linux/pci.h | |
parent | 10c463a7a3b96285133c37e230781a1274abbd31 (diff) |
PCI: Introduce accessor to retrieve PCIe Capabilities Register
Provide an accessor to retrieve the PCI Express device's Capabilities
Register.
Signed-off-by: Myron Stowe <myron.stowe@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 15472d691ee6..78581e1d3f64 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1693,6 +1693,15 @@ static inline bool pci_is_pcie(struct pci_dev *dev) | |||
1693 | } | 1693 | } |
1694 | 1694 | ||
1695 | /** | 1695 | /** |
1696 | * pcie_caps_reg - get the PCIe Capabilities Register | ||
1697 | * @dev: PCI device | ||
1698 | */ | ||
1699 | static inline u16 pcie_caps_reg(const struct pci_dev *dev) | ||
1700 | { | ||
1701 | return dev->pcie_flags_reg; | ||
1702 | } | ||
1703 | |||
1704 | /** | ||
1696 | * pci_pcie_type - get the PCIe device/port type | 1705 | * pci_pcie_type - get the PCIe device/port type |
1697 | * @dev: PCI device | 1706 | * @dev: PCI device |
1698 | */ | 1707 | */ |