revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / kernel / acpi.h
blob206ecdc0dc19fc83ffe602c0a9f55c94d9a52454
1 #ifndef KERNEL_ACPI_H
2 #define KERNEL_ACPI_H
3 /*
4 Copyright © 2017, The AROS Development Team. All rights reserved.
5 $Id$
7 Desc: Generic AROS ACPI definitions.
8 Lang: english
9 */
11 #include <utility/hooks.h>
12 #include <acpica/actbl.h>
14 struct ACPIData {
15 struct List acpi_tablehooks;
16 ULONG acpi_apicCnt;
17 ULONG acpi_ioapicCnt;
19 /* cached pointers to the ACPI Tables */
20 CONST_APTR acpi_fadt; /* FADT pointer */
21 CONST_APTR acpi_madt; /* MADT pointer */
24 struct ACPI_TABLE_HOOK {
25 struct Node acpith_Node;
26 struct Hook acpith_Hook;
27 ULONG acpith_HeaderLen;
28 UINT8 acpith_EntryType;
29 APTR acpith_UserData;
32 struct ACPI_TABLESCAN_DATA {
33 ACPI_TABLE_HEADER *acpits_Table;
34 APTR acpits_UserData;
37 typedef void(acpi_supportinit_t)(struct PlatformData *);
38 void acpi_Init(struct PlatformData *pdata);
39 int acpi_ScanTableEntries(CONST ACPI_TABLE_HEADER *, ULONG, UINT8, const struct Hook *, APTR);
41 #endif /* !KERNEL_ACPI_H */