From 2747693fdb5aa334d8b00a04ed81d2234d710ba9 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 27 Jan 2024 02:14:19 -0500 Subject: acpi + lib --- include/acpi.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/acpi.h (limited to 'include/acpi.h') diff --git a/include/acpi.h b/include/acpi.h new file mode 100644 index 0000000..637ccd2 --- /dev/null +++ b/include/acpi.h @@ -0,0 +1,23 @@ + +enum acpi_status { + ACPI_SUCCESS = 0, + ACPI_FAILURE = -1, + ACPI_MALFORMED_TABLE = -2, + ACPI_OLD_VERSION = -4, + ACPI_S5_PARSE_ERROR = -5, +}; + +/** + * Loads the ACPI tables + * https://en.wikipedia.org/wiki/ACPI + * @param rsdp - pointer to the Root System Description Pointer + * usually passed from the bootlater + * @returns ACPI_SUCCESS on success + */ +int acpi_init(void *rsdp); + +/** + * Shutdowns down the system + * @returns ACPI_FAILURE on failure + */ +int acpi_shutdown(void); -- cgit v1.2.3-freya