1*91f16700Schasinglulu /* 2*91f16700Schasinglulu * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. 3*91f16700Schasinglulu * 4*91f16700Schasinglulu * SPDX-License-Identifier: BSD-3-Clause 5*91f16700Schasinglulu */ 6*91f16700Schasinglulu 7*91f16700Schasinglulu #ifndef XLAT_MPU_H 8*91f16700Schasinglulu #define XLAT_MPU_H 9*91f16700Schasinglulu 10*91f16700Schasinglulu #ifndef __ASSEMBLER__ 11*91f16700Schasinglulu 12*91f16700Schasinglulu #include <lib/cassert.h> 13*91f16700Schasinglulu 14*91f16700Schasinglulu #define XLAT_TABLES_LIB_V2 1 15*91f16700Schasinglulu 16*91f16700Schasinglulu void enable_mpu_el2(unsigned int flags); 17*91f16700Schasinglulu void enable_mpu_direct_el2(unsigned int flags); 18*91f16700Schasinglulu 19*91f16700Schasinglulu /* 20*91f16700Schasinglulu * Function to wipe clean and disable all MPU regions. This function expects 21*91f16700Schasinglulu * that the MPU has already been turned off, and caching concerns addressed, 22*91f16700Schasinglulu * but it nevertheless also explicitly turns off the MPU. 23*91f16700Schasinglulu */ 24*91f16700Schasinglulu void clear_all_mpu_regions(void); 25*91f16700Schasinglulu 26*91f16700Schasinglulu #endif /* __ASSEMBLER__ */ 27*91f16700Schasinglulu #endif /* XLAT_MPU_H */ 28