Removed autodocs of arch specific variants of ROM modules.
[AROS.git] / arch / ppc-chrp / efika / timer / readeclock.c
blob1b951716e27afc053e856c61451572bc3215c3e7
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ReadEClock() - read the base frequency of timers.
6 Lang: english
7 */
9 #include <devices/timer.h>
10 #include <proto/timer.h>
11 #include <proto/exec.h>
13 #include <asm/mpc5200b.h>
15 #include "lowlevel.h"
17 /* See rom/timer/readeclock.c for documentation */
19 AROS_LH1(ULONG, ReadEClock,
20 AROS_LHA(struct EClockVal *, dest, A0),
21 struct TimerBase *, TimerBase, 10, Timer)
23 AROS_LIBFUNC_INIT
25 Disable();
27 EClockUpdate(TimerBase);
29 dest->ev_hi = TimerBase->tb_ticks_total >> 32;
30 dest->ev_lo = TimerBase->tb_ticks_total & 0xffffffff;
32 Enable();
33 return 33000000;
35 AROS_LIBFUNC_EXIT
36 } /* CmpTime */