15ArmGenericTimerEnableTimer (
21 TimerCtrlReg = ArmReadCntvCtl ();
22 TimerCtrlReg |= ARM_ARCH_TIMER_ENABLE;
23 ArmWriteCntvCtl (TimerCtrlReg);
28ArmGenericTimerReenableTimer (
34 TimerCtrlReg = ArmReadCntvCtl ();
35 TimerCtrlReg |= ARM_ARCH_TIMER_ENABLE;
43 TimerCtrlReg &= ~ARM_ARCH_TIMER_IMASK;
44 ArmWriteCntvCtl (TimerCtrlReg);
49ArmGenericTimerDisableTimer (
55 TimerCtrlReg = ArmReadCntvCtl ();
56 TimerCtrlReg &= ~ARM_ARCH_TIMER_ENABLE;
57 ArmWriteCntvCtl (TimerCtrlReg);
62ArmGenericTimerSetTimerFreq (
66 ArmWriteCntFrq (FreqInHz);
71ArmGenericTimerGetTimerFreq (
75 return ArmReadCntFrq ();
80ArmGenericTimerGetTimerVal (
84 return ArmReadCntvTval ();
89ArmGenericTimerSetTimerVal (
93 ArmWriteCntvTval (Value);
98ArmGenericTimerGetSystemCount (
102 return ArmReadCntvCt ();
107ArmGenericTimerGetTimerCtrlReg (
111 return ArmReadCntvCtl ();
116ArmGenericTimerSetTimerCtrlReg (
120 ArmWriteCntvCtl (Value);
125ArmGenericTimerGetCompareVal (
129 return ArmReadCntvCval ();
134ArmGenericTimerSetCompareVal (
138 ArmWriteCntvCval (Value);