]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/PlatformPei/Xen.h
BaseTools: Library hashing fix and optimization for --hash feature
[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
b26f0cf9 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
4c3966e9
WL
7\r
8**/\r
9\r
10#ifndef __XEN_H__\r
11#define __XEN_H__\r
12\r
13#include <PiPei.h>\r
14\r
15// Physical address of OVMF info\r
16#define OVMF_INFO_PHYSICAL_ADDRESS 0x00001000\r
17\r
18// This structure must match the definition on Xen side\r
19#pragma pack(1)\r
20typedef struct {\r
21 CHAR8 Signature[14]; // XenHVMOVMF\0\r
22 UINT8 Length; // Length of this structure\r
23 UINT8 Checksum; // Set such that the sum over bytes 0..length == 0\r
24 //\r
25 // Physical address of an array of TablesCount elements.\r
26 //\r
27 // Each element contains the physical address of a BIOS table.\r
28 //\r
29 EFI_PHYSICAL_ADDRESS Tables;\r
30 UINT32 TablesCount;\r
31 //\r
32 // Physical address of the E820 table, contains E820EntriesCount entries.\r
33 //\r
34 EFI_PHYSICAL_ADDRESS E820;\r
35 UINT32 E820EntriesCount;\r
36} EFI_XEN_OVMF_INFO;\r
37#pragma pack()\r
38\r
39#endif /* __XEN_H__ */\r