summary refs log tree commit diff stats
path: root/include/hw/riscv/virt.h
diff options
context:
space:
mode:
authorSunil V L <sunilvl@ventanamicro.com>2023-03-02 14:42:08 +0530
committerPalmer Dabbelt <palmer@rivosinc.com>2023-03-06 11:35:04 -0800
commit7da2fb240f9750d9a6fd2dac1397ec18b512a1b5 (patch)
tree3792f9d17194cb38a7011c99463b7b5bbdb59a96 /include/hw/riscv/virt.h
parent71302ff3bc9fbcceeb3ad7e6bb724ea942b5bba1 (diff)
downloadfocaccia-qemu-7da2fb240f9750d9a6fd2dac1397ec18b512a1b5.tar.gz
focaccia-qemu-7da2fb240f9750d9a6fd2dac1397ec18b512a1b5.zip
hw/riscv/virt: Enable basic ACPI infrastructure
Add basic ACPI infrastructure for RISC-V with below tables.
        1) DSDT with below basic objects
                - CPUs
                - fw_cfg
        2) FADT revision 6 with HW_REDUCED flag
        3) XSDT
        4) RSDP

Add this functionality in a new file virt-acpi-build.c and enable
building this infrastructure.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Message-ID: <20230302091212.999767-5-sunilvl@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'include/hw/riscv/virt.h')
-rw-r--r--include/hw/riscv/virt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h
index 379501edcc..e5c474b26e 100644
--- a/include/hw/riscv/virt.h
+++ b/include/hw/riscv/virt.h
@@ -126,4 +126,5 @@ enum {
                                  1 + FDT_APLIC_INT_CELLS)
 
 bool virt_is_acpi_enabled(RISCVVirtState *s);
+void virt_acpi_setup(RISCVVirtState *vms);
 #endif