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