acrn-hypervisor/hypervisor/include/lib/efi.h
Victor Sun 4774c79da0 HV: modularizatoin: refine efi_info struct usage in acrn boot info
This patch has below changes:
	1. rename mi_efi_info to uefi_info in struct acrn_boot_info;

	2. remove redundant "efi_" prefix for efi_info struct members;

	3. The efi_info structure in acrn_boot_info struct is defined as
	   same as Linux kernel so the native efi info from boot loader
	   is passed to SOS zeropage with memcpy() api directly. Now replace
	   memcpy() with detailed struct member assignment;

	4. add boot_from_uefi() api;

Tracked-On: #5661

Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
2021-06-11 10:06:02 +08:00

22 lines
463 B
C

/*
* Copyright (C) 2020 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef EFI_H
#define EFI_H
struct efi_info {
uint32_t loader_signature; /* 0x1c0 */
uint32_t systab; /* 0x1c4 */
uint32_t memdesc_size; /* 0x1c8 */
uint32_t memdesc_version; /* 0x1cc */
uint32_t memmap; /* 0x1d0 */
uint32_t memmap_size; /* 0x1d4 */
uint32_t systab_hi; /* 0x1d8 */
uint32_t memmap_hi; /* 0x1dc */
} __packed;
#endif