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