StuBS
hpet.h File Reference

The High Precision Event Timer (HPET). More...

#include "types.h"
Include dependency graph for hpet.h:
This graph shows which files directly or indirectly include this file:

Classes

class  HPET::Comparator
 Class abstracting a single HPET comparator. More...
union  HPET::Comparator::ConfigAndCapabilitiesRegister
 Access Helper for comparators configuration register. More...

Structs

struct  HPET::Comparator::ConfigAndCapabilitiesRegister.__unnamed0__

Namespaces

namespace  HPET
 Abstraction of the HPET existing in "modern" computers (since ~2005).

Enumerations

enum  HPET::CounterSize {
  SIZE_32BIT = 0x0 ,
  SIZE_64BIT = 0x1
}
 Size of the global counter and the comparators.

Functions

bool HPET::init ()
 Initializes the HPET system from ACPI Table.
void HPET::delay (uint64_t usecs)
 Delays the caller's execution by approx.
bool HPET::isEnabled ()
 Checks whether the HPET system is enabled.
void HPET::enable ()
 Activate the HPET system.
void HPET::disable ()
 Deactivate the HPET system.
void HPET::reset ()
 Reset the global counter to zero.
ComparatorHPET::getComparator (size_t n)
 Returns a pointer to the nth timer comparator.
size_t HPET::countComparators ()
 Retrieve the number of HPET comparators.

Detailed Description