pc: acpi: isolate FADT specific data into AcpiFadtData structure
commit937d1b58714b4002dd0fb7c3573c42b1c017e61b
authorIgor Mammedov <imammedo@redhat.com>
Wed, 28 Feb 2018 14:23:51 +0000 (28 15:23 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Mar 2018 21:09:50 +0000 (13 23:09 +0200)
tree9b3dbb0432954f4b8150e7329991fe6556678f49
parentf8eaef67a3946cd483cbb77c50cf2ded55c0ddde
pc: acpi: isolate FADT specific data into AcpiFadtData structure

move FADT data initialization out of fadt_setup() into dedicated
init_fadt_data() that will set common for pc/q35 values in
AcpiFadtData structure and acpi_get_pm_info() will complement
it with pc/q35 specific values initialization.

That will allow to get rid of fadt_setup() and generalize
build_fadt() so it could be easily extended for rev5 and
reused by ARM target.

While at it also move facs/dsdt/xdsdt offsets from build_fadt()
arg list into AcpiFadtData, as they belong to the same dataset.

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>
hw/i386/acpi-build.c
include/hw/acpi/acpi-defs.h