#ifndef SYS_TIMER_H #define SYS_TIMER_H #include "typedef.h" #include "generic/list.h" struct static_sys_timer { void (*func)(void *priv); void *priv; u32 msec; u32 jiffies; }; struct sys_usec_timer { void (*func)(void *priv); void *priv; const char *owner; struct sys_cpu_timer *timer; }; #define SYS_HI_TIMER_ADD(_func, _priv, _msec) \ static struct static_sys_timer hi_timer sec(.hi_timer) = { \ .func = _func, \ .priv = _priv, \ .msec = _msec, \ } extern struct static_sys_timer static_hi_timer_begin[]; extern struct static_sys_timer static_hi_timer_end[]; #define list_for_each_static_hi_timer(p) \ for (p=static_hi_timer_begin; p