diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2006-01-09 19:23:11 (GMT) |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-01-09 19:23:11 (GMT) |
commit | 9d4ae7276ae26c5bfba6207cf05340af1931d8d4 (patch) | |
tree | bf6f09189541ac964365c68362e9915c48510eb5 /include/asm-arm/mach/map.h | |
parent | 16ed926eee5497db52fbee4d2db2dedbcd23561c (diff) | |
download | linux-fsl-qoriq-9d4ae7276ae26c5bfba6207cf05340af1931d8d4.tar.xz |
[ARM] 3070/2: Add __ioremap_pfn() API
Patch from Deepak Saxena
In working on adding 36-bit addressed supersection support to ioremap(),
I came to the conclusion that it would be far simpler to do so by just
splitting __ioremap() into a main external interface and adding an
__ioremap_pfn() function that takes a pfn + offset into the page that
__ioremap() can call. This way existing callers of __ioremap() won't have
to change their code and 36-bit systems will just call __ioremap_pfn()
and we will not have to deal with unsigned long long variables.
Note that __ioremap_pfn() should _NOT_ be called directly by drivers
but is reserved for use by arch_ioremap() implementations that map
32-bit resource regions into the real 36-bit address and then call
this new function.
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/mach/map.h')
-rw-r--r-- | include/asm-arm/mach/map.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/asm-arm/mach/map.h b/include/asm-arm/mach/map.h index b338936..3351b77 100644 --- a/include/asm-arm/mach/map.h +++ b/include/asm-arm/mach/map.h @@ -27,9 +27,6 @@ struct meminfo; #define MT_ROM 6 #define MT_IXP2000_DEVICE 7 -#define __phys_to_pfn(paddr) ((paddr) >> PAGE_SHIFT) -#define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) - extern void create_memmap_holes(struct meminfo *); extern void memtable_init(struct meminfo *); extern void iotable_init(struct map_desc *, int); |