summaryrefslogtreecommitdiff
path: root/include/acpi.h
blob: 637ccd23a03fa1a2c634ef4b3f4befb8d54ba63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);