diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-09-08 11:01:14 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-10-05 10:55:39 +0000 |
commit | 1d3e89f3490f05a20df0470a21767d063587a596 (patch) | |
tree | 8e62f886b89cde28791e276e2200bdcaa5d5dbac /OvmfPkg/Include/IndustryStandard | |
parent | bf02d73e74ec2825551126c780df726cc543cfb0 (diff) | |
download | edk2-1d3e89f3490f05a20df0470a21767d063587a596.tar.gz edk2-1d3e89f3490f05a20df0470a21767d063587a596.tar.bz2 edk2-1d3e89f3490f05a20df0470a21767d063587a596.zip |
OvmfPkg/ResetSystemLib: add driver for microvm
Uses the generic event device to reset and poweroff.
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3599
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/Include/IndustryStandard')
-rw-r--r-- | OvmfPkg/Include/IndustryStandard/Microvm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/Microvm.h b/OvmfPkg/Include/IndustryStandard/Microvm.h index c56547c4f2..ae0c2e5311 100644 --- a/OvmfPkg/Include/IndustryStandard/Microvm.h +++ b/OvmfPkg/Include/IndustryStandard/Microvm.h @@ -9,4 +9,11 @@ #define MICROVM_PSEUDO_DEVICE_ID 0xfff1
+/* generic event device */
+#define MICROVM_GED_MMIO_BASE 0xfea00000
+#define MICROVM_GED_MMIO_BASE_REGS (MICROVM_GED_MMIO_BASE + 0x200)
+#define MICROVM_ACPI_GED_REG_SLEEP_CTL 0x00
+#define MICROVM_ACPI_GED_REG_RESET 0x02
+#define MICROVM_ACPI_GED_RESET_VALUE 0x42
+
#endif // __MICROVM_H__
|