]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: define EFI_XEN_OVMF_INFO
authorWei Liu <wei.liu2@citrix.com>
Sun, 8 Dec 2013 01:35:52 +0000 (01:35 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 8 Dec 2013 01:35:52 +0000 (01:35 +0000)
EFI_XEN_OVMF_INFO is defined to accept configurations from hvmloader. It
must match the definition on Xen side.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14942 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/PlatformPei/Xen.h [new file with mode: 0644]

diff --git a/OvmfPkg/PlatformPei/Xen.h b/OvmfPkg/PlatformPei/Xen.h
new file mode 100644 (file)
index 0000000..2a8a32b
--- /dev/null
@@ -0,0 +1,45 @@
+/** @file\r
+  Ovmf info structure passed by Xen\r
+\r
+Copyright (c) 2013, Citrix Systems UK Ltd.<BR>\r
+\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
+The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __XEN_H__\r
+#define __XEN_H__\r
+\r
+#include <PiPei.h>\r
+\r
+// Physical address of OVMF info\r
+#define OVMF_INFO_PHYSICAL_ADDRESS 0x00001000\r
+\r
+// This structure must match the definition on Xen side\r
+#pragma pack(1)\r
+typedef struct {\r
+  CHAR8 Signature[14]; // XenHVMOVMF\0\r
+  UINT8 Length;        // Length of this structure\r
+  UINT8 Checksum;      // Set such that the sum over bytes 0..length == 0\r
+  //\r
+  // Physical address of an array of TablesCount elements.\r
+  //\r
+  // Each element contains the physical address of a BIOS table.\r
+  //\r
+  EFI_PHYSICAL_ADDRESS Tables;\r
+  UINT32 TablesCount;\r
+  //\r
+  // Physical address of the E820 table, contains E820EntriesCount entries.\r
+  //\r
+  EFI_PHYSICAL_ADDRESS E820;\r
+  UINT32 E820EntriesCount;\r
+} EFI_XEN_OVMF_INFO;\r
+#pragma pack()\r
+\r
+#endif /* __XEN_H__ */\r