mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-02 14:55:39 +00:00
For data structure types "struct vm", its name is identical with variable name in the same scope. This is a MISRA C violation. Naming convention rule:If the data structure type is used by multi modules, its corresponding logic resource is exposed to external components (such as SOS, UOS), and its name meaning is simplistic (such as vcpu, vm), its name needs prefix "acrn_". The following udpates are made: struct vm *vm-->struct acrn_vm *vm Tracked-On: #861 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
22 lines
506 B
C
22 lines
506 B
C
/*
|
|
* Copyright (C) <2018> Intel Corporation
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef HOST_PM_H
|
|
|
|
#define BIT_SLP_TYPx 10U
|
|
#define BIT_SLP_EN 13U
|
|
#define BIT_WAK_STS 15U
|
|
|
|
extern struct pm_s_state_data host_pm_s_state;
|
|
|
|
extern uint8_t host_enter_s3_success;
|
|
|
|
int enter_s3(struct acrn_vm *vm, uint32_t pm1a_cnt_val, uint32_t pm1b_cnt_val);
|
|
extern void asm_enter_s3(struct acrn_vm *vm, uint32_t pm1a_cnt_val,
|
|
uint32_t pm1b_cnt_val);
|
|
extern void restore_s3_context(void);
|
|
|
|
#endif /* HOST_PM_H */
|