]> git.proxmox.com Git - mirror_edk2.git/blame - UefiPayloadPkg/BlSupportSmm/BlSupportSmm.h
UefiCpuPkg: Apply uncrustify changes
[mirror_edk2.git] / UefiPayloadPkg / BlSupportSmm / BlSupportSmm.h
CommitLineData
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
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8#ifndef BL_SUPPORT_SMM_H_\r
9#define BL_SUPPORT_SMM_H_\r
10\r
11#include <PiDxe.h>\r
12#include <Library/BaseLib.h>\r
13#include <Library/DebugLib.h>\r
14#include <Library/IoLib.h>\r
15#include <Library/HobLib.h>\r
16#include <Library/MtrrLib.h>\r
17#include <Library/UefiLib.h>\r
18#include <Library/BaseMemoryLib.h>\r
19#include <Library/MemoryAllocationLib.h>\r
20#include <Library/SmmServicesTableLib.h>\r
21#include <Library/PciLib.h>\r
22#include <Protocol/SmmSwDispatch2.h>\r
23#include <Protocol/SmmAccess2.h>\r
24#include <protocol/MpService.h>\r
25#include <Library/UefiBootServicesTableLib.h>\r
26#include <Register/Intel/ArchitecturalMsr.h>\r
27#include <Guid/SmmRegisterInfoGuid.h>\r
28#include <Guid/SmmS3CommunicationInfoGuid.h>\r
29#include <Guid/SmramMemoryReserve.h>\r
30\r
31#define EFI_MSR_SMRR_MASK 0xFFFFF000\r
32#define MSR_SMM_FEATURE_CONTROL 0x4E0\r
33#define SMRAM_SAVE_STATE_MAP_OFFSET 0xFC00 /// Save state offset from SMBASE\r
34\r
35typedef struct {\r
36 UINT32 Base;\r
37 UINT32 Mask;\r
38} SMRR_BASE_MASK;\r
39\r
40#endif\r
41\r