| Submitter | Myron Stowe |
|---|---|
| Date | Jan. 26, 2013, 12:55 a.m. |
| Message ID | <20130126005539.25808.86935.stgit@amt.stowe> |
| Download | mbox | patch |
| Permalink | /patch/215878/ |
| State | Accepted |
| Headers | show |
Comments
Patch
diff --git a/include/linux/pci.h b/include/linux/pci.h index 15472d6..78581e1 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) } /** + * 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 */
Provide an accessor to retrieve the PCI Express device's Capabilities Register. Signed-off-by: Myron Stowe <myron.stowe@redhat.com> --- include/linux/pci.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html