2003-05-03 20:03:26 +04:00
|
|
|
/*
|
2004-03-14 21:03:18 +03:00
|
|
|
** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
2003-05-03 20:03:26 +04:00
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
2002-07-09 16:24:59 +04:00
|
|
|
#ifndef _KERNEL_TIMER_H
|
|
|
|
#define _KERNEL_TIMER_H
|
|
|
|
|
2002-07-21 02:53:23 +04:00
|
|
|
|
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
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2003-05-03 20:03:26 +04:00
|
|
|
#endif
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2004-03-14 21:03:18 +03:00
|
|
|
struct kernel_args;
|
|
|
|
|
2003-05-03 20:03:26 +04:00
|
|
|
/* kernel functions */
|
2004-03-14 21:03:18 +03:00
|
|
|
status_t timer_init(struct kernel_args *);
|
|
|
|
int32 timer_interrupt(void);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2004-03-14 21:03:18 +03:00
|
|
|
/* this one is only to be used by the scheduler */
|
|
|
|
status_t _local_timer_cancel_event(int currentCPU, timer *event);
|
2002-07-21 02:53:23 +04:00
|
|
|
|
2002-07-21 03:06:32 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2003-05-03 20:03:26 +04:00
|
|
|
#endif
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-05-03 20:03:26 +04:00
|
|
|
#endif /* _KERNEL_TIMER_H */
|