1 #ifndef __LUNAIX_ACPI_ACPI_H
2 #define __LUNAIX_ACPI_ACPI_H
6 #include <arch/x86/boot/multiboot.h>
12 // * for quick conversion from a table name into ACPI favoured signature
13 // * use `echo <TableName> | xxd -eg4`
15 #define ACPI_RSDP_SIG_L 0x20445352 // 'RSD '
16 #define ACPI_RSDP_SIG_H 0x20525450 // 'PTR '
18 #define ACPI_MADT_SIG 0x43495041 // 'APIC'
19 #define ACPI_FADT_SIG 0x50434146 // 'FACP' Notice that it is not 'FADT'.
32 char reserved[3]; // Reserved field
33 } __attribute__((packed)) acpi_rsdp_t;
36 * @brief Main TOC of ACPI tables, provide hassle-free access of ACPI info.
41 // Make it as null terminated
48 acpi_init(multiboot_info_t* mb_info);
53 #endif /* __LUNAIX_ACPI_ACPI_H */