diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index c446b5ca2d38..e5086e9a9bf7 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1589,5 +1589,23 @@ int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt); | |||
1589 | int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, | 1589 | int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, |
1590 | unsigned int len, const char *kw); | 1590 | unsigned int len, const char *kw); |
1591 | 1591 | ||
1592 | /* PCI <-> OF binding helpers */ | ||
1593 | #ifdef CONFIG_OF | ||
1594 | struct device_node; | ||
1595 | extern void pci_set_of_node(struct pci_dev *dev); | ||
1596 | extern void pci_release_of_node(struct pci_dev *dev); | ||
1597 | extern void pci_set_bus_of_node(struct pci_bus *bus); | ||
1598 | extern void pci_release_bus_of_node(struct pci_bus *bus); | ||
1599 | |||
1600 | /* Arch may override this (weak) */ | ||
1601 | extern struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus); | ||
1602 | |||
1603 | #else /* CONFIG_OF */ | ||
1604 | static inline void pci_set_of_node(struct pci_dev *dev) { } | ||
1605 | static inline void pci_release_of_node(struct pci_dev *dev) { } | ||
1606 | static inline void pci_set_bus_of_node(struct pci_bus *bus) { } | ||
1607 | static inline void pci_release_bus_of_node(struct pci_bus *bus) { } | ||
1608 | #endif /* CONFIG_OF */ | ||
1609 | |||
1592 | #endif /* __KERNEL__ */ | 1610 | #endif /* __KERNEL__ */ |
1593 | #endif /* LINUX_PCI_H */ | 1611 | #endif /* LINUX_PCI_H */ |