162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci#ifndef IO_PGTABLE_ARM_H_ 362306a36Sopenharmony_ci#define IO_PGTABLE_ARM_H_ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#define ARM_LPAE_TCR_TG0_4K 0 662306a36Sopenharmony_ci#define ARM_LPAE_TCR_TG0_64K 1 762306a36Sopenharmony_ci#define ARM_LPAE_TCR_TG0_16K 2 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define ARM_LPAE_TCR_TG1_16K 1 1062306a36Sopenharmony_ci#define ARM_LPAE_TCR_TG1_4K 2 1162306a36Sopenharmony_ci#define ARM_LPAE_TCR_TG1_64K 3 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#define ARM_LPAE_TCR_SH_NS 0 1462306a36Sopenharmony_ci#define ARM_LPAE_TCR_SH_OS 2 1562306a36Sopenharmony_ci#define ARM_LPAE_TCR_SH_IS 3 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define ARM_LPAE_TCR_RGN_NC 0 1862306a36Sopenharmony_ci#define ARM_LPAE_TCR_RGN_WBWA 1 1962306a36Sopenharmony_ci#define ARM_LPAE_TCR_RGN_WT 2 2062306a36Sopenharmony_ci#define ARM_LPAE_TCR_RGN_WB 3 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define ARM_LPAE_TCR_PS_32_BIT 0x0ULL 2362306a36Sopenharmony_ci#define ARM_LPAE_TCR_PS_36_BIT 0x1ULL 2462306a36Sopenharmony_ci#define ARM_LPAE_TCR_PS_40_BIT 0x2ULL 2562306a36Sopenharmony_ci#define ARM_LPAE_TCR_PS_42_BIT 0x3ULL 2662306a36Sopenharmony_ci#define ARM_LPAE_TCR_PS_44_BIT 0x4ULL 2762306a36Sopenharmony_ci#define ARM_LPAE_TCR_PS_48_BIT 0x5ULL 2862306a36Sopenharmony_ci#define ARM_LPAE_TCR_PS_52_BIT 0x6ULL 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#endif /* IO_PGTABLE_ARM_H_ */ 31