Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174793
b: refs/heads/master
c: 7eb776c
h: refs/heads/master
i:
  174791: 369c2ec
v: v3
  • Loading branch information
Kenji Kaneshige authored and Jesse Barnes committed Nov 24, 2009
1 parent 9356227 commit 1bdbcfc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1518c17ab736303098843bd306a0fc4f8f5faa42
refs/heads/master: 7eb776c42e75d17bd8107a1359068d8c742639d1
11 changes: 11 additions & 0 deletions trunk/include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 1bdbcfc

Please sign in to comment.