diff options
author | Igor Mammedov <imammedo@redhat.com> | 2022-06-08 09:53:33 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-06-09 19:32:49 -0400 |
commit | ff36e90e7c12c0bfdb43737614f8ef7c3bc35bd1 (patch) | |
tree | ee8427ebecb15a411316e6d2bf4cd1b124304427 /include/hw/misc/pvpanic.h | |
parent | fd7bcffe5988d799f37e4ad92cfd1480ce7a9ce6 (diff) | |
download | qemu-ff36e90e7c12c0bfdb43737614f8ef7c3bc35bd1.zip qemu-ff36e90e7c12c0bfdb43737614f8ef7c3bc35bd1.tar.gz qemu-ff36e90e7c12c0bfdb43737614f8ef7c3bc35bd1.tar.bz2 |
acpi: pvpanic-isa: use AcpiDevAmlIfClass:build_dev_aml to provide device's AML
.. and clean up not longer needed conditionals in DSTD build code
pvpanic-isa AML will be fetched and included when ISA bridge will
build its own AML code (including attached devices).
Expected AML change:
the device under separate _SB.PCI0.ISA scope is moved directly
under Device(ISA) node.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20220608135340.3304695-29-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/misc/pvpanic.h')
-rw-r--r-- | include/hw/misc/pvpanic.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/hw/misc/pvpanic.h b/include/hw/misc/pvpanic.h index 7f16cc9..e520566 100644 --- a/include/hw/misc/pvpanic.h +++ b/include/hw/misc/pvpanic.h @@ -33,13 +33,4 @@ struct PVPanicState { void pvpanic_setup_io(PVPanicState *s, DeviceState *dev, unsigned size); -static inline uint16_t pvpanic_port(void) -{ - Object *o = object_resolve_path_type("", TYPE_PVPANIC_ISA_DEVICE, NULL); - if (!o) { - return 0; - } - return object_property_get_uint(o, PVPANIC_IOPORT_PROP, NULL); -} - #endif |