diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-15 12:04:08 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-15 12:04:08 -0400 |
commit | fa8bf187448d93e5c4c0ddeaf6c7fbb384d1b946 (patch) | |
tree | f3fce2ad413cb5763f01b6d53e1f49d8f307238c /src/sys/include | |
parent | f7b9f5b81c0eab172f2090daedc5f212c84d247a (diff) |
kernel/amd64: Move ioapic_read_madt() to acpi_subr
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/acpi/acpi.h | 16 |
1 files changed, 16 insertions, 0 deletions
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_ */ |