Xen Test Framework
Data Structures | Functions | Variables
hpet.c File Reference

Basic x86 HPET driver. More...

#include <xtf/lib.h>
#include <xen/errno.h>
#include <arch/hpet.h>
+ Include dependency graph for hpet.c:

Go to the source code of this file.

Data Structures

union  hpet_timer
 

Functions

int hpet_init (void)
 Discover and initialise the HPET. 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
 

Detailed Description

Basic x86 HPET driver.

Definition in file hpet.c.

Function Documentation

◆ hpet_init()

int hpet_init ( void  )

Discover and initialise the HPET.

May fail if there is no HPET.

Definition at line 29 of file hpet.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hpet_init_timer()

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.

Definition at line 49 of file hpet.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ hpet_nr_timers

unsigned int hpet_nr_timers

Definition at line 13 of file hpet.c.