1 #ifndef _KERNEL_TIMER_H 2 #define _KERNEL_TIMER_H 3 4 /** 5 * @file kernel/timer.h 6 * @brief Timer structures and definitions 7 */ 8 9 #include <stage2.h> 10 #include <KernelExport.h> 11 12 /** 13 * @defgroup Timer Timer structures (not architecture specific) 14 * @ingroup OpenBeOS_Kernel 15 * @{ 16 */ 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif /* __cplusplus */ 21 22 /** kernel functions */ 23 int timer_init(kernel_args *); 24 int timer_interrupt(void); 25 26 /** these two are only to be used by the scheduler */ 27 int local_timer_cancel_event(timer *event); 28 int _local_timer_cancel_event(int curr_cpu, timer *event); 29 30 #ifdef __cplusplus 31 } 32 #endif /* __cplusplus */ 33 34 /** @} */ 35 36 #endif /* _KERNEL_TIMER_H */ 37 38