2 * Copyright (c) 1993-1995, 1999-2000 Apple Computer, Inc.
5 * @APPLE_LICENSE_HEADER_START@
7 * The contents of this file constitute Original Code as defined in and
8 * are subject to the Apple Public Source License Version 1.1 (the
9 * "License"). You may not use this file except in compliance with the
10 * License. Please obtain a copy of the License at
11 * http://www.apple.com/publicsource and read it before using this file.
13 * This Original Code and all software distributed under the License are
14 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
18 * License for the specific language governing rights and limitations
21 * @APPLE_LICENSE_HEADER_END@
24 * Declarations for timer interrupt callouts.
28 * 20 December 2000 (debo)
32 #ifndef _KERN_TIMER_CALL_H_
33 #define _KERN_TIMER_CALL_H_
35 #include <libkern/OSBase.h>
37 #include <mach/mach_types.h>
39 #ifdef MACH_KERNEL_PRIVATE
41 typedef struct call_entry
*timer_call_t
;
42 typedef void *timer_call_param_t
;
43 typedef void (*timer_call_func_t
)(
44 timer_call_param_t param0
,
45 timer_call_param_t param1
);
50 AbsoluteTime deadline
);
55 timer_call_param_t param1
,
56 AbsoluteTime deadline
);
63 timer_call_is_delayed(
65 AbsoluteTime
*deadline
);
67 #include <kern/call_entry.h>
69 typedef struct call_entry timer_call_data_t
;
72 timer_call_initialize(void);
77 timer_call_func_t func
,
78 timer_call_param_t param0
);
80 #endif /* MACH_KERNEL_PRIVATE */
82 #endif /* _KERN_TIMER_CALL_H_ */