dm: pm: move host power button related code out of pm.c

For the code which forwards the native power button event to
guest, they are not related with guest pm related operation
emulation. Move this part of code out of pm.c. And will make
the power button as one possible method to notify guest about
the shutdown operation.

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>
This commit is contained in:
Yin Fengwei
2019-09-05 14:54:28 +08:00
committed by ACRN System Integration
parent ca51cc9d8a
commit 1041384993
4 changed files with 241 additions and 207 deletions

View File

@@ -59,5 +59,8 @@ void dsdt_unindent(int levels);
void sci_init(struct vmctx *ctx);
void pm_write_dsdt(struct vmctx *ctx, int ncpu);
void pm_backto_wakeup(struct vmctx *ctx);
void inject_power_button_event(struct vmctx *ctx);
void power_button_init(struct vmctx *ctx);
void power_button_deinit(struct vmctx *ctx);
#endif /* _ACPI_H_ */