diff options
Diffstat (limited to 'src/kernel/acpi/acpi.h')
-rw-r--r-- | src/kernel/acpi/acpi.h | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/kernel/acpi/acpi.h b/src/kernel/acpi/acpi.h index 43cb61e..8544090 100644 --- a/src/kernel/acpi/acpi.h +++ b/src/kernel/acpi/acpi.h @@ -43,11 +43,35 @@ struct FADT { char century; }; +struct address_structure { + uint8_t address_space_id; + uint8_t register_bit_width; + uint8_t register_bit_offset; + uint8_t reserved; + uint64_t address; +} __attribute__((packed)); + struct HPET { char signature[4]; - char unneeded[36]; - char base_address[12]; -}; + uint32_t length; + uint8_t revision; + uint8_t checksum; + char oemid[6]; + uint64_t oem_tableid; + uint32_t oem_revision; + uint32_t creator_id; + uint32_t creator_revision; + uint8_t hardware_rev_id; + uint8_t comparator_count:5; + uint8_t counter_size:1; + uint8_t reserved:1; + uint8_t legacy_replacement:1; + uint16_t pci_vendor_id; + struct address_structure address; + uint8_t hpet_number; + uint16_t minimum_tick; + uint8_t page_protection; +} __attribute__((packed)); struct FADT *fadt; |