1 /*
2  * Copyright (C) 2018-2022 Intel Corporation.
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef	_DM_INCLUDE_PM_
6 #define	_DM_INCLUDE_PM_
7 
8 #define	PWR_EVENT_NOTIFY_IOC			0x1
9 #define	PWR_EVENT_NOTIFY_PWR_BT			0x2
10 #define	PWR_EVENT_NOTIFY_UART			0x3
11 #define	PWR_EVENT_NOTIFY_UART_TRIG_PLAT_S5	0x4
12 
13 enum vm_suspend_how {
14 	VM_SUSPEND_NONE = 0,
15 	VM_SUSPEND_SYSTEM_RESET,
16 	VM_SUSPEND_FULL_RESET,
17 	VM_SUSPEND_POWEROFF,
18 	VM_SUSPEND_SUSPEND,
19 	VM_SUSPEND_HALT,
20 	VM_SUSPEND_TRIPLEFAULT,
21 	VM_SUSPEND_LAST
22 };
23 
24 struct vmctx;
25 int wait_for_resume(struct vmctx *ctx);
26 int vm_resume(struct vmctx *ctx);
27 int vm_monitor_resume(void *arg);
28 int vm_monitor_query(void *arg);
29 
30 #endif
31