scripts/gdb: Fix a python exception in mtree.py
[qemu/ar7.git] / include / hw / acpi / acpi_dev_interface.h
blobf245f8d2368d2f631384e32f78a6a7d576941411
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), \
11 TYPE_ACPI_DEVICE_IF)
12 #define ACPI_DEVICE_IF_GET_CLASS(obj) \
13 OBJECT_GET_CLASS(AcpiDeviceIfClass, (obj), \
14 TYPE_ACPI_DEVICE_IF)
15 #define ACPI_DEVICE_IF(obj) \
16 INTERFACE_CHECK(AcpiDeviceIf, (obj), \
17 TYPE_ACPI_DEVICE_IF)
20 typedef struct AcpiDeviceIf {
21 /* <private> */
22 Object Parent;
23 } AcpiDeviceIf;
25 /**
26 * AcpiDeviceIfClass:
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
34 * ACPI interface.
36 typedef struct AcpiDeviceIfClass {
37 /* <private> */
38 InterfaceClass parent_class;
40 /* <public> */
41 void (*ospm_status)(AcpiDeviceIf *adev, ACPIOSTInfoList ***list);
42 } AcpiDeviceIfClass;
43 #endif