]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/input/lib/include/linux/timer.h
Inital import
[l4.git] / l4 / pkg / input / lib / include / linux / timer.h
1 #ifndef _LINUX_TIMER_H
2 #define _LINUX_TIMER_H
3
4 #include <linux/config.h>
5 #include <linux/list.h>
6 //#include <linux/spinlock.h>
7
8 struct timer_list {
9 //      struct list_head entry;
10 //      unsigned long expires;
11
12 //      spinlock_t lock;
13 //      unsigned long magic;
14
15         void (*function)(unsigned long);
16         unsigned long data;
17
18 //      struct tvec_t_base_s *base;
19 };
20
21 static inline void init_timer(struct timer_list * timer)
22 {
23 #if 0
24         timer->base = NULL;
25         timer->magic = TIMER_MAGIC;
26         spin_lock_init(&timer->lock);
27 #endif
28 }
29
30 #if 0
31 static inline int timer_pending(const struct timer_list * timer)
32 {
33         return timer->base != NULL;
34 }
35 #endif
36
37 //#define add_timer_on(x, y)
38 static inline int del_timer(struct timer_list *timer)
39 {
40         return 0;
41 }
42 static inline int mod_timer(struct timer_list *timer, unsigned long expires)
43 {
44         return 0;
45 }
46 #define add_timer(x)
47 #define del_timer_sync(x) del_timer(x)
48
49 #endif
50