aboutsummaryrefslogtreecommitdiff
path: root/sys/include/dev/acpi
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-04 22:17:28 -0400
committerIan Moffett <ian@osmora.org>2024-06-04 22:17:28 -0400
commitefb3cd0e2ad09f409d66534d44ff07a55e9f1171 (patch)
treeeabf718014e1e03490c49a8a4adba2f30385e015 /sys/include/dev/acpi
parentf04bb79fcab54e1ec3a03706e9c02f50a7317cd6 (diff)
kernel/amd64: acpi: Support parsing MADT
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/acpi')
-rw-r--r--sys/include/dev/acpi/acpivar.h2
-rw-r--r--sys/include/dev/acpi/tables.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/include/dev/acpi/acpivar.h b/sys/include/dev/acpi/acpivar.h
index 9a37dfb..9cfe945 100644
--- a/sys/include/dev/acpi/acpivar.h
+++ b/sys/include/dev/acpi/acpivar.h
@@ -35,6 +35,8 @@
uint8_t acpi_checksum(struct acpi_header *hdr);
struct acpi_root_sdt *acpi_get_root_sdt(void);
+
size_t acpi_get_root_sdt_len(void);
+int acpi_init_madt(void);
#endif /* !_ACPI_ACPIVAR_H_ */
diff --git a/sys/include/dev/acpi/tables.h b/sys/include/dev/acpi/tables.h
index d5bfd52..1dca890 100644
--- a/sys/include/dev/acpi/tables.h
+++ b/sys/include/dev/acpi/tables.h
@@ -33,6 +33,11 @@
#include <sys/types.h>
#include <sys/cdefs.h>
+/* MADT APIC header types */
+#define APIC_TYPE_LOCAL_APIC 0
+#define APIC_TYPE_IO_APIC 1
+#define APIC_TYPE_INTERRUPT_OVERRIDE 2
+
#define OEMID_SIZE 6
struct __packed acpi_header {