diff options
author | Song Gao <gaosong@loongson.cn> | 2023-01-10 11:29:16 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2023-03-03 09:37:30 +0800 |
commit | 0d588c4f999699a430b32c563fe9ccc1710b8fd7 (patch) | |
tree | 4f6c295522ceacbac5add653f20714f2e04a0dcf /include/hw/loongarch | |
parent | c77432d0efc56273347eb5d8619935052e5ad0a6 (diff) |
hw/loongarch/virt: add system_powerdown hmp command support
For loongarch virt machine, add powerdown notification callback
and send ACPI_POWER_DOWN_STATUS event by acpi ged. Also add
acpi dsdt table for ACPI_POWER_BUTTON_DEVICE device in this
patch.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230303010548.295580-1-gaosong@loongson.cn>
Diffstat (limited to 'include/hw/loongarch')
-rw-r--r-- | include/hw/loongarch/virt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h index f5f818894e..7ae8a91229 100644 --- a/include/hw/loongarch/virt.h +++ b/include/hw/loongarch/virt.h @@ -45,6 +45,7 @@ struct LoongArchMachineState { /* State for other subsystems/APIs: */ FWCfgState *fw_cfg; Notifier machine_done; + Notifier powerdown_notifier; OnOffAuto acpi; char *oem_id; char *oem_table_id; |