mirror of https://github.com/xemu-project/xemu.git
hw/acpi/piix4: Move TYPE_PIIX4_PM to a public header
Move the TYPE_PIIX4_PM definition to the corresponding header, so other files can use it. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190427144025.22880-2-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
39adb536b3
commit
f5e0a8f42f
|
@ -92,8 +92,6 @@ typedef struct PIIX4PMState {
|
||||||
MemHotplugState acpi_memory_hotplug;
|
MemHotplugState acpi_memory_hotplug;
|
||||||
} PIIX4PMState;
|
} PIIX4PMState;
|
||||||
|
|
||||||
#define TYPE_PIIX4_PM "PIIX4_PM"
|
|
||||||
|
|
||||||
#define PIIX4_PM(obj) \
|
#define PIIX4_PM(obj) \
|
||||||
OBJECT_CHECK(PIIX4PMState, (obj), TYPE_PIIX4_PM)
|
OBJECT_CHECK(PIIX4PMState, (obj), TYPE_PIIX4_PM)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef HW_ACPI_PIIX4_H
|
#ifndef HW_ACPI_PIIX4_H
|
||||||
#define HW_ACPI_PIIX4_H
|
#define HW_ACPI_PIIX4_H
|
||||||
|
|
||||||
|
#define TYPE_PIIX4_PM "PIIX4_PM"
|
||||||
|
|
||||||
Object *piix4_pm_find(void);
|
Object *piix4_pm_find(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue