aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHiroki Kaminaga <kaminaga@sm.sony.co.jp>2005-12-05 10:55:00 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-12-05 10:55:00 +0000
commit31a5539e57fa80e877a2f180cd4ec9ce9de6fea0 (patch)
tree36b3821339c9925b0922a8a3df14c436bfc6747f /include
parenta0d95af5c28666155ad4c85a63a5065436ae1d79 (diff)
[ARM] 3194/1: add pfn_to_kaddr macro for ARM take2
Patch from Hiroki Kaminaga This patch defines a new macro: pfn_to_kaddr(pfn). Same macro is already defined on other arch, such as i386. Signed-off-by: Hiroki Kaminaga <kaminaga@sm.sony.co.jp> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/memory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-arm/memory.h b/include/asm-arm/memory.h
index a547ee598c6..3e572364ee7 100644
--- a/include/asm-arm/memory.h
+++ b/include/asm-arm/memory.h
@@ -122,6 +122,7 @@ static inline void *phys_to_virt(unsigned long x)
*/
#define __pa(x) __virt_to_phys((unsigned long)(x))
#define __va(x) ((void *)__phys_to_virt((unsigned long)(x)))
+#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
/*
* Virtual <-> DMA view memory address translations