i386/acpi: make floppy controller object dynamic
commit9b613f4e40ff869da00e6268e9901efc18d31b5a
authorRoman Kagan <rkagan@virtuozzo.com>
Wed, 17 Feb 2016 18:25:30 +0000 (17 21:25 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 12:55:15 +0000 (11 14:55 +0200)
tree1062e63d36b4ef51f6415926131dd8ba6b6b5f17
parentc9f4b77ad5783bd84bca4ab99d4b3d6ee61de01c
i386/acpi: make floppy controller object dynamic

Instead of statically declaring the floppy controller in DSDT, with its
_STA method depending on some obscure bit in the parent ISA bridge, add
the object dynamically to DSDT via AML API only when the controller is
present.

The _STA method is no longer necessary and is therefore dropped.  So are
the declarations of the fields indicating whether the contoller is
enabled.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: John Snow <jsnow@redhat.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Kevin O'Connor <kevin@koconnor.net>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c