]> git.proxmox.com Git - mirror_qemu.git/commitdiff
acpi: move ACPI_PORT_SMI_CMD define to header it belongs to
authorIgor Mammedov <imammedo@redhat.com>
Wed, 28 Feb 2018 14:23:50 +0000 (15:23 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Mar 2018 21:09:50 +0000 (23:09 +0200)
ACPI_PORT_SMI_CMD is alias for APM_CNT_IOPORT,
so make it really one instead of duplicating its value.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/isa/apm.c
include/hw/isa/apm.h

index b85fefe9317f9ef5e70eab8689fbe18bb8b1842d..699f3a005f4122031fa56dcbafe493b6f1978d5f 100644 (file)
@@ -255,8 +255,6 @@ static void acpi_get_pci_holes(Range *hole, Range *hole64)
                                                NULL));
 }
 
-#define ACPI_PORT_SMI_CMD           0x00b2 /* TODO: this is APM_CNT_IOPORT */
-
 static void acpi_align_size(GArray *blob, unsigned align)
 {
     /* Align size to multiple of given size. This reduces the chance
index e232b0da033acb15705fc79585af0f1e4912514b..c3101ef52f570944f76946d4e8ce47312f5a0259 100644 (file)
@@ -34,7 +34,6 @@
 #endif
 
 /* fixed I/O location */
-#define APM_CNT_IOPORT  0xb2
 #define APM_STS_IOPORT  0xb3
 
 static void apm_ioport_writeb(void *opaque, hwaddr addr, uint64_t val,
index 4839ff1df2522202ff028aa3667396c87d7f82d5..b7098bf7caa8d242208f9508313bd35b8965df97 100644 (file)
@@ -5,6 +5,9 @@
 #include "hw/hw.h"
 #include "exec/memory.h"
 
+#define APM_CNT_IOPORT  0xb2
+#define ACPI_PORT_SMI_CMD APM_CNT_IOPORT
+
 typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
 
 typedef struct APMState {