Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / arch / powerpc / include / asm / nohash / 32 / slice.h
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 #define SLB_ADDR_LIMIT_DEFAULT  DEFAULT_MAP_WINDOW
17
18 #endif /* CONFIG_PPC_MM_SLICES */
19
20 #endif /* _ASM_POWERPC_NOHASH_32_SLICE_H */