PlatformSecLibNull.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /** @file
  2. Null instance of Platform Sec Lib.
  3. Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include <PiPei.h>
  7. #include <Ppi/SecPlatformInformation.h>
  8. /**
  9. A developer supplied function to perform platform specific operations.
  10. It's a developer supplied function to perform any operations appropriate to a
  11. given platform. It's invoked just before passing control to PEI core by SEC
  12. core. Platform developer may modify the SecCoreData passed to PEI Core.
  13. It returns a platform specific PPI list that platform wishes to pass to PEI core.
  14. The Generic SEC core module will merge this list to join the final list passed to
  15. PEI core.
  16. @param SecCoreData The same parameter as passing to PEI core. It
  17. could be overridden by this function.
  18. @return The platform specific PPI list to be passed to PEI core or
  19. NULL if there is no need of such platform specific PPI list.
  20. **/
  21. EFI_PEI_PPI_DESCRIPTOR *
  22. EFIAPI
  23. SecPlatformMain (
  24. IN OUT EFI_SEC_PEI_HAND_OFF *SecCoreData
  25. )
  26. {
  27. return NULL;
  28. }
  29. /**
  30. This interface conveys state information out of the Security (SEC) phase into PEI.
  31. @param PeiServices Pointer to the PEI Services Table.
  32. @param StructureSize Pointer to the variable describing size of the input buffer.
  33. @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.
  34. @retval EFI_SUCCESS The data was successfully returned.
  35. @retval EFI_BUFFER_TOO_SMALL The buffer was too small.
  36. **/
  37. EFI_STATUS
  38. EFIAPI
  39. SecPlatformInformation (
  40. IN CONST EFI_PEI_SERVICES **PeiServices,
  41. IN OUT UINT64 *StructureSize,
  42. OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord
  43. )
  44. {
  45. return EFI_SUCCESS;
  46. }
  47. /**
  48. This interface disables temporary memory in SEC Phase.
  49. **/
  50. VOID
  51. EFIAPI
  52. SecPlatformDisableTemporaryMemory (
  53. VOID
  54. )
  55. {
  56. }
  57. /**
  58. This function provides dummy function so that SecCore can pass build
  59. validation. All real platform library instances need to implement the real
  60. entry point in assembly.
  61. **/
  62. VOID
  63. EFIAPI
  64. _ModuleEntryPoint (
  65. VOID
  66. )
  67. {
  68. return;
  69. }