blob: ff298f3008ad99ea38a60c785753360f2d7186ec [file] [log] [blame]
Tony SIM1d7a8942010-01-28 17:04:55 +09001/****************************************************************************
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
19struct sys_timer_ops {
20 int (*init)(void);
21 int (*start)(void);
22 int (*stop)(void);
23 cycle_t (*read)(void);
24};
25
26struct 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
35struct sys_timer *get_sys_timer(void);
36
37#endif