#pragma once

#define IA32_APIC_BASE_MSR          0x1B
#define IA32_APIC_BASE_MSR_BSP      0x100
#define IA32_APIC_BASE_MSR_ENABLE   0x800

#define LAPIC_REG_ID           0x20
#define LAPIC_REG_TPR          0x80
#define LAPIC_REG_EOI          0xB0
#define LAPIC_REG_SVR          0xF0

#define LAPIC_REG_CMD0         0x300
#define LAPIC_REG_CMD1         0x310

#define LAPIC_REG_LVTT         0x320

#define LAPIC_REG_TMRINITCNT   0x380
#define LAPIC_REG_TMRCURRCNT   0x390
#define LAPIC_REG_TMRDIV       0x3E0
