mirror of
https://git.stationery.faith/corn/corn.git
synced 2024-11-09 16:02:08 +00:00
24 lines
489 B
C
24 lines
489 B
C
#pragma once
|
|
|
|
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);
|