acpi: ich9-smb: add support for AcpiDevAmlIf interface
commit4b66ddcc4d2d690f11152aeed1097f44ecff1aa4
authorIgor Mammedov <imammedo@redhat.com>
Wed, 8 Jun 2022 13:53:20 +0000 (8 09:53 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Jun 2022 23:32:48 +0000 (9 19:32 -0400)
tree5fdd2f7da4e77c2b1259a32797fb233672b69a7c
parent0f5b3fd7483e3fe8f0c8fc28346a1b0cd91de106
acpi: ich9-smb: add support for AcpiDevAmlIf interface

wire AcpiDevAmlIf interface to build ich9-smb and its slave
devices AML. It will be used by followup patches to switch
from creating AML in ad-hoc way to a more systematic one
that will scan present devices and ask them to provide
their AML code like it's done with ISA devices.

This patch is a partial conversion, as it only fetches
AML from slave devices attached to its I2C bus.

The conversion will be completed when PCI bus is
switched to use AcpiDevAmlIf and build_smb0() could be
dropped.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20220608135340.3304695-16-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i2c/smbus_ich9.c