]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/Platform.h
OvmfPkg/PlatformPei: Add mXen boolean to indicate Xen is running
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.h
index 53090ac2c713565381f0f6aebd026090f1ffa0a8..cc371c57f7d49a40ce6094598ba4ba57225c6a1c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Platform PEI module include file.\r
 \r
-  Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -15,6 +15,8 @@
 #ifndef _PLATFORM_PEI_H_INCLUDED_\r
 #define _PLATFORM_PEI_H_INCLUDED_\r
 \r
+#include <IndustryStandard/E820.h>\r
+\r
 VOID\r
 AddIoMemoryBaseSizeHob (\r
   EFI_PHYSICAL_ADDRESS        MemoryBase,\r
@@ -39,7 +41,30 @@ AddMemoryRangeHob (
   EFI_PHYSICAL_ADDRESS        MemoryLimit\r
   );\r
 \r
+VOID\r
+AddUntestedMemoryBaseSizeHob (\r
+  EFI_PHYSICAL_ADDRESS        MemoryBase,\r
+  UINT64                      MemorySize\r
+  );\r
+\r
+VOID\r
+AddReservedMemoryBaseSizeHob (\r
+  EFI_PHYSICAL_ADDRESS        MemoryBase,\r
+  UINT64                      MemorySize\r
+  );\r
+\r
+VOID\r
+AddUntestedMemoryRangeHob (\r
+  EFI_PHYSICAL_ADDRESS        MemoryBase,\r
+  EFI_PHYSICAL_ADDRESS        MemoryLimit\r
+  );\r
+\r
 EFI_STATUS\r
+PublishPeiMemory (\r
+  VOID\r
+  );\r
+\r
+EFI_PHYSICAL_ADDRESS\r
 MemDetect (\r
   VOID\r
   );\r
@@ -49,4 +74,22 @@ PeiFvInitialization (
   VOID\r
   );\r
 \r
+EFI_STATUS\r
+InitializeXen (\r
+  UINT32 XenLeaf\r
+  );\r
+\r
+UINT32\r
+XenDetect (\r
+  VOID\r
+  );\r
+\r
+extern BOOLEAN mXen;\r
+\r
+EFI_STATUS\r
+XenGetE820Map (\r
+  EFI_E820_ENTRY64 **Entries,\r
+  UINT32 *Count\r
+  );\r
+\r
 #endif // _PLATFORM_PEI_H_INCLUDED_\r