1 #ifndef ACPI_DEV_INTERFACE_H
2 #define ACPI_DEV_INTERFACE_H
4 #include "qom/object.h"
5 #include "qapi-types.h"
7 #define TYPE_ACPI_DEVICE_IF "acpi-device-interface"
9 #define ACPI_DEVICE_IF_CLASS(klass) \
10 OBJECT_CLASS_CHECK(AcpiDeviceIfClass, (klass), \
12 #define ACPI_DEVICE_IF_GET_CLASS(obj) \
13 OBJECT_GET_CLASS(AcpiDeviceIfClass, (obj), \
15 #define ACPI_DEVICE_IF(obj) \
16 INTERFACE_CHECK(AcpiDeviceIf, (obj), \
20 typedef struct AcpiDeviceIf
{
28 * ospm_status: returns status of ACPI device objects, reported
29 * via _OST method if device supports it.
31 * Interface is designed for providing unified interface
32 * to generic ACPI functionality that could be used without
33 * knowledge about internals of actual device that implements
36 typedef struct AcpiDeviceIfClass
{
38 InterfaceClass parent_class
;
41 void (*ospm_status
)(AcpiDeviceIf
*adev
, ACPIOSTInfoList
***list
);