Preparations for release.
[AROS.git] / compiler / include / devices / timer.h
blobdc5895949aa10600781681449e1826f206a08cb8
1 #ifndef DEVICES_TIMER_H
2 #define DEVICES_TIMER_H
4 /*
5 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Timer device
9 Lang: english
12 #ifndef EXEC_IO_H
13 # include <exec/io.h>
14 #endif
16 #ifndef EXEC_TYPES_H
17 # include <exec/types.h>
18 #endif
20 #define TIMERNAME "timer.device"
22 /* Units */
23 #define UNIT_MICROHZ 0
24 #define UNIT_VBLANK 1
25 #define UNIT_ECLOCK 2
26 #define UNIT_WAITUNTIL 3
27 #define UNIT_WAITECLOCK 4
29 /* IO-Commands */
30 #define TR_ADDREQUEST (CMD_NONSTD+0)
31 #define TR_GETSYSTIME (CMD_NONSTD+1)
32 #define TR_SETSYSTIME (CMD_NONSTD+2)
34 #include <aros/types/timeval_s.h> /* get struct timeval */
36 struct EClockVal
38 ULONG ev_hi;
39 ULONG ev_lo;
42 struct timerequest
44 struct IORequest tr_node;
45 struct timeval tr_time;
48 #endif /* DEVICES_TIMER_H */