Definition at line 46 of file hpet.cpp.
Enumerator |
---|
CAPS_AND_ID |
|
CONFIG |
|
COUNTER_VALUE |
|
MAX_OFFSET |
|
Definition at line 128 of file hpet.cpp.
CounterHPET::CounterHPET |
( |
| ) |
|
|
inline |
Status CounterHPET::Activate |
( |
| ) |
|
|
inlinevirtual |
u64 CounterHPET::Counter |
( |
| ) |
const |
|
inlinevirtual |
size_t CounterHPET::CounterBits |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- the bit width of the counter (<= 64) WHRT uses this to ensure the counter (running at nominal frequency) doesn't overflow more than once during CALIBRATION_INTERVAL_MS.
Implements ICounter.
Definition at line 98 of file hpet.cpp.
bool CounterHPET::IsSafe |
( |
| ) |
const |
|
inlinevirtual |
static Status CounterHPET::MapRegisters |
( |
volatile void *& |
registers | ) |
|
|
inlinestaticprivate |
virtual const wchar_t* CounterHPET::Name |
( |
| ) |
const |
|
inlinevirtual |
double CounterHPET::NominalFrequency |
( |
| ) |
const |
|
inlinevirtual |
initial measurement of the tick rate.
not necessarily correct (e.g. when using TSC: os_cpu_ClockFrequency isn't exact).
Implements ICounter.
Definition at line 103 of file hpet.cpp.
u64 CounterHPET::Read64 |
( |
size_t |
offset | ) |
const |
|
inlineprivate |
double CounterHPET::Resolution |
( |
| ) |
const |
|
inlinevirtual |
actual resolution [s].
differs from 1/NominalFrequency if the timer adjustment is greater than 1 tick.
Implements ICounter.
Definition at line 108 of file hpet.cpp.
void CounterHPET::Shutdown |
( |
| ) |
|
|
inlinevirtual |
Status CounterHPET::VerifyCapabilities |
( |
double & |
frequency, |
|
|
u32 & |
counterBits |
|
) |
| const |
|
inlineprivate |
void CounterHPET::Write64 |
( |
size_t |
offset, |
|
|
u64 |
value |
|
) |
| const |
|
inlineprivate |
u32 CounterHPET::m_counterBits |
|
private |
double CounterHPET::m_frequency |
|
private |
volatile void* CounterHPET::m_hpetRegisters |
|
private |
The documentation for this class was generated from the following file:
- /home/sathyam/0ad.svn/source/lib/sysdep/os/win/whrt/hpet.cpp