StuBS
Loading...
Searching...
No Matches
lapic_registers.h File Reference

Structures and macros for accessing the local APIC. More...

#include "types.h"
Include dependency graph for lapic_registers.h:

Namespaces

namespace  LAPIC
 Abstracts the local APIC (which is integrated into every CPU core)
 

Enumerations

enum  LAPIC::Index : uint16_t {
  LAPIC::IDENTIFICATION = 0x020 , LAPIC::VERSION = 0x030 , LAPIC::TASK_PRIORITY = 0x080 , LAPIC::EOI = 0x0b0 ,
  LAPIC::LOGICAL_DESTINATION = 0x0d0 , LAPIC::DESTINATION_FORMAT = 0x0e0 , LAPIC::SPURIOUS_INTERRUPT_VECTOR = 0x0f0 , LAPIC::INTERRUPT_COMMAND_REGISTER_LOW = 0x300 ,
  LAPIC::INTERRUPT_COMMAND_REGISTER_HIGH = 0x310 , LAPIC::TIMER_CONTROL = 0x320 , LAPIC::TIMER_INITIAL_COUNTER = 0x380 , LAPIC::TIMER_CURRENT_COUNTER = 0x390 ,
  LAPIC::TIMER_DIVIDE_CONFIGURATION = 0x3e0
}
 Register Offset Index. More...
 

Functions

Register LAPIC::read (Index idx)
 Get value from APIC register.
 
void LAPIC::write (Index idx, Register value)
 Write value to APIC register.
 

Detailed Description

Structures and macros for accessing the local APIC.