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