mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-08 00:17:01 +00:00
This patch mainly unifies init_vm_boot_info's implementation between SBL and UEFI. Tracked-On: #2708 Signed-off-by: Tw <wei.tan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
31 lines
678 B
C
31 lines
678 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef FIRMWARE_H
|
|
|
|
#define FIRMWARE_H
|
|
|
|
struct firmware_operations {
|
|
void (*init)(void);
|
|
uint64_t (*get_ap_trampoline)(void);
|
|
void *(*get_rsdp)(void);
|
|
void (*init_irq)(void);
|
|
int32_t (*init_vm_boot_info)(struct acrn_vm *vm);
|
|
};
|
|
|
|
void init_firmware_operations(void);
|
|
void init_firmware(void);
|
|
uint64_t firmware_get_ap_trampoline(void);
|
|
void *firmware_get_rsdp(void);
|
|
void firmware_init_irq(void);
|
|
int32_t firmware_init_vm_boot_info(struct acrn_vm *vm);
|
|
|
|
#ifndef CONFIG_CONSTANT_ACPI
|
|
void acpi_fixup(void);
|
|
#endif
|
|
|
|
#endif /* end of include guard: FIRMWARE_H */
|