LF OS
Hobby operating system for amd64 with high ambitions
|
Go to the source code of this file.
Data Structures | |
struct | hpet_mmio |
struct | hpet_acpi_table |
Functions | |
struct hpet_mmio | __attribute__ ((packed)) |
void | init_hpet (struct acpi_table_header *header) |
void | sc_handle_clock_read (uint64_t *nanoseconds) |
struct hpet_acpi_table |
Data Fields | ||
---|---|---|
uint8_t | _reserved: 1 | |
struct acpi_address | base_address | |
uint8_t | count_size_cap: 1 | |
uint8_t | hardware_revision | |
struct acpi_table_header | header | |
uint8_t | hpet_number | |
uint8_t | legacy_replacement_irq_cap: 1 | |
uint16_t | main_counter_minimum_clock_tick | |
uint8_t | num_comparators: 5 | |
uint8_t | oem: 4 | |
uint8_t | page_protection: 4 | |
uint16_t | pci_vendor_id |
struct hpet_mmio __attribute__ | ( | (packed) | ) |
Definition at line 28 of file hpet.c.
References _reserved1.
void init_hpet | ( | struct acpi_table_header * | header | ) |
Definition at line 104 of file hpet.c.
References acpi_address_space_memory, acpi_address::address, acpi_address::address_space, ALLOCATOR_REGION_SLAB_4K, hpet_acpi_table::base_address, hpet_acpi_table::hardware_revision, header, hpet, initialization_ticks, logd, loge, logi, hpet_acpi_table::num_comparators, hpet_acpi_table::pci_vendor_id, ticks_to_ns_multiplier, vm_context_find_free(), vm_context_map(), and VM_KERNEL_CONTEXT.
void sc_handle_clock_read | ( | uint64_t * | nanoseconds | ) |
struct acpi_address base_address |
struct acpi_table_header header |