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