2023-06-07 13:40:36 -07:00
|
|
|
#pragma once
|
|
|
|
|
2023-08-01 20:18:47 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-06-07 13:40:36 -07:00
|
|
|
void InspectApic();
|
|
|
|
|
|
|
|
void EnableApic();
|
|
|
|
|
2023-08-01 20:18:47 -07:00
|
|
|
#define LAPIC_TIMER_ONESHOT 0
|
|
|
|
#define LAPIC_TIMER_PERIODIC 1 << 17
|
|
|
|
|
|
|
|
void SetLocalTimer(uint32_t init_cnt, uint64_t mode);
|
|
|
|
uint32_t GetLocalTimer();
|
|
|
|
|
|
|
|
void UnmaskPit();
|
|
|
|
void MaskPit();
|
|
|
|
|
2023-06-07 13:40:36 -07:00
|
|
|
void SignalEOI();
|