SaveMemoryConfig.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. Module Name:
  5. SaveMemoryConfig.h
  6. Abstract:
  7. Header file for Save Previous Memory Configuration Driver.
  8. --*/
  9. #ifndef _SAVE_MEMORY_CONFIG_DRIVER_H
  10. #define _SAVE_MEMORY_CONFIG_DRIVER_H
  11. #include "Protocol/SetupMode.h"
  12. #include "Guid/PlatformInfo.h"
  13. #include "Library/HobLib.h"
  14. #include "Library/DebugLib.h"
  15. #include "Library/UefiBootServicesTableLib.h"
  16. #include "Library/BaseMemoryLib.h"
  17. #include "PlatformBootMode.h"
  18. #include "Library/BaseLib.h"
  19. #include "Library/UefiRuntimeServicesTableLib.h"
  20. #include "Guid/GlobalVariable.h"
  21. #include "Library/UefiLib.h"
  22. #include "Guid/HobList.h"
  23. #include "Guid/MemoryConfigData.h"
  24. #include "Protocol/MemInfo.h"
  25. #include "Library/MemoryAllocationLib.h"
  26. #include <Guid/Vlv2Variable.h>
  27. //
  28. // Prototypes
  29. //
  30. EFI_STATUS
  31. EFIAPI
  32. SaveMemoryConfigEntryPoint (
  33. IN EFI_HANDLE ImageHandle,
  34. IN EFI_SYSTEM_TABLE *SystemTable
  35. )
  36. /*++
  37. Routine Description:
  38. This is the standard EFI driver point that detects whether there is a
  39. MemoryConfigurationData HOB and, if so, saves its data to nvRAM.
  40. Arguments:
  41. ImageHandle - Handle for the image of this driver
  42. SystemTable - Pointer to the EFI System Table
  43. Returns:
  44. EFI_SUCCESS - if the data is successfully saved or there was no data
  45. EFI_NOT_FOUND - if the HOB list could not be located.
  46. EFI_UNLOAD_IMAGE - It is not success
  47. --*/
  48. ;
  49. #endif