| Submitter | Yinghai Lu |
|---|---|
| Date | Oct. 2, 2012, 6:33 a.m. |
| Message ID | <1349159588-15029-9-git-send-email-yinghai@kernel.org> |
| Download | mbox | patch |
| Permalink | /patch/188391/ |
| State | Rejected |
| Headers | show |
Comments
Patch
diff --git a/include/linux/pci.h b/include/linux/pci.h index 14703c5..7ee1028 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -739,6 +739,7 @@ void pci_stop_root_bus(struct pci_bus *bus); void pci_remove_root_bus(struct pci_bus *bus); void pci_setup_cardbus(struct pci_bus *bus); extern void pci_sort_breadthfirst(void); +#define dev_is_pci_host_bridge(d) ((d)->bus == &pci_host_bridge_bus_type) #define dev_is_pci(d) ((d)->bus == &pci_bus_type) #define dev_is_pf(d) ((dev_is_pci(d) ? to_pci_dev(d)->is_physfn : false)) #define dev_num_vf(d) ((dev_is_pci(d) ? pci_num_vf(to_pci_dev(d)) : 0))
Need to use it later for one function that is shared with pci device. Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- include/linux/pci.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)