Enumerator |
---|
CAPS_AND_ID |
|
CONFIG |
|
COUNTER_VALUE |
|
MAX_OFFSET |
|
CounterHPET::CounterHPET |
( |
| ) |
|
|
inline |
Status CounterHPET::Activate |
( |
| ) |
|
|
inlinevirtual |
u64 CounterHPET::Counter |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- the current value of the counter (all but the lower CounterBits() bits must be zero)
Implements ICounter.
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.
bool CounterHPET::IsSafe |
( |
| ) |
const |
|
inlinevirtual |
static Status CounterHPET::MapRegisters |
( |
volatile void *& |
registers | ) |
|
|
inlinestaticprivate |
virtual const char* 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.
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.
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:
- /var/svn/checkout/source/lib/sysdep/os/win/whrt/hpet.cpp