]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/PlatformPei/Platform.h
OvmfPkg/PlatformPei: program MSR_IA32_FEATURE_CONTROL from fw_cfg
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.h
CommitLineData
49ba9447 1/** @file\r
2 Platform PEI module include file.\r
3\r
035ce3b3 4 Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
56d7640a 5 This program and the accompanying materials\r
49ba9447 6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _PLATFORM_PEI_H_INCLUDED_\r
16#define _PLATFORM_PEI_H_INCLUDED_\r
17\r
bb6a9a93
WL
18#include <IndustryStandard/E820.h>\r
19\r
49ba9447 20VOID\r
21AddIoMemoryBaseSizeHob (\r
22 EFI_PHYSICAL_ADDRESS MemoryBase,\r
23 UINT64 MemorySize\r
24 );\r
25\r
26VOID\r
27AddIoMemoryRangeHob (\r
28 EFI_PHYSICAL_ADDRESS MemoryBase,\r
29 EFI_PHYSICAL_ADDRESS MemoryLimit\r
30 );\r
31\r
32VOID\r
33AddMemoryBaseSizeHob (\r
34 EFI_PHYSICAL_ADDRESS MemoryBase,\r
35 UINT64 MemorySize\r
36 );\r
37\r
38VOID\r
39AddMemoryRangeHob (\r
40 EFI_PHYSICAL_ADDRESS MemoryBase,\r
41 EFI_PHYSICAL_ADDRESS MemoryLimit\r
42 );\r
43\r
eec7d420 44VOID\r
45AddReservedMemoryBaseSizeHob (\r
46 EFI_PHYSICAL_ADDRESS MemoryBase,\r
cdef34ec
LE
47 UINT64 MemorySize,\r
48 BOOLEAN Cacheable\r
eec7d420 49 );\r
50\r
bc89fe48
LE
51VOID\r
52AddressWidthInitialization (\r
53 VOID\r
54 );\r
55\r
36658fff
WL
56EFI_STATUS\r
57PublishPeiMemory (\r
58 VOID\r
59 );\r
60\r
4b455f7b
JJ
61UINT32\r
62GetSystemMemorySizeBelow4gb (\r
63 VOID\r
64 );\r
65\r
c034906e
JJ
66VOID\r
67InitializeRamRegions (\r
49ba9447 68 VOID\r
69 );\r
70\r
71EFI_STATUS\r
72PeiFvInitialization (\r
73 VOID\r
74 );\r
75\r
dbab9949
LE
76VOID\r
77InstallFeatureControlCallback (\r
78 VOID\r
79 );\r
80\r
eec7d420 81EFI_STATUS\r
82InitializeXen (\r
b98b4941 83 VOID\r
c7ea55b9
WL
84 );\r
85\r
b98b4941 86BOOLEAN\r
c7ea55b9 87XenDetect (\r
eec7d420 88 VOID\r
89 );\r
90\r
b621bb0a
JJ
91extern BOOLEAN mXen;\r
92\r
18f31ada
JJ
93VOID\r
94XenPublishRamRegions (\r
95 VOID\r
bb6a9a93
WL
96 );\r
97\r
979420df
JJ
98extern EFI_BOOT_MODE mBootMode;\r
99\r
7cdba634
JJ
100extern BOOLEAN mS3Supported;\r
101\r
bc89fe48
LE
102extern UINT8 mPhysMemAddressWidth;\r
103\r
49ba9447 104#endif // _PLATFORM_PEI_H_INCLUDED_\r