From add6efeb22ffb7695d5c9addcef073fc653f700e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Feb 2020 17:22:17 +0100 Subject: Well basically nothing really works I guess I've worked quite a while on several small things which I didn't commit but I'm going away for a week (holiday) soooo I synced these useless and dumb files :) --- src/kernel/acpi/acpi.h | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'src/kernel/acpi/acpi.h') 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; -- cgit v1.2.3