2002-07-09 16:24:59 +04:00
|
|
|
#ifndef _KERNEL_TIMER_H
|
|
|
|
#define _KERNEL_TIMER_H
|
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
/**
|
|
|
|
* @file kernel/timer.h
|
|
|
|
* @brief Timer structures and definitions
|
|
|
|
*/
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
#include <stage2.h>
|
2002-10-26 20:13:36 +04:00
|
|
|
#include <KernelExport.h>
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
/**
|
|
|
|
* @defgroup Timer Timer structures (not architecture specific)
|
|
|
|
* @ingroup OpenBeOS_Kernel
|
|
|
|
* @{
|
|
|
|
*/
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
/** kernel functions */
|
2002-07-09 16:24:59 +04:00
|
|
|
int timer_init(kernel_args *);
|
|
|
|
int timer_interrupt(void);
|
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
/** these two are only to be used by the scheduler */
|
|
|
|
int local_timer_cancel_event(timer *event);
|
|
|
|
int _local_timer_cancel_event(int curr_cpu, timer *event);
|
|
|
|
|
2002-07-21 03:06:32 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
/** @} */
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
#endif /* _KERNEL_TIMER_H */
|
2002-07-09 16:24:59 +04:00
|
|
|
|