1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_NOHASH_32_SLICE_H
3 #define _ASM_POWERPC_NOHASH_32_SLICE_H
4 
5 #ifdef CONFIG_PPC_MM_SLICES
6 
7 #define SLICE_LOW_SHIFT		26	/* 64 slices */
8 #define SLICE_LOW_TOP		(0x100000000ull)
9 #define SLICE_NUM_LOW		(SLICE_LOW_TOP >> SLICE_LOW_SHIFT)
10 #define GET_LOW_SLICE_INDEX(addr)	((addr) >> SLICE_LOW_SHIFT)
11 
12 #define SLICE_HIGH_SHIFT	0
13 #define SLICE_NUM_HIGH		0ul
14 #define GET_HIGH_SLICE_INDEX(addr)	(addr & 0)
15 
16 #endif /* CONFIG_PPC_MM_SLICES */
17 
18 #endif /* _ASM_POWERPC_NOHASH_32_SLICE_H */
19