try to detect the button devices.
[AROS.git] / rom / hidds / acpi / button / acpibutton_intern.h
bloba436ace9bd8ac56868d4aae53ae315821eac904e
1 #ifndef HIDDACPIBUTTON_INTERN_H
2 #define HIDDACPIBUTTON_INTERN_H
4 #include <proto/acpica.h>
6 #include <exec/libraries.h>
7 #include <dos/bptr.h>
8 #include <oop/oop.h>
10 #include <hidd/hidd.h>
11 #include <hidd/acpibutton.h>
13 #include <acpica/acnames.h>
14 #include <acpica/accommon.h>
16 struct HIDDACPIButtonData
18 ACPI_HANDLE acpib_Handle;
19 ULONG acpib_Type;
22 struct class_static_data
24 struct Library *cs_OOPBase;
25 struct Library *cs_UtilityBase;
26 struct Library *cs_ACPICABase;
27 BPTR cs_SegList;
29 OOP_Class *oopclass;
31 ACPI_HANDLE acpiPowerBHandle;
32 ULONG acpiPowerBType;
33 ACPI_HANDLE acpiSleepBHandle;
34 ULONG acpiSleepBType;
35 ACPI_HANDLE acpibLidBHandle;
37 OOP_Object *powerButtonObj;
38 OOP_Object *sleepButtonObj;
39 OOP_Object *lidButtonObj;
41 OOP_AttrBase hwAB;
42 OOP_AttrBase hiddAB;
43 OOP_AttrBase hiddACPIButtonAB;
46 /* Library base */
48 struct HiddACPIButtonIntBase
50 struct Library hsi_LibNode;
52 struct class_static_data hsi_csd;
55 #define CSD(x) (&((struct HiddACPIButtonIntBase *)x->UserData)->hsi_csd)
57 #define __abHidd_ACPIButton (CSD(cl)->hiddACPIButtonAB)
58 #define __IHW (CSD(cl)->hwAB)
59 #define __IHidd (CSD(cl)->hiddAB)
61 #endif /* !HIDDACPIBUTTON_INTERN_H */