migration: use bitmap_mutex in migration_bitmap_clear_dirty
[qemu.git] / hw / acpi / acpi_interface.c
blob6583917b8e4ce82b0cf48f4ba602b53eecff39f1
1 #include "qemu/osdep.h"
2 #include "hw/acpi/acpi_dev_interface.h"
3 #include "qemu/module.h"
5 void acpi_send_event(DeviceState *dev, AcpiEventStatusBits event)
7 AcpiDeviceIfClass *adevc = ACPI_DEVICE_IF_GET_CLASS(dev);
8 if (adevc->send_event) {
9 AcpiDeviceIf *adev = ACPI_DEVICE_IF(dev);
10 adevc->send_event(adev, event);
14 static void register_types(void)
16 static const TypeInfo acpi_dev_if_info = {
17 .name = TYPE_ACPI_DEVICE_IF,
18 .parent = TYPE_INTERFACE,
19 .class_size = sizeof(AcpiDeviceIfClass),
22 type_register_static(&acpi_dev_if_info);
25 type_init(register_types)