]>
Commit | Line | Data |
---|---|---|
bed990aa GD |
1 | /** @file\r |
2 | The header file of bootloader support SMM.\r | |
3 | \r | |
4 | Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
e5efcf8b | 8 | \r |
bed990aa GD |
9 | #ifndef BL_SUPPORT_SMM_H_\r |
10 | #define BL_SUPPORT_SMM_H_\r | |
11 | \r | |
12 | #include <PiDxe.h>\r | |
13 | #include <Library/BaseLib.h>\r | |
14 | #include <Library/DebugLib.h>\r | |
15 | #include <Library/IoLib.h>\r | |
16 | #include <Library/HobLib.h>\r | |
17 | #include <Library/MtrrLib.h>\r | |
18 | #include <Library/UefiLib.h>\r | |
19 | #include <Library/BaseMemoryLib.h>\r | |
20 | #include <Library/MemoryAllocationLib.h>\r | |
21 | #include <Library/SmmServicesTableLib.h>\r | |
22 | #include <Library/PciLib.h>\r | |
23 | #include <Protocol/SmmSwDispatch2.h>\r | |
24 | #include <Protocol/SmmAccess2.h>\r | |
4adc364c | 25 | #include <Protocol/MpService.h>\r |
bed990aa GD |
26 | #include <Library/UefiBootServicesTableLib.h>\r |
27 | #include <Register/Intel/ArchitecturalMsr.h>\r | |
28 | #include <Guid/SmmRegisterInfoGuid.h>\r | |
29 | #include <Guid/SmmS3CommunicationInfoGuid.h>\r | |
30 | #include <Guid/SmramMemoryReserve.h>\r | |
31 | \r | |
e5efcf8b MK |
32 | #define EFI_MSR_SMRR_MASK 0xFFFFF000\r |
33 | #define MSR_SMM_FEATURE_CONTROL 0x4E0\r | |
34 | #define SMRAM_SAVE_STATE_MAP_OFFSET 0xFC00 /// Save state offset from SMBASE\r | |
bed990aa GD |
35 | \r |
36 | typedef struct {\r | |
e5efcf8b MK |
37 | UINT32 Base;\r |
38 | UINT32 Mask;\r | |
bed990aa GD |
39 | } SMRR_BASE_MASK;\r |
40 | \r | |
41 | #endif\r |