Last change
on this file since 108794 was 108794, checked in by vboxsync, 2 weeks ago |
Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | Internal header for StandaloneMmMemLib.
|
---|
3 |
|
---|
4 | Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 |
|
---|
9 | #ifndef STANDALONE_MM_MEM_LIB_INTERNAL_H_
|
---|
10 | #define STANDALONE_MM_MEM_LIB_INTERNAL_H_
|
---|
11 |
|
---|
12 | #include <PiMm.h>
|
---|
13 |
|
---|
14 | #include <Library/BaseLib.h>
|
---|
15 | #include <Library/BaseMemoryLib.h>
|
---|
16 | #include <Library/DebugLib.h>
|
---|
17 |
|
---|
18 | /**
|
---|
19 | Calculate and save the maximum support address.
|
---|
20 |
|
---|
21 | **/
|
---|
22 | VOID
|
---|
23 | MmMemLibCalculateMaximumSupportAddress (
|
---|
24 | VOID
|
---|
25 | );
|
---|
26 |
|
---|
27 | /**
|
---|
28 | Initialize valid non-Mmram Ranges from Resource HOB.
|
---|
29 |
|
---|
30 | **/
|
---|
31 | VOID
|
---|
32 | MmMemLibInitializeValidNonMmramRanges (
|
---|
33 | VOID
|
---|
34 | );
|
---|
35 |
|
---|
36 | /**
|
---|
37 | Deinitialize cached non-Mmram Ranges.
|
---|
38 |
|
---|
39 | **/
|
---|
40 | VOID
|
---|
41 | MmMemLibFreeValidNonMmramRanges (
|
---|
42 | VOID
|
---|
43 | );
|
---|
44 |
|
---|
45 | /**
|
---|
46 | This function check if the buffer is valid non-MMRAM memory range.
|
---|
47 |
|
---|
48 | @param[in] Buffer The buffer start address to be checked.
|
---|
49 | @param[in] Length The buffer length to be checked.
|
---|
50 |
|
---|
51 | @retval TRUE This buffer is valid non-MMRAM memory range.
|
---|
52 | @retval FALSE This buffer is not valid non-MMRAM memory range.
|
---|
53 | **/
|
---|
54 | BOOLEAN
|
---|
55 | MmMemLibIsValidNonMmramRange (
|
---|
56 | IN EFI_PHYSICAL_ADDRESS Buffer,
|
---|
57 | IN UINT64 Length
|
---|
58 | );
|
---|
59 |
|
---|
60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.