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