revert between 56095 -> 55830 in arch
[AROS.git] / rom / hidds / acpi / button / acpibutton_intern.h
blob6e7089755a87e000f692c9d34dbb0d9e7ff5ccd3
1 #ifndef HWACPIBUTTON_INTERN_H
2 #define HWACPIBUTTON_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 HWACPIButtonData
18 ACPI_HANDLE acpib_Handle;
19 struct Task *acpib_ServiceTask;
20 struct Hook *acpib_Hook;
21 ULONG acpib_Type;
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;
32 BPTR cs_SegList;
34 OOP_Class *oopclass;
36 ACPI_HANDLE acpiPowerBHandle;
37 ULONG acpiPowerBType;
38 ACPI_HANDLE acpiSleepBHandle;
39 ULONG acpiSleepBType;
40 ACPI_HANDLE acpibLidBHandle;
42 OOP_Object *powerButtonObj;
43 OOP_Object *sleepButtonObj;
44 OOP_Object *lidButtonObj;
46 OOP_AttrBase hwAB;
47 OOP_AttrBase hiddAB;
48 OOP_AttrBase hwACPIButtonAB;
51 /* Library base */
53 struct HWACPIButtonIntBase
55 struct Library hsi_LibNode;
57 struct acpibuttonclass_staticdata hsi_csd;
60 #define CSD(x) (&((struct HWACPIButtonIntBase *)x->UserData)->hsi_csd)
61 #define _csd CSD(cl)
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 */