acpi: pc: isa bridge: use AcpiDevAmlIf interface to build ISA device descriptors
commit92ea7fb3fe311d30905e12a962b22a38251c1a79
authorIgor Mammedov <imammedo@redhat.com>
Wed, 8 Jun 2022 13:53:24 +0000 (8 09:53 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Jun 2022 23:32:49 +0000 (9 19:32 -0400)
tree7f29bb0589d064ceda30b85bd4616730dcfb0f60
parent6a4b286ced99377652f1ae0963e69ccac8c3df3b
acpi: pc: isa bridge: use AcpiDevAmlIf interface to build ISA device descriptors

replaces ad-hoc build_isa_devices_aml() with generic AcpiDevAmlIf
way to build bridge AML including all devices that are attached to
its ISA bus.

Later when PCI is converted to AcpiDevAmlIf, build_piix4_isa_bridge()
will also be dropped since PCI parts itself will take care of
building device prologue/epilogue AML for each enumerated PCI
device.

Expected AML change is contextual, where ISA devices are moved
from separately declared _SB.PCI0.ISA scope , directly under
Device(ISA) node.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20220608135340.3304695-20-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/isa/piix3.c