Platform.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /** @file
  2. Platform PEI module include file.
  3. Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _PLATFORM_PEI_H_INCLUDED_
  7. #define _PLATFORM_PEI_H_INCLUDED_
  8. #include <IndustryStandard/E820.h>
  9. #include <Library/PlatformInitLib.h>
  10. #include <IndustryStandard/IntelTdx.h>
  11. extern EFI_HOB_PLATFORM_INFO mPlatformInfoHob;
  12. VOID
  13. AddressWidthInitialization (
  14. IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
  15. );
  16. VOID
  17. Q35TsegMbytesInitialization (
  18. VOID
  19. );
  20. VOID
  21. Q35SmramAtDefaultSmbaseInitialization (
  22. VOID
  23. );
  24. EFI_STATUS
  25. PublishPeiMemory (
  26. VOID
  27. );
  28. VOID
  29. InitializeRamRegions (
  30. IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
  31. );
  32. VOID
  33. MemMapInitialization (
  34. IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
  35. );
  36. VOID
  37. MiscInitialization (
  38. IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
  39. );
  40. VOID
  41. BootModeInitialization (
  42. IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
  43. );
  44. VOID
  45. MaxCpuCountInitialization (
  46. IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
  47. );
  48. EFI_STATUS
  49. PeiFvInitialization (
  50. VOID
  51. );
  52. VOID
  53. MemTypeInfoInitialization (
  54. VOID
  55. );
  56. VOID
  57. InstallFeatureControlCallback (
  58. VOID
  59. );
  60. VOID
  61. InstallClearCacheCallback (
  62. VOID
  63. );
  64. VOID
  65. AmdSevInitialize (
  66. VOID
  67. );
  68. /**
  69. This Function checks if TDX is available, if present then it sets
  70. the dynamic PCDs for Tdx guest. It also builds Guid hob which contains
  71. the Host Bridge DevId.
  72. **/
  73. VOID
  74. IntelTdxInitialize (
  75. VOID
  76. );
  77. /**
  78. * @brief Builds PlatformInfo Hob
  79. */
  80. VOID
  81. BuildPlatformInfoHob (
  82. VOID
  83. );
  84. VOID
  85. SevInitializeRam (
  86. VOID
  87. );
  88. #endif // _PLATFORM_PEI_H_INCLUDED_