diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-11-30 00:57:28 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:51:26 -0500 |
commit | d2dd482bc17c3bc240045f80a7c4b4d5cea5e29c (patch) | |
tree | 9c40a9ab9a04839f2d578f9d47985b399074ce58 /include/asm-ppc/pci-bridge.h | |
parent | bb6b9b28d6847bc71f910e2e82c9040ff4b97ec0 (diff) |
[PATCH] powerpc: Update OF address parsers
This updates the OF address parsers to return the IO flags
indicating the type of address obtained. It also adds a PCI
call for converting physical addresses that hit IO space into
into IO tokens, and add routines that return the translated
addresses into struct resource
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc/pci-bridge.h')
-rw-r--r-- | include/asm-ppc/pci-bridge.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-ppc/pci-bridge.h b/include/asm-ppc/pci-bridge.h index e58c78f90a5a..95672ddfe528 100644 --- a/include/asm-ppc/pci-bridge.h +++ b/include/asm-ppc/pci-bridge.h | |||
@@ -137,5 +137,14 @@ static inline unsigned char bridge_swizzle(unsigned char pin, | |||
137 | */ | 137 | */ |
138 | extern int pciauto_bus_scan(struct pci_controller *, int); | 138 | extern int pciauto_bus_scan(struct pci_controller *, int); |
139 | 139 | ||
140 | #ifdef CONFIG_PCI | ||
141 | extern unsigned int pci_address_to_pio(phys_addr_t address); | ||
142 | #else | ||
143 | static inline unsigned int pci_address_to_pio(phys_addr_t address) | ||
144 | { | ||
145 | return (unsigned int)-1; | ||
146 | } | ||
147 | #endif | ||
148 | |||
140 | #endif | 149 | #endif |
141 | #endif /* __KERNEL__ */ | 150 | #endif /* __KERNEL__ */ |