Go to the documentation of this file.
20 #ifndef __ASM_ARCH_MEMORY_H
21 #define __ASM_ARCH_MEMORY_H
26 #ifdef CONFIG_REALVIEW_HIGH_PHYS_OFFSET
27 #define PLAT_PHYS_OFFSET UL(0x70000000)
29 #define PLAT_PHYS_OFFSET UL(0x00000000)
32 #ifdef CONFIG_SPARSEMEM
48 #ifdef CONFIG_REALVIEW_HIGH_PHYS_OFFSET
49 #error "SPARSEMEM not available with REALVIEW_HIGH_PHYS_OFFSET"
52 #define MAX_PHYSMEM_BITS 32
53 #define SECTION_SIZE_BITS 28
56 #define PAGE_OFFSET1 (PAGE_OFFSET + 0x10000000)
57 #define PAGE_OFFSET2 (PAGE_OFFSET + 0x30000000)
59 #define __phys_to_virt(phys) \
60 ((phys) >= 0x80000000 ? (phys) - 0x80000000 + PAGE_OFFSET2 : \
61 (phys) >= 0x20000000 ? (phys) - 0x20000000 + PAGE_OFFSET1 : \
64 #define __virt_to_phys(virt) \
65 ((virt) >= PAGE_OFFSET2 ? (virt) - PAGE_OFFSET2 + 0x80000000 : \
66 (virt) >= PAGE_OFFSET1 ? (virt) - PAGE_OFFSET1 + 0x20000000 : \