diff options
author | Igor Mammedov <imammedo@redhat.com> | 2018-02-28 15:23:53 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-03-13 23:09:50 +0200 |
commit | 8612f8bd9fb667c62e9a56c67ab2e3af2798dd9c (patch) | |
tree | f017e3a7c5614603694146003447b2099b183d4d /include/hw/acpi | |
parent | 5d7a334f7c40dcb6aab3e4496ac826e813ccdb07 (diff) | |
download | qemu-8612f8bd9fb667c62e9a56c67ab2e3af2798dd9c.zip qemu-8612f8bd9fb667c62e9a56c67ab2e3af2798dd9c.tar.gz qemu-8612f8bd9fb667c62e9a56c67ab2e3af2798dd9c.tar.bz2 |
acpi: move build_fadt() from i386 specific to generic ACPI source
It will be extended and reused by follow up patch for ARM target.
PS:
Since it's generic function now, don't patch FIRMWARE_CTRL, DSDT
fields if they don't point to tables since platform might not
provide them and use X_ variants instead if applicable.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/acpi')
-rw-r--r-- | include/hw/acpi/aml-build.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index 8692ccc..6c36903 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -413,4 +413,7 @@ void build_srat_memory(AcpiSratMemoryAffinity *numamem, uint64_t base, uint64_t len, int node, MemoryAffinityFlags flags); void build_slit(GArray *table_data, BIOSLinker *linker); + +void build_fadt(GArray *tbl, BIOSLinker *linker, const AcpiFadtData *f, + const char *oem_id, const char *oem_table_id); #endif |