void write(u32 reg, u32 data)
write to memory mapped I/O register
u32 read(u32 reg) const
read from memory mapped I/O register
virtual Result tick()
Process timer tick.
u32 m_cycles
Number of internal cycles needed to provide the current timer frequency.
virtual Result setFrequency(Size hertz)
Set timer frequency.
virtual Result tick()
Process timer tick.
Size m_int
Timer interrupt number.
Size m_frequency
Frequency of the Timer.
#define BCM_IRQ_SYSTIMERM1
Triggered when the system timer matches the C1 register.
#define BCM_SYSTIMER_FREQ
BCM Sys Timer runs at 1Mhz.
unsigned int Size
Any sane size indicator cannot go negative.