diff options
Diffstat (limited to 'arch/powerpc/kernel/pci_64.c')
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 8b6008ab217d..9a80cdf9efeb 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -1223,6 +1223,7 @@ void __devinit pcibios_fixup_device_resources(struct pci_dev *dev, | |||
1223 | } | 1223 | } |
1224 | EXPORT_SYMBOL(pcibios_fixup_device_resources); | 1224 | EXPORT_SYMBOL(pcibios_fixup_device_resources); |
1225 | 1225 | ||
1226 | |||
1226 | static void __devinit do_bus_setup(struct pci_bus *bus) | 1227 | static void __devinit do_bus_setup(struct pci_bus *bus) |
1227 | { | 1228 | { |
1228 | struct pci_dev *dev; | 1229 | struct pci_dev *dev; |
@@ -1306,6 +1307,20 @@ void pci_resource_to_user(const struct pci_dev *dev, int bar, | |||
1306 | *end = rsrc->end + offset; | 1307 | *end = rsrc->end + offset; |
1307 | } | 1308 | } |
1308 | 1309 | ||
1310 | struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node) | ||
1311 | { | ||
1312 | if (!have_of) | ||
1313 | return NULL; | ||
1314 | while(node) { | ||
1315 | struct pci_controller *hose, *tmp; | ||
1316 | list_for_each_entry_safe(hose, tmp, &hose_list, list_node) | ||
1317 | if (hose->arch_data == node) | ||
1318 | return hose; | ||
1319 | node = node->parent; | ||
1320 | } | ||
1321 | return NULL; | ||
1322 | } | ||
1323 | |||
1309 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | 1324 | #endif /* CONFIG_PPC_MULTIPLATFORM */ |
1310 | 1325 | ||
1311 | 1326 | ||