18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_BOOK3S_64_SLICE_H
38c2ecf20Sopenharmony_ci#define _ASM_POWERPC_BOOK3S_64_SLICE_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#define SLICE_LOW_SHIFT		28
68c2ecf20Sopenharmony_ci#define SLICE_LOW_TOP		(0x100000000ul)
78c2ecf20Sopenharmony_ci#define SLICE_NUM_LOW		(SLICE_LOW_TOP >> SLICE_LOW_SHIFT)
88c2ecf20Sopenharmony_ci#define GET_LOW_SLICE_INDEX(addr)	((addr) >> SLICE_LOW_SHIFT)
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define SLICE_HIGH_SHIFT	40
118c2ecf20Sopenharmony_ci#define SLICE_NUM_HIGH		(H_PGTABLE_RANGE >> SLICE_HIGH_SHIFT)
128c2ecf20Sopenharmony_ci#define GET_HIGH_SLICE_INDEX(addr)	((addr) >> SLICE_HIGH_SHIFT)
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define SLB_ADDR_LIMIT_DEFAULT	DEFAULT_MAP_WINDOW_USER64
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_BOOK3S_64_SLICE_H */
17