Implement APIC, RTC, basic ACPI parser and timer support
[lunaix-os.git] / lunaix-os / includes / hal / acpi / sdt.h
1 #ifndef __LUNAIX_ACPI_SDT_H
2 #define __LUNAIX_ACPI_SDT_H
3
4 #include <stdint.h>
5
6 typedef struct
7 {
8     uint32_t signature;
9     uint32_t length;
10     // Revision
11     uint8_t rev;
12     uint8_t chksum;
13     char oem_id[6];
14     char oem_table_id[8];
15     uint32_t oem_rev;
16     uint32_t vendor_id;
17     uint32_t vendor_rev;
18 } __attribute__((packed)) acpi_sdthdr_t;
19
20 typedef struct
21 {
22     acpi_sdthdr_t header;
23     acpi_sdthdr_t* entry;
24 } __attribute__((packed)) acpi_rsdt_t;
25
26 #endif /* __LUNAIX_ACPI_SDT_H */