]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformPei/Platform.h
ae855531c1b7adfa69b9851e187d010c6e1db41e
[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 VOID
57 Q35TsegMbytesInitialization (
58 VOID
59 );
60
61 EFI_STATUS
62 PublishPeiMemory (
63 VOID
64 );
65
66 UINT32
67 GetSystemMemorySizeBelow4gb (
68 VOID
69 );
70
71 VOID
72 InitializeRamRegions (
73 VOID
74 );
75
76 EFI_STATUS
77 PeiFvInitialization (
78 VOID
79 );
80
81 VOID
82 InstallFeatureControlCallback (
83 VOID
84 );
85
86 EFI_STATUS
87 InitializeXen (
88 VOID
89 );
90
91 BOOLEAN
92 XenDetect (
93 VOID
94 );
95
96 extern BOOLEAN mXen;
97
98 VOID
99 XenPublishRamRegions (
100 VOID
101 );
102
103 extern EFI_BOOT_MODE mBootMode;
104
105 extern BOOLEAN mS3Supported;
106
107 extern UINT8 mPhysMemAddressWidth;
108
109 extern UINT32 mMaxCpuCount;
110
111 extern UINT16 mHostBridgeDevId;
112
113 #endif // _PLATFORM_PEI_H_INCLUDED_