MultiPlatSupportLib.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /** @file
  2. @copyright
  3. Copyright 2012 - 2021 Intel Corporation. <BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _MULTI_PLATFORM_SUPPORT_LIB_H_
  7. #define _MULTI_PLATFORM_SUPPORT_LIB_H_
  8. #define MAX_TEMP_BUFFER 0x5000
  9. //#define MULTI_PLATFORM_DEBUG TRUE
  10. /*++
  11. Description:
  12. This function finds the matched default data and create GUID hob for it.
  13. Arguments:
  14. DefaultId - Specifies the type of defaults to retrieve.
  15. BoardId - Specifies the platform board of defaults to retrieve.
  16. Returns:
  17. EFI_SUCCESS - The matched default data is found.
  18. EFI_NOT_FOUND - The matched default data is not found.
  19. EFI_OUT_OF_RESOURCES - No enough resource to create HOB.
  20. --*/
  21. EFI_STATUS
  22. CreateDefaultVariableHob (
  23. IN UINT16 DefaultId,
  24. IN UINT16 BoardId
  25. );
  26. /**
  27. Gets a vairable store header from FFS inserted by FCE
  28. Arguments:
  29. DefaultId - Specifies the type of defaults to retrieve.
  30. BoardId - Specifies the platform board of defaults to retrieve.
  31. @return The start address of VARIABLE_STORE_HEADER *. Null if cannot find it
  32. **/
  33. VOID * FindDefaultHobinFfs (
  34. IN UINT16 DefaultId,
  35. IN UINT16 BoardId
  36. );
  37. #endif