X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a0655e5d30f3cdc73b1aaaa4825d8fae9f92ce4a..ae23ad2227bd97df4b464937b1dd54a0f3702148:/lunaix-os/includes/hal/acpi/acpi.h diff --git a/lunaix-os/includes/hal/acpi/acpi.h b/lunaix-os/includes/hal/acpi/acpi.h index 326a8d0..453e9f4 100644 --- a/lunaix-os/includes/hal/acpi/acpi.h +++ b/lunaix-os/includes/hal/acpi/acpi.h @@ -7,11 +7,16 @@ #include "sdt.h" #include "madt.h" +#include "fadt.h" + +// * for quick conversion from a table name into ACPI favoured signature +// * use `echo | xxd -eg4` #define ACPI_RSDP_SIG_L 0x20445352 // 'RSD ' #define ACPI_RSDP_SIG_H 0x20525450 // 'PTR ' #define ACPI_MADT_SIG 0x43495041 // 'APIC' +#define ACPI_FADT_SIG 0x50434146 // 'FACP' Notice that it is not 'FADT'. typedef struct { uint32_t signature_l; @@ -36,6 +41,7 @@ typedef struct // Make it as null terminated char oem_id[7]; acpi_madt_toc_t madt; + acpi_fadt_t fadt; } acpi_context; int