xref: /openbmc/linux/arch/powerpc/include/asm/book3s/64/radix-4k.h (revision 9c6d26df1fae6ad4718d51c48e6517913304ed27)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_PGTABLE_RADIX_4K_H
3 #define _ASM_POWERPC_PGTABLE_RADIX_4K_H
4 
5 /*
6  * For 4K page size supported index is 13/9/9/9
7  */
8 #define RADIX_PTE_INDEX_SIZE  9  /* 2MB huge page */
9 #define RADIX_PMD_INDEX_SIZE  9  /* 1G huge page */
10 #define RADIX_PUD_INDEX_SIZE	 9
11 #define RADIX_PGD_INDEX_SIZE  13
12 /*
13  * One fragment per per page
14  */
15 #define RADIX_PTE_FRAG_SIZE_SHIFT  (RADIX_PTE_INDEX_SIZE + 3)
16 #define RADIX_PTE_FRAG_NR	(PAGE_SIZE >> RADIX_PTE_FRAG_SIZE_SHIFT)
17 
18 #endif /* _ASM_POWERPC_PGTABLE_RADIX_4K_H */
19