1 #ifndef HWACPIBUTTON_INTERN_H
2 #define HWACPIBUTTON_INTERN_H
4 #include <proto/acpica.h>
6 #include <exec/libraries.h>
10 #include <hidd/hidd.h>
11 #include <hidd/acpibutton.h>
13 #include <acpica/acnames.h>
14 #include <acpica/accommon.h>
16 struct HWACPIButtonData
18 ACPI_HANDLE acpib_Handle
;
19 struct Task
*acpib_ServiceTask
;
20 struct Hook
*acpib_Hook
;
22 BYTE acpib_ServiceShutdown
;
23 BYTE acpib_ServiceSleep
;
24 BYTE acpib_ServiceLid
;
27 struct acpibuttonclass_staticdata
29 struct Library
*cs_OOPBase
;
30 struct Library
*cs_UtilityBase
;
31 struct Library
*cs_ACPICABase
;
36 ACPI_HANDLE acpiPowerBHandle
;
38 ACPI_HANDLE acpiSleepBHandle
;
40 ACPI_HANDLE acpibLidBHandle
;
42 OOP_Object
*powerButtonObj
;
43 OOP_Object
*sleepButtonObj
;
44 OOP_Object
*lidButtonObj
;
48 OOP_AttrBase hwACPIButtonAB
;
53 struct HWACPIButtonIntBase
55 struct Library hsi_LibNode
;
57 struct acpibuttonclass_staticdata hsi_csd
;
60 #define CSD(x) (&((struct HWACPIButtonIntBase *)x->UserData)->hsi_csd)
63 #define __IHW_ACPIButton (_csd->hwACPIButtonAB)
64 #define __IHW (_csd->hwAB)
65 #define __IHidd (_csd->hiddAB)
67 #define OOPBase (_csd->cs_OOPBase)
69 #endif /* !HWACPIBUTTON_INTERN_H */