diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-04 10:00:08 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-04 10:00:11 -0500 |
commit | 2fc42814d8a9dd757abc7f80fbf11e9247e97d40 (patch) | |
tree | 8216bbfc4fdf9bda4e30c04f415725dd0ef6da4f /arch/arm/include/asm/memory.h | |
parent | c6baa1963c2a76ffdb157e8b9a5a55b30046b125 (diff) | |
parent | 29cb8d0d249f6b8fa33683cc17622ff16ada834c (diff) |
Merge branch 'pending-dma-streaming' (early part) into devel
Diffstat (limited to 'arch/arm/include/asm/memory.h')
-rw-r--r-- | arch/arm/include/asm/memory.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index bc2ff8b28133..5421d82a2572 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h | |||
@@ -136,6 +136,12 @@ | |||
136 | #define __phys_to_pfn(paddr) ((paddr) >> PAGE_SHIFT) | 136 | #define __phys_to_pfn(paddr) ((paddr) >> PAGE_SHIFT) |
137 | #define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) | 137 | #define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) |
138 | 138 | ||
139 | /* | ||
140 | * Convert a page to/from a physical address | ||
141 | */ | ||
142 | #define page_to_phys(page) (__pfn_to_phys(page_to_pfn(page))) | ||
143 | #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys))) | ||
144 | |||
139 | #ifndef __ASSEMBLY__ | 145 | #ifndef __ASSEMBLY__ |
140 | 146 | ||
141 | /* | 147 | /* |
@@ -196,7 +202,8 @@ static inline void *phys_to_virt(unsigned long x) | |||
196 | #ifndef __virt_to_bus | 202 | #ifndef __virt_to_bus |
197 | #define __virt_to_bus __virt_to_phys | 203 | #define __virt_to_bus __virt_to_phys |
198 | #define __bus_to_virt __phys_to_virt | 204 | #define __bus_to_virt __phys_to_virt |
199 | #define __pfn_to_bus(x) ((x) << PAGE_SHIFT) | 205 | #define __pfn_to_bus(x) __pfn_to_phys(x) |
206 | #define __bus_to_pfn(x) __phys_to_pfn(x) | ||
200 | #endif | 207 | #endif |
201 | 208 | ||
202 | static inline __deprecated unsigned long virt_to_bus(void *x) | 209 | static inline __deprecated unsigned long virt_to_bus(void *x) |
@@ -295,11 +302,6 @@ static inline __deprecated void *bus_to_virt(unsigned long x) | |||
295 | #endif /* !CONFIG_DISCONTIGMEM */ | 302 | #endif /* !CONFIG_DISCONTIGMEM */ |
296 | 303 | ||
297 | /* | 304 | /* |
298 | * For BIO. "will die". Kill me when bio_to_phys() and bvec_to_phys() die. | ||
299 | */ | ||
300 | #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) | ||
301 | |||
302 | /* | ||
303 | * Optional coherency support. Currently used only by selected | 305 | * Optional coherency support. Currently used only by selected |
304 | * Intel XSC3-based systems. | 306 | * Intel XSC3-based systems. |
305 | */ | 307 | */ |