]>
Commit | Line | Data |
---|---|---|
9b6bbcdb MK |
1 | /** @file\r |
2 | QNC Smm Library Services header file.\r | |
3 | \r | |
4 | Copyright (c) 2013-2015 Intel Corporation.\r | |
5 | \r | |
c9f231d0 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
9b6bbcdb MK |
7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef __QNC_SMM_LIB_H__\r | |
11 | #define __QNC_SMM_LIB_H__\r | |
12 | \r | |
13 | /**\r | |
14 | This routine is the chipset code that accepts a request to "open" a region of SMRAM.\r | |
15 | The region could be legacy ABSEG, HSEG, or TSEG near top of physical memory.\r | |
16 | The use of "open" means that the memory is visible from all boot-service\r | |
17 | and SMM agents.\r | |
18 | \r | |
19 | @retval FALSE Cannot open a locked SMRAM region\r | |
20 | @retval TRUE Success to open SMRAM region.\r | |
21 | **/\r | |
22 | BOOLEAN\r | |
23 | EFIAPI\r | |
24 | QNCOpenSmramRegion (\r | |
25 | VOID\r | |
26 | );\r | |
27 | \r | |
28 | /**\r | |
29 | This routine is the chipset code that accepts a request to "close" a region of SMRAM.\r | |
30 | The region could be legacy AB or TSEG near top of physical memory.\r | |
31 | The use of "close" means that the memory is only visible from SMM agents,\r | |
32 | not from BS or RT code.\r | |
33 | \r | |
34 | @retval FALSE Cannot open a locked SMRAM region\r | |
35 | @retval TRUE Success to open SMRAM region.\r | |
36 | **/\r | |
37 | BOOLEAN\r | |
38 | EFIAPI\r | |
39 | QNCCloseSmramRegion (\r | |
40 | VOID\r | |
41 | );\r | |
42 | \r | |
43 | /**\r | |
44 | This routine is the chipset code that accepts a request to "lock" SMRAM.\r | |
45 | The region could be legacy AB or TSEG near top of physical memory.\r | |
46 | The use of "lock" means that the memory can no longer be opened\r | |
47 | to BS state.\r | |
48 | **/\r | |
49 | VOID\r | |
50 | EFIAPI\r | |
51 | QNCLockSmramRegion (\r | |
52 | VOID\r | |
53 | );\r | |
54 | \r | |
55 | \r | |
56 | #endif\r | |
57 | \r |