mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-29 18:35:01 +00:00
Add acpi_fixup() api in bsp that can override platform ACPI info when do init_bsp(), this is useful when platform bootloader is not lock down before production. In current code only the wake vector addresses would be parsed after boot and then override to host_acpi_info, we can add more in furture based on our needs. Tracked-On: #1264 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
44 lines
963 B
C
44 lines
963 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/************************************************************************
|
|
*
|
|
* FILE NAME
|
|
*
|
|
* bsp_extern.h
|
|
*
|
|
* DESCRIPTION
|
|
*
|
|
* This file defines the generic BSP interface
|
|
*
|
|
************************************************************************/
|
|
#ifndef BSP_EXTERN_H
|
|
#define BSP_EXTERN_H
|
|
|
|
#define UOS_DEFAULT_START_ADDR (0x100000000UL)
|
|
|
|
struct acpi_info {
|
|
uint8_t x86_family;
|
|
uint8_t x86_model;
|
|
struct pm_s_state_data pm_s_state;
|
|
/* TODO: we can add more acpi info field here if needed. */
|
|
};
|
|
|
|
/**********************************/
|
|
/* EXTERNAL VARIABLES */
|
|
/**********************************/
|
|
extern struct vm_description vm0_desc;
|
|
extern struct acpi_info host_acpi_info;
|
|
|
|
/* BSP Interfaces */
|
|
void init_bsp(void);
|
|
|
|
#ifndef CONFIG_CONSTANT_ACPI
|
|
void acpi_fixup(void);
|
|
#endif
|
|
|
|
#endif /* BSP_EXTERN_H */
|