1 #ifndef __LUNAIX_ACPI_ACPI_H
2 #define __LUNAIX_ACPI_ACPI_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'.
21 // 'MCFG' (Not part of ACPI standard. See PCI Firmware Spec.)
22 #define ACPI_MCFG_SIG 0x4746434d
36 char reserved[3]; // Reserved field
37 } __attribute__((packed)) acpi_rsdp_t;
40 * @brief Main TOC of ACPI tables, provide hassle-free access of ACPI info.
45 // Make it as null terminated
49 struct acpi_mcfg_toc mcfg;
59 acpi_gsimap(u8_t old_irq);
61 #endif /* __LUNAIX_ACPI_ACPI_H */