aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/pci-bridge.h
diff options
context:
space:
mode:
authorLinas Vepstas <linas@linas.org>2005-11-03 19:52:16 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-08 22:51:12 -0500
commit2bf6a8fa21570f37fd1789610da30f70a05ac5e3 (patch)
tree36452f60fabe7f5d69215c81450e38d9bd4c3294 /include/asm-powerpc/pci-bridge.h
parentfacf07870b6103b8f9b6c872e3cb1032c5185d0b (diff)
[PATCH] powerpc: migrate common PCI hotplug code
23-rpaphp-migrate.patch (parts) This patch moves some pci device add & remove code from the PCI hotplug directory to the arch/powerpc/kernel directory, and cleans it up a tad. The primary reason for this is that the code performs some fairly generic operations that are shared with the PCI error recovery code (living in the arch/powerpc/kernel directory). Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/pci-bridge.h')
-rw-r--r--include/asm-powerpc/pci-bridge.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h
index 89e73fcd58bb..00d21513d009 100644
--- a/include/asm-powerpc/pci-bridge.h
+++ b/include/asm-powerpc/pci-bridge.h
@@ -125,9 +125,18 @@ static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
125 return bus->sysdata; /* Must be root bus (PHB) */ 125 return bus->sysdata; /* Must be root bus (PHB) */
126} 126}
127 127
128/** Find the bus corresponding to the indicated device node */
129struct pci_bus * pcibios_find_pci_bus(struct device_node *dn);
130
128extern void pci_process_bridge_OF_ranges(struct pci_controller *hose, 131extern void pci_process_bridge_OF_ranges(struct pci_controller *hose,
129 struct device_node *dev, int primary); 132 struct device_node *dev, int primary);
130 133
134/** Remove all of the PCI devices under this bus */
135void pcibios_remove_pci_devices(struct pci_bus *bus);
136
137/** Discover new pci devices under this bus, and add them */
138void pcibios_add_pci_devices(struct pci_bus * bus);
139
131extern int pcibios_remove_root_bus(struct pci_controller *phb); 140extern int pcibios_remove_root_bus(struct pci_controller *phb);
132 141
133extern void phbs_remap_io(void); 142extern void phbs_remap_io(void);