|
PatchworkOS
321f6ec
A non-POSIX operating system.
|
Advanced Programmable Interrupt Controller Timer. More...
Advanced Programmable Interrupt Controller Timer.
Each local APIC is associated with a timer which can be used to generate interrupts at specific intervals, or as we use it, to generate a single interrupt after a specified time.
Enumerations | |
| enum | apic_timer_mode_t { APIC_TIMER_MASKED = 0x10000 , APIC_TIMER_PERIODIC = 0x20000 , APIC_TIMER_ONE_SHOT = 0x00000 } |
| APIC Timer Modes. More... | |
| enum | apic_timer_divider_t { APIC_TIMER_DIV_16 = 0x3 , APIC_TIMER_DIV_32 = 0x4 , APIC_TIMER_DIV_64 = 0x5 , APIC_TIMER_DIV_128 = 0x6 , APIC_TIMER_DIV_DEFAULT = APIC_TIMER_DIV_16 } |
| APIC Timer Divider Values. More... | |
Functions | |
| uint64_t | apic_timer_init (void) |
| Initialize the APIC timer subsystem. | |
| enum apic_timer_mode_t |
APIC Timer Modes.
| Enumerator | |
|---|---|
| APIC_TIMER_MASKED | Timer is masked (disabled) |
| APIC_TIMER_PERIODIC | |
| APIC_TIMER_ONE_SHOT | |
Definition at line 22 of file apic_timer.h.
| enum apic_timer_divider_t |
APIC Timer Divider Values.
| Enumerator | |
|---|---|
| APIC_TIMER_DIV_16 | |
| APIC_TIMER_DIV_32 | |
| APIC_TIMER_DIV_64 | |
| APIC_TIMER_DIV_128 | |
| APIC_TIMER_DIV_DEFAULT | |
Definition at line 33 of file apic_timer.h.
| uint64_t apic_timer_init | ( | void | ) |
Initialize the APIC timer subsystem.
0. On failure, ERR. Definition at line 86 of file apic_timer.c.