OvmfPkg/PlatformPei: Detect S3 support for QEMU / KVM
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.h
CommitLineData
49ba9447 1/** @file\r
2 Platform PEI module include file.\r
3\r
b621bb0a 4 Copyright (c) 2006 - 2014, 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
c0e10976 44VOID\r
45AddUntestedMemoryBaseSizeHob (\r
46 EFI_PHYSICAL_ADDRESS MemoryBase,\r
47 UINT64 MemorySize\r
48 );\r
49\r
eec7d420 50VOID\r
51AddReservedMemoryBaseSizeHob (\r
52 EFI_PHYSICAL_ADDRESS MemoryBase,\r
53 UINT64 MemorySize\r
54 );\r
55\r
c0e10976 56VOID\r
57AddUntestedMemoryRangeHob (\r
58 EFI_PHYSICAL_ADDRESS MemoryBase,\r
59 EFI_PHYSICAL_ADDRESS MemoryLimit\r
60 );\r
61\r
36658fff
WL
62EFI_STATUS\r
63PublishPeiMemory (\r
64 VOID\r
65 );\r
66\r
4b455f7b
JJ
67UINT32\r
68GetSystemMemorySizeBelow4gb (\r
69 VOID\r
70 );\r
71\r
c034906e
JJ
72VOID\r
73InitializeRamRegions (\r
49ba9447 74 VOID\r
75 );\r
76\r
77EFI_STATUS\r
78PeiFvInitialization (\r
79 VOID\r
80 );\r
81\r
eec7d420 82EFI_STATUS\r
83InitializeXen (\r
b98b4941 84 VOID\r
c7ea55b9
WL
85 );\r
86\r
b98b4941 87BOOLEAN\r
c7ea55b9 88XenDetect (\r
eec7d420 89 VOID\r
90 );\r
91\r
b621bb0a
JJ
92extern BOOLEAN mXen;\r
93\r
18f31ada
JJ
94VOID\r
95XenPublishRamRegions (\r
96 VOID\r
bb6a9a93
WL
97 );\r
98\r
979420df
JJ
99extern EFI_BOOT_MODE mBootMode;\r
100\r
7cdba634
JJ
101extern BOOLEAN mS3Supported;\r
102\r
49ba9447 103#endif // _PLATFORM_PEI_H_INCLUDED_\r