diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-11-12 17:27:39 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:39:05 -0500 |
commit | 68a64357d15ae4f596e92715719071952006e83c (patch) | |
tree | dee519239225e92169ef77e4fad3be25c4dffe9d /arch/powerpc/mm/pgtable_32.c | |
parent | 3d1ea8e8cb4d497a2dd73176cc82095b8f193589 (diff) |
[POWERPC] Merge 32 and 64 bits asm-powerpc/io.h
powerpc: Merge 32 and 64 bits asm-powerpc/io.h
The rework on io.h done for the new hookable accessors made it easier,
so I just finished the work and merged 32 and 64 bits io.h for arch/powerpc.
arch/ppc still uses the old version in asm-ppc, there is just too much gunk
in there that I really can't be bothered trying to cleanup.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/pgtable_32.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_32.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index 7750c4425688..1891dbeeb8e9 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c | |||
@@ -149,6 +149,13 @@ ioremap(phys_addr_t addr, unsigned long size) | |||
149 | EXPORT_SYMBOL(ioremap); | 149 | EXPORT_SYMBOL(ioremap); |
150 | 150 | ||
151 | void __iomem * | 151 | void __iomem * |
152 | ioremap_flags(phys_addr_t addr, unsigned long size, unsigned long flags) | ||
153 | { | ||
154 | return __ioremap(addr, size, flags); | ||
155 | } | ||
156 | EXPORT_SYMBOL(ioremap_flags); | ||
157 | |||
158 | void __iomem * | ||
152 | __ioremap(phys_addr_t addr, unsigned long size, unsigned long flags) | 159 | __ioremap(phys_addr_t addr, unsigned long size, unsigned long flags) |
153 | { | 160 | { |
154 | unsigned long v, i; | 161 | unsigned long v, i; |
@@ -247,20 +254,7 @@ void iounmap(volatile void __iomem *addr) | |||
247 | } | 254 | } |
248 | EXPORT_SYMBOL(iounmap); | 255 | EXPORT_SYMBOL(iounmap); |
249 | 256 | ||
250 | void __iomem *ioport_map(unsigned long port, unsigned int len) | 257 | int map_page(unsigned long va, phys_addr_t pa, int flags) |
251 | { | ||
252 | return (void __iomem *) (port + _IO_BASE); | ||
253 | } | ||
254 | |||
255 | void ioport_unmap(void __iomem *addr) | ||
256 | { | ||
257 | /* Nothing to do */ | ||
258 | } | ||
259 | EXPORT_SYMBOL(ioport_map); | ||
260 | EXPORT_SYMBOL(ioport_unmap); | ||
261 | |||
262 | int | ||
263 | map_page(unsigned long va, phys_addr_t pa, int flags) | ||
264 | { | 258 | { |
265 | pmd_t *pd; | 259 | pmd_t *pd; |
266 | pte_t *pg; | 260 | pte_t *pg; |