aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/machdep.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2007-12-19 22:54:51 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-20 00:18:09 -0500
commitbf5e2ba28f24f82a64524ef4772c9ebe12e2cd2a (patch)
treef35c139d124a9276b71260c13c8bddf0aa02b4d7 /include/asm-powerpc/machdep.h
parentfe2d338cdcc628e0abdb4f70570a7fa864c617db (diff)
[POWERPC] Merge PCI resource fixups
The PCI code in 32 and 64 bits fixes up resources differently. 32 bits uses a header quirk plus handles bridges in pcibios_fixup_bus() while 64 bits does things in various places depending on whether you are using OF probing, using PCI hotplug, etc... This merges those by basically using the 32 bits approach for both, with various tweaks to make 64 bits work with the new approach. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/machdep.h')
-rw-r--r--include/asm-powerpc/machdep.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-powerpc/machdep.h b/include/asm-powerpc/machdep.h
index d5cd98214fab..ed9103148690 100644
--- a/include/asm-powerpc/machdep.h
+++ b/include/asm-powerpc/machdep.h
@@ -205,13 +205,6 @@ struct machdep_calls {
205 * optional PCI "hooks" 205 * optional PCI "hooks"
206 */ 206 */
207 207
208 /* Called after PPC generic resource fixup to perform
209 machine specific fixups */
210 void (*pcibios_fixup_resources)(struct pci_dev *);
211
212 /* Called for each PCI bus in the system when it's probed */
213 void (*pcibios_fixup_bus)(struct pci_bus *);
214
215 /* Called when pci_enable_device() is called (initial=0) or 208 /* Called when pci_enable_device() is called (initial=0) or
216 * when a device with no assigned resource is found (initial=1). 209 * when a device with no assigned resource is found (initial=1).
217 * Returns 0 to allow assignment/enabling of the device. */ 210 * Returns 0 to allow assignment/enabling of the device. */
@@ -225,6 +218,13 @@ struct machdep_calls {
225 218
226#endif /* CONFIG_PPC32 */ 219#endif /* CONFIG_PPC32 */
227 220
221 /* Called after PPC generic resource fixup to perform
222 machine specific fixups */
223 void (*pcibios_fixup_resources)(struct pci_dev *);
224
225 /* Called for each PCI bus in the system when it's probed */
226 void (*pcibios_fixup_bus)(struct pci_bus *);
227
228 /* Called to shutdown machine specific hardware not already controlled 228 /* Called to shutdown machine specific hardware not already controlled
229 * by other drivers. 229 * by other drivers.
230 */ 230 */