PCI: Introduce accessor to retrieve PCIe Capabilities Register
authorMyron Stowe <myron.stowe@redhat.com>
Sat, 26 Jan 2013 00:55:39 +0000 (17:55 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 31 Jan 2013 04:24:05 +0000 (21:24 -0700)
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>
include/linux/pci.h

index 15472d691ee68c6aad5dbeb0a75933ec18f00404..78581e1d3f64b7be9ba5088651c5a26eb0e03c88 100644 (file)
@@ -1692,6 +1692,15 @@ static inline bool pci_is_pcie(struct pci_dev *dev)
        return !!pci_pcie_cap(dev);
 }
 
+/**
+ * pcie_caps_reg - get the PCIe Capabilities Register
+ * @dev: PCI device
+ */
+static inline u16 pcie_caps_reg(const struct pci_dev *dev)
+{
+       return dev->pcie_flags_reg;
+}
+
 /**
  * pci_pcie_type - get the PCIe device/port type
  * @dev: PCI device
This page took 0.035339 seconds and 5 git commands to generate.