diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-10-28 15:19:11 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 15:19:11 +0100 |
commit | 9769c2468d423a1562dd59a5db250bd0a5533ec9 (patch) | |
tree | d584ad444ed8bd5d1abfc197c918dfc6a9af7ddb /include/asm-arm/mach | |
parent | c8d2729858d76de4ef7522c8171004fc1959cc44 (diff) | |
download | blackbird-op-linux-9769c2468d423a1562dd59a5db250bd0a5533ec9.tar.gz blackbird-op-linux-9769c2468d423a1562dd59a5db250bd0a5533ec9.zip |
[ARM] 3016/1: Replace map_desc.physical with map_desc.pfn
Patch from Deepak Saxena
Convert map_desc.physical to map_desc.pfn. This allows us to add
support for 36-bit addressed physical devices in the static maps
without having to resort to u64 variables.
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')
-rw-r--r-- | include/asm-arm/mach/map.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-arm/mach/map.h b/include/asm-arm/mach/map.h index 9ac47cf8d2e4..0619522bd926 100644 --- a/include/asm-arm/mach/map.h +++ b/include/asm-arm/mach/map.h @@ -11,7 +11,7 @@ */ struct map_desc { unsigned long virtual; - unsigned long physical; + unsigned long pfn; unsigned long length; unsigned int type; }; @@ -27,6 +27,9 @@ 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); |