]>
Commit | Line | Data |
---|---|---|
7cda5d9e KQ |
1 | /** @file\r |
2 | Null instance of MM Unblock Page Library.\r | |
3 | \r | |
4 | This library provides an interface to request non-MMRAM pages to be mapped/unblocked\r | |
5 | from inside MM environment.\r | |
6 | \r | |
7 | For MM modules that need to access regions outside of MMRAMs, the agents that set up\r | |
8 | these regions are responsible for invoking this API in order for these memory areas\r | |
9 | to be accessed from inside MM.\r | |
10 | \r | |
11 | Copyright (c) Microsoft Corporation.\r | |
12 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #include <Base.h>\r | |
17 | \r | |
18 | /**\r | |
19 | This API provides a way to unblock certain data pages to be accessible inside MM environment.\r | |
20 | \r | |
21 | @param UnblockAddress The address of buffer caller requests to unblock, the address\r | |
22 | has to be page aligned.\r | |
23 | @param NumberOfPages The number of pages requested to be unblocked from MM\r | |
24 | environment.\r | |
25 | \r | |
26 | @retval RETURN_SUCCESS The request goes through successfully.\r | |
27 | @retval RETURN_NOT_AVAILABLE_YET The requested functionality is not produced yet.\r | |
28 | @retval RETURN_UNSUPPORTED The requested functionality is not supported on current platform.\r | |
29 | @retval RETURN_SECURITY_VIOLATION The requested address failed to pass security check for\r | |
30 | unblocking.\r | |
31 | @retval RETURN_INVALID_PARAMETER Input address either NULL pointer or not page aligned.\r | |
32 | @retval RETURN_ACCESS_DENIED The request is rejected due to system has passed certain boot\r | |
33 | phase.\r | |
34 | \r | |
35 | **/\r | |
36 | RETURN_STATUS\r | |
37 | EFIAPI\r | |
38 | MmUnblockMemoryRequest (\r | |
2f88bd3a MK |
39 | IN PHYSICAL_ADDRESS UnblockAddress,\r |
40 | IN UINT64 NumberOfPages\r | |
7cda5d9e KQ |
41 | )\r |
42 | {\r | |
43 | return RETURN_UNSUPPORTED;\r | |
44 | }\r |