1 #ifndef __LUNAIX_ACPI_ACPI_H
2 #define __LUNAIX_ACPI_ACPI_H
9 // * for quick conversion from a table name into ACPI favoured signature
10 // * use `echo <TableName> | xxd -eg4`
12 #define ACPI_RSDP_SIG_L 0x20445352 // 'RSD '
13 #define ACPI_RSDP_SIG_H 0x20525450 // 'PTR '
15 #define ACPI_MADT_SIG 0x43495041 // 'APIC'
16 #define ACPI_FADT_SIG 0x50434146 // 'FACP' Notice that it is not 'FADT'.
18 // 'MCFG' (Not part of ACPI standard. See PCI Firmware Spec.)
19 #define ACPI_MCFG_SIG 0x4746434d
33 char reserved[3]; // Reserved field
34 } __attribute__((packed)) acpi_rsdp_t;
37 * @brief Main TOC of ACPI tables, provide hassle-free access of ACPI info.
42 // Make it as null terminated
46 struct acpi_mcfg_toc mcfg;
53 acpi_gsimap(u8_t old_irq);
55 #endif /* __LUNAIX_ACPI_ACPI_H */