mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-10 21:29:20 +00:00
HV Cx: load cx data to boot_cpu_data when boot
The cx data is hardcoded within HV, load it to boot_cpu_data when HV boot. The patch provide a3960 soc cx data for example. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -292,6 +292,30 @@ struct acrn_vm_pci_msix_remap {
|
||||
* @brief Info The power state data of a VCPU.
|
||||
*
|
||||
*/
|
||||
|
||||
#define SPACE_SYSTEM_MEMORY 0
|
||||
#define SPACE_SYSTEM_IO 1
|
||||
#define SPACE_PCI_CONFIG 2
|
||||
#define SPACE_Embedded_Control 3
|
||||
#define SPACE_SMBUS 4
|
||||
#define SPACE_PLATFORM_COMM 10
|
||||
#define SPACE_FFixedHW 0x7F
|
||||
|
||||
struct acrn_register {
|
||||
uint8_t space_id;
|
||||
uint8_t bit_width;
|
||||
uint8_t bit_offset;
|
||||
uint8_t access_size;
|
||||
uint64_t address;
|
||||
} __attribute__((aligned(8)));
|
||||
|
||||
struct cpu_cx_data {
|
||||
struct acrn_register cx_reg;
|
||||
uint8_t type;
|
||||
uint32_t latency;
|
||||
uint64_t power;
|
||||
} __attribute__((aligned(8)));
|
||||
|
||||
struct cpu_px_data {
|
||||
uint64_t core_frequency; /* megahertz */
|
||||
uint64_t power; /* milliWatts */
|
||||
|
Reference in New Issue
Block a user