mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 04:02:05 +00:00
Now, we have two ways to notify guest about power managment event: - ioc on MRB platforms - ACPI power button on other platforms And we hardcode which one is used now. In coming change, we will add UART based guest notify method. We add dm command option to select which method will be used when launch UOS. Tracked-On: #3564 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Wang Yu <yu1.wang@intel.com>
18 lines
392 B
C
18 lines
392 B
C
/*
|
|
* Copyright (C) <2018> Intel Corporation
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef _DM_INCLUDE_PM_
|
|
#define _DM_INCLUDE_PM_
|
|
|
|
#define PWR_EVENT_NOTIFY_IOC 0x1
|
|
#define PWR_EVENT_NOTIFY_PWR_BT 0x2
|
|
#define PWR_EVENT_NOTIFY_UART 0x3
|
|
|
|
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
|