aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/mmu.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/mmu.h')
-rw-r--r--arch/powerpc/include/asm/mmu.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h
index fb57ded592f9..2fcfefc60894 100644
--- a/arch/powerpc/include/asm/mmu.h
+++ b/arch/powerpc/include/asm/mmu.h
@@ -17,6 +17,7 @@
17#define MMU_FTR_TYPE_40x ASM_CONST(0x00000004) 17#define MMU_FTR_TYPE_40x ASM_CONST(0x00000004)
18#define MMU_FTR_TYPE_44x ASM_CONST(0x00000008) 18#define MMU_FTR_TYPE_44x ASM_CONST(0x00000008)
19#define MMU_FTR_TYPE_FSL_E ASM_CONST(0x00000010) 19#define MMU_FTR_TYPE_FSL_E ASM_CONST(0x00000010)
20#define MMU_FTR_TYPE_3E ASM_CONST(0x00000020)
20 21
21/* 22/*
22 * This is individual features 23 * This is individual features
@@ -73,6 +74,41 @@ extern void early_init_mmu_secondary(void);
73 74
74#endif /* !__ASSEMBLY__ */ 75#endif /* !__ASSEMBLY__ */
75 76
77/* The kernel use the constants below to index in the page sizes array.
78 * The use of fixed constants for this purpose is better for performances
79 * of the low level hash refill handlers.
80 *
81 * A non supported page size has a "shift" field set to 0
82 *
83 * Any new page size being implemented can get a new entry in here. Whether
84 * the kernel will use it or not is a different matter though. The actual page
85 * size used by hugetlbfs is not defined here and may be made variable
86 *
87 * Note: This array ended up being a false good idea as it's growing to the
88 * point where I wonder if we should replace it with something different,
89 * to think about, feedback welcome. --BenH.
90 */
91
92/* There are #define as they have to be used in assembly
93 *
94 * WARNING: If you change this list, make sure to update the array of
95 * names currently in arch/powerpc/mm/hugetlbpage.c or bad things will
96 * happen
97 */
98#define MMU_PAGE_4K 0
99#define MMU_PAGE_16K 1
100#define MMU_PAGE_64K 2
101#define MMU_PAGE_64K_AP 3 /* "Admixed pages" (hash64 only) */
102#define MMU_PAGE_256K 4
103#define MMU_PAGE_1M 5
104#define MMU_PAGE_8M 6
105#define MMU_PAGE_16M 7
106#define MMU_PAGE_256M 8
107#define MMU_PAGE_1G 9
108#define MMU_PAGE_16G 10
109#define MMU_PAGE_64G 11
110#define MMU_PAGE_COUNT 12
111
76 112
77#if defined(CONFIG_PPC_STD_MMU_64) 113#if defined(CONFIG_PPC_STD_MMU_64)
78/* 64-bit classic hash table MMU */ 114/* 64-bit classic hash table MMU */
@@ -94,5 +130,6 @@ extern void early_init_mmu_secondary(void);
94# include <asm/mmu-8xx.h> 130# include <asm/mmu-8xx.h>
95#endif 131#endif
96 132
133
97#endif /* __KERNEL__ */ 134#endif /* __KERNEL__ */
98#endif /* _ASM_POWERPC_MMU_H_ */ 135#endif /* _ASM_POWERPC_MMU_H_ */