Paul Mundt | aa01666 | 2006-01-16 22:14:18 -0800 | [diff] [blame] | 1 | #ifndef __ASM_SH_TIMER_H |
| 2 | #define __ASM_SH_TIMER_H |
| 3 | |
| 4 | #include <linux/sysdev.h> |
Paul Mundt | 57be2b4 | 2007-05-09 17:33:24 +0900 | [diff] [blame] | 5 | #include <linux/clocksource.h> |
Paul Mundt | f15cbe6 | 2008-07-29 08:09:44 +0900 | [diff] [blame] | 6 | #include <cpu/timer.h> |
Paul Mundt | aa01666 | 2006-01-16 22:14:18 -0800 | [diff] [blame] | 7 | |
| 8 | struct sys_timer_ops { |
| 9 | int (*init)(void); |
Andriy Skulysh | 3aa770e | 2006-09-27 16:20:22 +0900 | [diff] [blame] | 10 | int (*start)(void); |
| 11 | int (*stop)(void); |
Paul Mundt | aa01666 | 2006-01-16 22:14:18 -0800 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | struct sys_timer { |
| 15 | const char *name; |
| 16 | |
| 17 | struct sys_device dev; |
| 18 | struct sys_timer_ops *ops; |
| 19 | }; |
| 20 | |
Paul Mundt | aa01666 | 2006-01-16 22:14:18 -0800 | [diff] [blame] | 21 | extern struct sys_timer *sys_timer; |
| 22 | |
Paul Mundt | aa01666 | 2006-01-16 22:14:18 -0800 | [diff] [blame] | 23 | /* arch/sh/kernel/timers/timer.c */ |
| 24 | struct sys_timer *get_sys_timer(void); |
| 25 | |
Magnus Damm | 955c077 | 2009-01-22 09:55:31 +0000 | [diff] [blame] | 26 | extern struct clocksource clocksource_sh; |
Paul Mundt | aa01666 | 2006-01-16 22:14:18 -0800 | [diff] [blame] | 27 | |
| 28 | #endif /* __ASM_SH_TIMER_H */ |