From f215e02bf85f68d3a6106c2a1f4f7f063f819064 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:17:27 +0200 Subject: Adding upstream version 7.0.14-dfsg. Signed-off-by: Daniel Baumann --- .../EFI/Firmware/OvmfPkg/XenPlatformPei/Xen.h | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/VBox/Devices/EFI/Firmware/OvmfPkg/XenPlatformPei/Xen.h (limited to 'src/VBox/Devices/EFI/Firmware/OvmfPkg/XenPlatformPei/Xen.h') diff --git a/src/VBox/Devices/EFI/Firmware/OvmfPkg/XenPlatformPei/Xen.h b/src/VBox/Devices/EFI/Firmware/OvmfPkg/XenPlatformPei/Xen.h new file mode 100644 index 00000000..6608f602 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/OvmfPkg/XenPlatformPei/Xen.h @@ -0,0 +1,39 @@ +/** @file + Ovmf info structure passed by Xen + +Copyright (c) 2013, Citrix Systems UK Ltd.
+ +SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef __XEN_H__ +#define __XEN_H__ + +#include + +// Physical address of OVMF info +#define OVMF_INFO_PHYSICAL_ADDRESS 0x00001000 + +// This structure must match the definition on Xen side +#pragma pack(1) +typedef struct { + CHAR8 Signature[14]; // XenHVMOVMF\0 + UINT8 Length; // Length of this structure + UINT8 Checksum; // Set such that the sum over bytes 0..length == 0 + // + // Physical address of an array of TablesCount elements. + // + // Each element contains the physical address of a BIOS table. + // + EFI_PHYSICAL_ADDRESS Tables; + UINT32 TablesCount; + // + // Physical address of the E820 table, contains E820EntriesCount entries. + // + EFI_PHYSICAL_ADDRESS E820; + UINT32 E820EntriesCount; +} EFI_XEN_OVMF_INFO; +#pragma pack() + +#endif /* __XEN_H__ */ -- cgit v1.2.3