S3NvramSave.h 952 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /** @file
  2. @copyright
  3. Copyright 1999 - 2021 Intel Corporation. <BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include <Library/UefiRuntimeServicesTableLib.h>
  7. #include <Library/UefiBootServicesTableLib.h>
  8. #include <Library/DebugLib.h>
  9. #include <Library/HobLib.h>
  10. #include <Library/BaseMemoryLib.h>
  11. #include "SysHost.h"
  12. extern EFI_GUID gEfiMemoryConfigDataHobGuid;
  13. extern EFI_GUID gEfiMemoryConfigDataGuid;
  14. #define MAX_HOB_ENTRY_SIZE 60*1024
  15. EFI_STATUS
  16. EFIAPI
  17. S3NvramSaveEntry (
  18. IN EFI_HANDLE ImageHandle,
  19. IN EFI_SYSTEM_TABLE *SystemTable
  20. );
  21. /**
  22. Saves the FSP Non-Volatile Storage HOB to the UEFI Variable Services
  23. @param None
  24. @retval EFI_SUCCESS The FSP Non-Volatile Storage HOB was successfully saved.
  25. @retval EFI_ERROR The FSP Non-Volatile Storage HOB was not successfully saved.
  26. **/
  27. EFI_STATUS
  28. SaveFspNonVolatileStorageHob (
  29. VOID
  30. );