From 1bdbcfc8680cad29c342e7925e3efcaa26ec2cc6 Mon Sep 17 00:00:00 2001 From: Kenji Kaneshige Date: Wed, 11 Nov 2009 14:35:22 +0900 Subject: [PATCH] --- yaml --- r: 174793 b: refs/heads/master c: 7eb776c42e75d17bd8107a1359068d8c742639d1 h: refs/heads/master i: 174791: 369c2ec61124c622a5156cf89f49f4e2f72f9631 v: v3 --- [refs] | 2 +- trunk/include/linux/pci.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 67ae14f34756..fbc2d4b890ac 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1518c17ab736303098843bd306a0fc4f8f5faa42 +refs/heads/master: 7eb776c42e75d17bd8107a1359068d8c742639d1 diff --git a/trunk/include/linux/pci.h b/trunk/include/linux/pci.h index 15f37f102dd3..2891c3d3e51a 100644 --- a/trunk/include/linux/pci.h +++ b/trunk/include/linux/pci.h @@ -1317,5 +1317,16 @@ static inline int pci_pcie_cap(struct pci_dev *dev) return dev->pcie_cap; } +/** + * pci_is_pcie - check if the PCI device is PCI Express capable + * @dev: PCI device + * + * Retrun true if the PCI device is PCI Express capable, false otherwise. + */ +static inline bool pci_is_pcie(struct pci_dev *dev) +{ + return !!pci_pcie_cap(dev); +} + #endif /* __KERNEL__ */ #endif /* LINUX_PCI_H */