summaryrefslogtreecommitdiff
path: root/sys/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/inc')
-rw-r--r--sys/inc/acpi/acpi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/inc/acpi/acpi.h b/sys/inc/acpi/acpi.h
index d9a2a47..29837ba 100644
--- a/sys/inc/acpi/acpi.h
+++ b/sys/inc/acpi/acpi.h
@@ -31,6 +31,7 @@
#define _ACPI_ACPI_H_ 1
#include <sys/types.h>
+#include <acpi/tables.h>
/*
* Initialize the ACPI subsystem
@@ -42,4 +43,12 @@ void acpi_init(void);
*/
void *acpi_query(const char *s);
+/*
+ * Acquire a MADT entry by type
+ */
+int acpi_read_madt(
+ uint32_t type, int(*cb)(struct apic_header *h, size_t arg),
+ size_t arg
+);
+
#endif /* !_ACPI_ACPI_H_ */