From fa8bf187448d93e5c4c0ddeaf6c7fbb384d1b946 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 15 Sep 2025 12:04:08 -0400 Subject: kernel/amd64: Move ioapic_read_madt() to acpi_subr Signed-off-by: Ian Moffett --- src/sys/include/acpi/acpi.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/sys/include/acpi/acpi.h') diff --git a/src/sys/include/acpi/acpi.h b/src/sys/include/acpi/acpi.h index ebc2129..16c1653 100644 --- a/src/sys/include/acpi/acpi.h +++ b/src/sys/include/acpi/acpi.h @@ -74,4 +74,20 @@ void *acpi_query(const char *query); */ int acpi_early_init(void); + +/* + * Read a MADT entry + * + * @type: Type that we should scan for + * @cb: Callback (returns 0 if entry is found) + * @arg: Optional argument + * + * Returns the callback return value, on success, + * otherwise a less than zero value on failure. + */ +int acpi_read_madt( + uint32_t type, int(*cb)(struct apic_header *, size_t arg), + size_t arg +); + #endif /* !_MACHINE_ACPI_H_ */ -- cgit v1.2.3