mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
HV: add bsp acpi info support
On some occations HV operates relying on host acpi info, we can use a c file to store this data. The data could be hardcoded or use offline tool that run on target first and then generate the file automatically. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -305,6 +305,30 @@ struct cpu_px_data {
|
||||
uint64_t status; /* success indicator */
|
||||
} __attribute__((aligned(8)));
|
||||
|
||||
struct acpi_sx_pkg {
|
||||
uint8_t val_pm1a;
|
||||
uint8_t val_pm1b;
|
||||
uint16_t reserved;
|
||||
} __attribute__((aligned(8)));
|
||||
|
||||
struct pm_s_state_data {
|
||||
struct acpi_generic_address pm1a_evt;
|
||||
struct acpi_generic_address pm1b_evt;
|
||||
struct acpi_generic_address pm1a_cnt;
|
||||
struct acpi_generic_address pm1b_cnt;
|
||||
struct acpi_sx_pkg s3_pkg;
|
||||
struct acpi_sx_pkg s5_pkg;
|
||||
uint32_t *wake_vector_32;
|
||||
uint64_t *wake_vector_64;
|
||||
}__attribute__((aligned(8)));
|
||||
|
||||
struct acpi_info {
|
||||
int16_t x86_family;
|
||||
int16_t x86_model;
|
||||
struct pm_s_state_data pm_s_state;
|
||||
/* TODO: we can add more acpi info field here if needed. */
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Info PM command from DM/VHM.
|
||||
*
|
||||
|
Reference in New Issue
Block a user