Xen Test Framework
|
x86 HPET register definitions and utility functions. More...
Go to the source code of this file.
Macros | |
#define | HPET_ID 0x0 |
#define | HPET_ID_MAX_PERIOD 0x05f5e100 |
#define | HPET_ID_NUMBER_MASK 0x1f00 |
#define | HPET_CFG 0x010 |
#define | HPET_CFG_ENABLE 0x001 |
#define | HPET_COUNTER 0x0f0 |
#define | HPET_Tn_CFG(n) (0x100 + (n) * 0x20) |
#define | HPET_Tn_CMP(n) (0x108 + (n) * 0x20) |
#define | HPET_DEFAULT_BASE 0xfed00000 |
Functions | |
int | hpet_init (void) |
Discover and initialise the HPET. More... | |
static uint32_t | hpet_read32 (unsigned int reg) |
static uint64_t | hpet_read64 (unsigned int reg) |
static void | hpet_write32 (unsigned int reg, uint32_t val) |
static void | hpet_write64 (unsigned int reg, uint64_t val) |
static uint64_t | hpet_read_counter (void) |
Fetch the HPET main counter register. More... | |
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. More... | |
Variables | |
unsigned int | hpet_nr_timers |
x86 HPET register definitions and utility functions.
NB: assume the HPET is at it's default address.
Definition in file hpet.h.
int hpet_init | ( | void | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |