]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/PlatformPei/Xen.h
OvmfPkg/AmdSevDxe: sort #includes, and entries in INF file sections
[mirror_edk2.git] / OvmfPkg / PlatformPei / Xen.h
CommitLineData
4c3966e9
WL
1/** @file\r
2 Ovmf info structure passed by Xen\r
3\r
4Copyright (c) 2013, Citrix Systems UK Ltd.<BR>\r
5\r
6This program and the accompanying materials are licensed and made available under\r
7the terms and conditions of the BSD License that accompanies this distribution.\r
8The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php.\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __XEN_H__\r
17#define __XEN_H__\r
18\r
19#include <PiPei.h>\r
20\r
21// Physical address of OVMF info\r
22#define OVMF_INFO_PHYSICAL_ADDRESS 0x00001000\r
23\r
24// This structure must match the definition on Xen side\r
25#pragma pack(1)\r
26typedef struct {\r
27 CHAR8 Signature[14]; // XenHVMOVMF\0\r
28 UINT8 Length; // Length of this structure\r
29 UINT8 Checksum; // Set such that the sum over bytes 0..length == 0\r
30 //\r
31 // Physical address of an array of TablesCount elements.\r
32 //\r
33 // Each element contains the physical address of a BIOS table.\r
34 //\r
35 EFI_PHYSICAL_ADDRESS Tables;\r
36 UINT32 TablesCount;\r
37 //\r
38 // Physical address of the E820 table, contains E820EntriesCount entries.\r
39 //\r
40 EFI_PHYSICAL_ADDRESS E820;\r
41 UINT32 E820EntriesCount;\r
42} EFI_XEN_OVMF_INFO;\r
43#pragma pack()\r
44\r
45#endif /* __XEN_H__ */\r