acpi: move aml builder code for serial device
commitdcdbfaafe90a5e6e172368b2aa5500a9ca192e49
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 15 May 2020 15:04:10 +0000 (15 17:04 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jun 2020 16:46:45 +0000 (9 12:46 -0400)
treeccbac9501f251a9621373900605d665e8d4647a1
parent4b8e369b91deff3ae7d8ae1067d336a66464f472
acpi: move aml builder code for serial device

The code uses the isa_serial_io array to figure what the device uid is.
Side effect is that acpi antries are not limited to port 1+2 any more,
we'll also get entries for ports 3+4.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200515150421.25479-6-kraxel@redhat.com>
hw/char/serial-isa.c
hw/i386/acpi-build.c