home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / devs / timer.h < prev   
Encoding:
C/C++ Source or Header  |  1978-03-06  |  616 b   |  38 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id$
  4.  
  5.     Desc: Headerfile for timer.device
  6.     Lang: english
  7. */
  8. #ifndef _TIMER_H
  9. #define _TIMER_H
  10. #include <aros/libcall.h>
  11. #include <exec/execbase.h>
  12. #include <exec/devices.h>
  13.  
  14. struct TimeRequest
  15. {
  16.     struct MinNode Node;
  17.     ULONG count;
  18. };
  19.  
  20. struct timerbase
  21. {
  22.     struct Device device;
  23.     struct ExecBase *sysbase;
  24.     struct MinList us; /* Requests for 1us */
  25.     BPTR seglist;
  26. };
  27.  
  28. #define expunge() \
  29. __AROS_LC0(BPTR, expunge, struct timerbase *, timerbase, 3, timer)
  30.  
  31. #ifdef SysBase
  32. #   undef SysBase
  33. #endif
  34. #define SysBase timerbase->sysbase
  35.  
  36. #endif
  37.  
  38.