From 38f610f5fa529199208269f9aa7277f6415fe50c Mon Sep 17 00:00:00 2001 From: Myron Stowe Date: Fri, 25 Jan 2013 17:55:39 -0700 Subject: [PATCH] --- yaml --- r: 358428 b: refs/heads/master c: 7c9c003c68de51fb8712a01e904444ef40c742f5 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/pci.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f76bcfe00bd1..6a85d80f9afb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 10c463a7a3b96285133c37e230781a1274abbd31 +refs/heads/master: 7c9c003c68de51fb8712a01e904444ef40c742f5 diff --git a/trunk/include/linux/pci.h b/trunk/include/linux/pci.h index 15472d691ee6..78581e1d3f64 100644 --- a/trunk/include/linux/pci.h +++ b/trunk/include/linux/pci.h @@ -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