home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id$
-
- Desc: Headerfile for timer.device
- Lang: english
- */
- #ifndef _TIMER_H
- #define _TIMER_H
- #include <aros/libcall.h>
- #include <exec/execbase.h>
- #include <exec/devices.h>
-
- struct TimeRequest
- {
- struct MinNode Node;
- ULONG count;
- };
-
- struct timerbase
- {
- struct Device device;
- struct ExecBase *sysbase;
- struct MinList us; /* Requests for 1us */
- BPTR seglist;
- };
-
- #define expunge() \
- __AROS_LC0(BPTR, expunge, struct timerbase *, timerbase, 3, timer)
-
- #ifdef SysBase
- # undef SysBase
- #endif
- #define SysBase timerbase->sysbase
-
- #endif
-
-