2018-06-14 10:11:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) <2018> Intel Corporation
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HOST_PM_H
|
|
|
|
|
2018-06-14 22:25:40 +08:00
|
|
|
#define BIT_SLP_TYPx 10U
|
|
|
|
#define BIT_SLP_EN 13U
|
2018-06-14 10:50:34 +08:00
|
|
|
#define BIT_WAK_STS 15U
|
|
|
|
|
2018-06-14 22:25:40 +08:00
|
|
|
extern uint8_t host_enter_s3_success;
|
|
|
|
|
2018-06-14 10:50:34 +08:00
|
|
|
int enter_s3(struct vm *vm, uint32_t pm1a_cnt_val,
|
|
|
|
uint32_t pm1b_cnt_val);
|
2018-06-14 10:11:57 +08:00
|
|
|
extern void __enter_s3(struct vm *vm, uint32_t pm1a_cnt_val,
|
|
|
|
uint32_t pm1b_cnt_val);
|
|
|
|
extern void restore_s3_context(void);
|
|
|
|
|
|
|
|
#endif /* ARCH_X86_PM_H */
|