SmramMemoryReserve.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /** @file
  2. Definition of GUIDed HOB for reserving SMRAM regions.
  3. This file defines:
  4. * the GUID used to identify the GUID HOB for reserving SMRAM regions.
  5. * the data structure of SMRAM descriptor to describe SMRAM candidate regions
  6. * values of state of SMRAM candidate regions
  7. * the GUID specific data structure of HOB for reserving SMRAM regions.
  8. This GUIDed HOB can be used to convey the existence of the T-SEG reservation and H-SEG usage
  9. Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
  10. SPDX-License-Identifier: BSD-2-Clause-Patent
  11. @par Revision Reference:
  12. GUIDs defined in SmmCis spec version 0.9.
  13. **/
  14. #ifndef _EFI_SMM_PEI_SMRAM_MEMORY_RESERVE_H_
  15. #define _EFI_SMM_PEI_SMRAM_MEMORY_RESERVE_H_
  16. #define EFI_SMM_PEI_SMRAM_MEMORY_RESERVE \
  17. { \
  18. 0x6dadf1d1, 0xd4cc, 0x4910, {0xbb, 0x6e, 0x82, 0xb1, 0xfd, 0x80, 0xff, 0x3d } \
  19. }
  20. /**
  21. * GUID specific data structure of HOB for reserving SMRAM regions.
  22. *
  23. * Inconsistent with specification here:
  24. * EFI_HOB_SMRAM_DESCRIPTOR_BLOCK has been changed to EFI_SMRAM_HOB_DESCRIPTOR_BLOCK.
  25. * This inconsistency is kept in code in order for backward compatibility.
  26. **/
  27. typedef struct {
  28. ///
  29. /// Designates the number of possible regions in the system
  30. /// that can be usable for SMRAM.
  31. ///
  32. /// Inconsistent with specification here:
  33. /// In Framework SMM CIS 0.91 specification, it defines the field type as UINTN.
  34. /// However, HOBs are supposed to be CPU neutral, so UINT32 should be used instead.
  35. ///
  36. UINT32 NumberOfSmmReservedRegions;
  37. ///
  38. /// Used throughout this protocol to describe the candidate
  39. /// regions for SMRAM that are supported by this platform.
  40. ///
  41. EFI_SMRAM_DESCRIPTOR Descriptor[1];
  42. } EFI_SMRAM_HOB_DESCRIPTOR_BLOCK;
  43. extern EFI_GUID gEfiSmmPeiSmramMemoryReserveGuid;
  44. #endif