BlSupportSmm.h 1.1 KB

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