PatchworkOS  321f6ec
A non-POSIX operating system.
Loading...
Searching...
No Matches
APIC Timer

Advanced Programmable Interrupt Controller Timer. More...

Collaboration diagram for APIC Timer:

Detailed Description

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.

See also
ACPI Specification Version 6.6

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.
 

Enumeration Type Documentation

◆ 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.

◆ 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.

Function Documentation

◆ apic_timer_init()

uint64_t apic_timer_init ( void  )

Initialize the APIC timer subsystem.

Returns
On success, 0. On failure, ERR.

Definition at line 86 of file apic_timer.c.

Here is the call graph for this function:
Here is the caller graph for this function: