1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2b0b5e9b1SAneesh Kumar K.V #ifndef _ASM_POWERPC_PGTABLE_RADIX_64K_H 3b0b5e9b1SAneesh Kumar K.V #define _ASM_POWERPC_PGTABLE_RADIX_64K_H 4b0b5e9b1SAneesh Kumar K.V 5b0b5e9b1SAneesh Kumar K.V /* 6b0b5e9b1SAneesh Kumar K.V * For 64K page size supported index is 13/9/9/5 7b0b5e9b1SAneesh Kumar K.V */ 8b0b5e9b1SAneesh Kumar K.V #define RADIX_PTE_INDEX_SIZE 5 /* 2MB huge page */ 9b0b5e9b1SAneesh Kumar K.V #define RADIX_PMD_INDEX_SIZE 9 /* 1G huge page */ 10b0b5e9b1SAneesh Kumar K.V #define RADIX_PUD_INDEX_SIZE 9 11b0b5e9b1SAneesh Kumar K.V #define RADIX_PGD_INDEX_SIZE 13 12b0b5e9b1SAneesh Kumar K.V 13fb4e5dbdSAneesh Kumar K.V /* 14fb4e5dbdSAneesh Kumar K.V * We use a 256 byte PTE page fragment in radix 15fb4e5dbdSAneesh Kumar K.V * 8 bytes per each PTE entry. 16fb4e5dbdSAneesh Kumar K.V */ 17fb4e5dbdSAneesh Kumar K.V #define RADIX_PTE_FRAG_SIZE_SHIFT (RADIX_PTE_INDEX_SIZE + 3) 18fb4e5dbdSAneesh Kumar K.V #define RADIX_PTE_FRAG_NR (PAGE_SIZE >> RADIX_PTE_FRAG_SIZE_SHIFT) 19*8a6c697bSAneesh Kumar K.V 20*8a6c697bSAneesh Kumar K.V #define RADIX_PMD_FRAG_SIZE_SHIFT (RADIX_PMD_INDEX_SIZE + 3) 21*8a6c697bSAneesh Kumar K.V #define RADIX_PMD_FRAG_NR (PAGE_SIZE >> RADIX_PMD_FRAG_SIZE_SHIFT) 22*8a6c697bSAneesh Kumar K.V 23b0b5e9b1SAneesh Kumar K.V #endif /* _ASM_POWERPC_PGTABLE_RADIX_64K_H */ 24