1 /* 2 ** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 ** Distributed under the terms of the OpenBeOS License. 4 */ 5 #ifndef _KERNEL_TIMER_H 6 #define _KERNEL_TIMER_H 7 8 9 #include <KernelExport.h> 10 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 struct kernel_args; 17 18 #define B_TIMER_ACQUIRE_THREAD_LOCK 0x8000 19 #define B_TIMER_FLAGS B_TIMER_ACQUIRE_THREAD_LOCK 20 21 /* kernel functions */ 22 status_t timer_init(struct kernel_args *); 23 int32 timer_interrupt(void); 24 25 #ifdef __cplusplus 26 } 27 #endif 28 29 #endif /* _KERNEL_TIMER_H */ 30