mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
rename function & definition from firmware to guest boot
The interface struct & API changes like below: struct uefi_context->struct depri_boot_context init_firmware_operations()->init_vboot_operations() init_firmware()->init_vboot() firmware_init_irq()->init_vboot_irq() firmware_get_rsdp()->get_rsdp_ptr() firmware_get_ap_trampoline()->get_ap_trampoline_buf() firmware_init_vm_boot_info()->init_vm_boot_info() Tracked-On: #1842 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Eddie Dong
parent
20f97f7559
commit
41ac9e5d10
@@ -3,22 +3,22 @@
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#ifndef FIRMWARE_UEFI_H
|
||||
#ifndef DEPRIVILEGE_BOOT_H
|
||||
|
||||
#define FIRMWARE_UEFI_H
|
||||
#define DEPRIVILEGE_BOOT_H
|
||||
|
||||
#include <vboot.h>
|
||||
|
||||
struct uefi_context {
|
||||
struct depri_boot_context {
|
||||
struct acrn_vcpu_regs vcpu_regs;
|
||||
void *rsdp;
|
||||
void *ap_trampoline_buf;
|
||||
} __packed;
|
||||
|
||||
const struct uefi_context *get_uefi_ctx(void);
|
||||
const struct lapic_regs *get_uefi_lapic_regs(void);
|
||||
const struct depri_boot_context *get_depri_boot_ctx(void);
|
||||
const struct lapic_regs *get_depri_boot_lapic_regs(void);
|
||||
|
||||
struct firmware_operations* uefi_get_firmware_operations(void);
|
||||
int32_t uefi_init_vm_boot_info(__unused struct acrn_vm *vm);
|
||||
struct vboot_operations* get_deprivilege_boot_ops(void);
|
||||
int32_t init_depri_vboot_info(__unused struct acrn_vm *vm);
|
||||
|
||||
#endif /* end of include guard: FIRMWARE_UEFI_H */
|
||||
#endif /* end of include guard: DEPRIVILEGE_BOOT_H */
|
||||
|
@@ -4,13 +4,13 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef FIRMWARE_SBL_H
|
||||
#ifndef DIRECT_BOOT_H
|
||||
|
||||
#define FIRMWARE_SBL_H
|
||||
#define DIRECT_BOOT_H
|
||||
|
||||
#include <vboot.h>
|
||||
|
||||
struct firmware_operations* sbl_get_firmware_operations(void);
|
||||
int32_t sbl_init_vm_boot_info(struct acrn_vm *vm);
|
||||
struct vboot_operations* get_direct_boot_ops(void);
|
||||
int32_t init_direct_vboot_info(struct acrn_vm *vm);
|
||||
|
||||
#endif /* end of include guard: FIRMWARE_SBL_H */
|
||||
#endif /* end of include guard: DIRECT_BOOT_H */
|
||||
|
@@ -4,34 +4,34 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef FIRMWARE_H
|
||||
#ifndef VBOOT_H
|
||||
|
||||
#define FIRMWARE_H
|
||||
#define VBOOT_H
|
||||
|
||||
#define NUM_FIRMWARE_SUPPORTING 4U
|
||||
#define NUM_VBOOT_SUPPORTING 4U
|
||||
|
||||
struct acrn_vm;
|
||||
struct firmware_operations {
|
||||
struct vboot_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);
|
||||
int32_t (*init_vboot_info)(struct acrn_vm *vm);
|
||||
};
|
||||
|
||||
struct firmware_candidates {
|
||||
struct vboot_candidates {
|
||||
const char name[20];
|
||||
size_t name_sz;
|
||||
struct firmware_operations *(*ops)(void);
|
||||
struct vboot_operations *(*ops)(void);
|
||||
};
|
||||
|
||||
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);
|
||||
void init_vboot_operations(void);
|
||||
void init_vboot(void);
|
||||
void init_vboot_irq(void);
|
||||
int32_t init_vm_boot_info(struct acrn_vm *vm);
|
||||
uint64_t get_ap_trampoline_buf(void);
|
||||
void *get_rsdp_ptr(void);
|
||||
|
||||
int32_t parse_hv_cmdline(void);
|
||||
|
||||
#endif /* end of include guard: FIRMWARE_H */
|
||||
#endif /* end of include guard: VBOOT_H */
|
||||
|
Reference in New Issue
Block a user