1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12 #ifndef __ASM_SH_TIMER_H 13 #define __ASM_SH_TIMER_H 14 15 #include <linux/sysdev.h> 16 #include <linux/clocksource.h> 17 #include <cpu/timer.h> 18 19 struct sys_timer_ops { 20 int (*init)(void); 21 int (*start)(void); 22 int (*stop)(void); 23 cycle_t (*read)(void); 24 }; 25 26 struct sys_timer { 27 const char *name; 28 29 struct sys_device dev; 30 struct sys_timer_ops *ops; 31 }; 32 33 #define TICK_SIZE (tick_nsec / 1000) 34 35 struct sys_timer *get_sys_timer(void); 36 37 #endif 38