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