50 bool level,
bool periodic,
bool mode32bit)
void hpet_init_timer(unsigned int nr, unsigned int irq, uint64_t ticks, bool level, bool periodic, bool mode32bit)
Setup and enable a specific HPET timer.
int hpet_init(void)
Discover and initialise the HPET.
unsigned int hpet_nr_timers
x86 HPET register definitions and utility functions.
#define HPET_ID_NUMBER_MASK
static void hpet_write64(unsigned int reg, uint64_t val)
#define HPET_ID_MAX_PERIOD
static void hpet_write32(unsigned int reg, uint32_t val)
static uint64_t hpet_read64(unsigned int reg)