]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkSocPkg/QuarkNorthCluster/Include/Library/QNCSmmLib.h
QuarkSocPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / Include / Library / QNCSmmLib.h
CommitLineData
9b6bbcdb
MK
1/** @file\r
2QNC Smm Library Services header file.\r
3\r
4Copyright (c) 2013-2015 Intel Corporation.\r
5\r
c9f231d0 6SPDX-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
22BOOLEAN\r
23EFIAPI\r
24QNCOpenSmramRegion (\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
37BOOLEAN\r
38EFIAPI\r
39QNCCloseSmramRegion (\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
49VOID\r
50EFIAPI\r
51QNCLockSmramRegion (\r
52 VOID\r
53 );\r
54\r
55\r
56#endif\r
57\r