sh: clkfwk: Convert SH-Mobile CPUs to use CLK_ENABLE_ON_INIT.
[linux-2.6] / arch / sh / include / asm / timer.h
1 #ifndef __ASM_SH_TIMER_H
2 #define __ASM_SH_TIMER_H
3
4 #include <linux/sysdev.h>
5 #include <linux/clocksource.h>
6 #include <cpu/timer.h>
7
8 struct sys_timer_ops {
9         int (*init)(void);
10         int (*start)(void);
11         int (*stop)(void);
12 };
13
14 struct sys_timer {
15         const char              *name;
16
17         struct sys_device       dev;
18         struct sys_timer_ops    *ops;
19 };
20
21 extern struct sys_timer tmu_timer;
22 extern struct sys_timer *sys_timer;
23
24 /* arch/sh/kernel/timers/timer.c */
25 struct sys_timer *get_sys_timer(void);
26
27 extern struct clocksource clocksource_sh;
28
29 #endif /* __ASM_SH_TIMER_H */