SmmAccessDxe.h 1009 B

123456789101112131415161718192021222324252627282930313233343536
  1. /** @file
  2. The header file of SMM access DXE.
  3. Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef SMM_ACCESS_DRIVER_H_
  7. #define SMM_ACCESS_DRIVER_H_
  8. #include <PiDxe.h>
  9. #include <Protocol/SmmAccess2.h>
  10. #include <Library/HobLib.h>
  11. #include <Library/BaseLib.h>
  12. #include <Library/UefiBootServicesTableLib.h>
  13. #include <Library/DebugLib.h>
  14. #include <Library/MemoryAllocationLib.h>
  15. #include <Library/BaseMemoryLib.h>
  16. #include <Guid/SmramMemoryReserve.h>
  17. #define SMM_ACCESS_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('S', 'M', 'M', 'A')
  18. typedef struct {
  19. UINTN Signature;
  20. EFI_HANDLE Handle;
  21. EFI_SMM_ACCESS2_PROTOCOL SmmAccess;
  22. //
  23. // Local Data for SMM Access interface goes here
  24. //
  25. UINT32 SmmRegionState;
  26. UINT32 NumberRegions;
  27. EFI_SMRAM_DESCRIPTOR *SmramDesc;
  28. } SMM_ACCESS_PRIVATE_DATA;
  29. #endif