The ACPI Header.
More...
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
|
| struct sdt | __attribute__ ((packed)) |
| | AHCI command header structure.
|
|
void | acpi_init () |
| | Initializes and iterates through all ACPI tables.
|
| void * | acpi_find_sdt (const char *signature, size_t index) |
| | Searches for an STD Header in the ACPI Tables.
|
| void | acpi_reboot (uintptr_t hhdm_offset) |
| | Reboots using ACPI, if ACPI is unresponsive it tires hard reset and then triple fault.
|
The ACPI Header.
- Author
- Pradosh & Mintsuki (https://github.com/mintsuki)
- Version
- 0.1
- Date
- 2023-10-29
- Copyright
- Copyright (C) 2019-2023 mintsuki and contributors.
Definition in file acpi.h.
◆ __attribute__()
| struct sdt __attribute__ |
( |
(packed) | | ) |
|
AHCI command header structure.
AHCI command table structure.
Physical Region Descriptor Table (PRDT) entry.
Represents the command header for a single AHCI port.
AHCI command header structure.
Definition at line 1 of file ahci.h.
◆ acpi_find_sdt()
| void * acpi_find_sdt |
( |
const char * | signature, |
|
|
size_t | index ) |
Searches for an STD Header in the ACPI Tables.
- Parameters
-
| signature | Signature of the requested STD Header |
| index | The index of the requested SDT Header |
- Returns
- Address of the ACPI Table
◆ acpi_reboot()
| void acpi_reboot |
( |
uintptr_t | hhdm_offset | ) |
|
Reboots using ACPI, if ACPI is unresponsive it tires hard reset and then triple fault.
- Parameters
-
| hhdm_offset | The HHDM Offset offered by Limine bootloader. |
◆ __attribute__
Physical Region Descriptor Table (PRDT) entry.
AHCI command table structure.
Definition at line 57 of file ahci.h.
◆ checksum
Definition at line 3 of file acpi.h.
◆ creator_id
Definition at line 7 of file acpi.h.
◆ creator_rev
Definition at line 8 of file acpi.h.
◆ length
Definition at line 1 of file acpi.h.
◆ oem_id
Definition at line 4 of file acpi.h.
◆ oem_rev
Definition at line 6 of file acpi.h.
◆ oem_table_id
Definition at line 5 of file acpi.h.
◆ rev
Definition at line 2 of file acpi.h.
◆ signature
Definition at line 0 of file acpi.h.