2018-07-06 13:24:45 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) <2018> Intel Corporation
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
#ifndef _DM_INCLUDE_PM_
|
|
|
|
#define _DM_INCLUDE_PM_
|
|
|
|
|
2021-05-07 15:47:35 +08:00
|
|
|
#define PWR_EVENT_NOTIFY_IOC 0x1
|
|
|
|
#define PWR_EVENT_NOTIFY_PWR_BT 0x2
|
|
|
|
#define PWR_EVENT_NOTIFY_UART 0x3
|
|
|
|
#define PWR_EVENT_NOTIFY_UART_TRIG_PLAT_S5 0x4
|
2019-09-05 15:30:46 +08:00
|
|
|
|
2021-04-07 18:20:09 +08:00
|
|
|
enum vm_suspend_how {
|
|
|
|
VM_SUSPEND_NONE = 0,
|
|
|
|
VM_SUSPEND_SYSTEM_RESET,
|
|
|
|
VM_SUSPEND_FULL_RESET,
|
|
|
|
VM_SUSPEND_POWEROFF,
|
|
|
|
VM_SUSPEND_SUSPEND,
|
|
|
|
VM_SUSPEND_HALT,
|
|
|
|
VM_SUSPEND_TRIPLEFAULT,
|
|
|
|
VM_SUSPEND_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
struct vmctx;
|
2018-07-06 13:24:45 +08:00
|
|
|
int wait_for_resume(struct vmctx *ctx);
|
|
|
|
int vm_resume(struct vmctx *ctx);
|
|
|
|
int vm_monitor_resume(void *arg);
|
|
|
|
int vm_monitor_query(void *arg);
|
|
|
|
|
|
|
|
#endif
|