]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Include/Library/StandaloneMmMmuLib.h
ArmPkg/ArmMmuLib: Add MMU Library suitable for use in S-EL0.
[mirror_edk2.git] / ArmPkg / Include / Library / StandaloneMmMmuLib.h
CommitLineData
eed947be
AG
1/** @file\r
2\r
3 Copyright (c) 2018, ARM Ltd. All rights reserved.\r
4\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __STANDALONEMM_MMU_LIB__\r
16#define __STANDALONEMM_MMU_LIB__\r
17\r
18EFI_STATUS\r
19ArmSetMemoryRegionNoExec (\r
20 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
21 IN UINT64 Length\r
22 );\r
23\r
24EFI_STATUS\r
25ArmClearMemoryRegionNoExec (\r
26 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
27 IN UINT64 Length\r
28 );\r
29\r
30EFI_STATUS\r
31ArmSetMemoryRegionReadOnly (\r
32 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
33 IN UINT64 Length\r
34 );\r
35\r
36EFI_STATUS\r
37ArmClearMemoryRegionReadOnly (\r
38 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
39 IN UINT64 Length\r
40 );\r
41\r
42#endif /* __STANDALONEMM_MMU_LIB__ */\r