PlatformSecLib.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /** @file
  2. This library class defines interface for platform to perform platform
  3. specific initialization in SEC phase.
  4. Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef __PLATFORM_SEC_LIB_H__
  8. #define __PLATFORM_SEC_LIB_H__
  9. /**
  10. A developer supplied function to perform platform specific operations.
  11. It's a developer supplied function to perform any operations appropriate to a
  12. given platform. It's invoked just before passing control to PEI core by SEC
  13. core. Platform developer may modify the SecCoreData passed to PEI Core.
  14. It returns a platform specific PPI list that platform wishes to pass to PEI core.
  15. The Generic SEC core module will merge this list to join the final list passed to
  16. PEI core.
  17. @param SecCoreData The same parameter as passing to PEI core. It
  18. could be overridden by this function.
  19. @return The platform specific PPI list to be passed to PEI core or
  20. NULL if there is no need of such platform specific PPI list.
  21. **/
  22. EFI_PEI_PPI_DESCRIPTOR *
  23. EFIAPI
  24. SecPlatformMain (
  25. IN OUT EFI_SEC_PEI_HAND_OFF *SecCoreData
  26. );
  27. /**
  28. This interface conveys state information out of the Security (SEC) phase into PEI.
  29. @param PeiServices Pointer to the PEI Services Table.
  30. @param StructureSize Pointer to the variable describing size of the input buffer.
  31. @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.
  32. @retval EFI_SUCCESS The data was successfully returned.
  33. @retval EFI_BUFFER_TOO_SMALL The buffer was too small.
  34. **/
  35. EFI_STATUS
  36. EFIAPI
  37. SecPlatformInformation (
  38. IN CONST EFI_PEI_SERVICES **PeiServices,
  39. IN OUT UINT64 *StructureSize,
  40. OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord
  41. );
  42. /**
  43. This interface disables temporary memory in SEC Phase.
  44. **/
  45. VOID
  46. EFIAPI
  47. SecPlatformDisableTemporaryMemory (
  48. VOID
  49. );
  50. #endif