diff options
author | Igor Mammedov <imammedo@redhat.com> | 2022-06-08 09:53:29 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-06-09 19:32:49 -0400 |
commit | 1d7ea915003a2064dc542ffee8d02104a2dee728 (patch) | |
tree | c41379f119e199bd7cd925a8eac77c69c0c887ed /include | |
parent | cde55744e9bcaefe1fbce6194a21bb3b7b9c2ae7 (diff) | |
download | qemu-1d7ea915003a2064dc542ffee8d02104a2dee728.zip qemu-1d7ea915003a2064dc542ffee8d02104a2dee728.tar.gz qemu-1d7ea915003a2064dc542ffee8d02104a2dee728.tar.bz2 |
acpi: applesmc: use AcpiDevAmlIfClass:build_dev_aml to provide device's AML
.. and clean up not longer needed conditionals in DSTD build
code. applesmc AML will be fetched and included when ISA bridge
will build its own AML code (incl. 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-25-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/isa/isa.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h index 5c5a3d4..6f93800 100644 --- a/include/hw/isa/isa.h +++ b/include/hw/isa/isa.h @@ -16,20 +16,6 @@ OBJECT_DECLARE_TYPE(ISADevice, ISADeviceClass, ISA_DEVICE) #define TYPE_ISA_BUS "ISA" OBJECT_DECLARE_SIMPLE_TYPE(ISABus, ISA_BUS) -#define TYPE_APPLE_SMC "isa-applesmc" -#define APPLESMC_MAX_DATA_LENGTH 32 -#define APPLESMC_PROP_IO_BASE "iobase" - -static inline uint16_t applesmc_port(void) -{ - Object *obj = object_resolve_path_type("", TYPE_APPLE_SMC, NULL); - - if (obj) { - return object_property_get_uint(obj, APPLESMC_PROP_IO_BASE, NULL); - } - return 0; -} - #define TYPE_ISADMA "isa-dma" typedef struct IsaDmaClass IsaDmaClass; |