home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / devices / timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  684 b   |  39 lines

  1. #ifndef DEVICES_TIMER_H
  2. #define DEVICES_TIMER_H
  3. /*
  4. **    $Filename: devices/timer.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_IO_H
  14. #include "exec/io.h"
  15. #endif EXEC_IO_H
  16.  
  17. /* unit defintions */
  18. #define UNIT_MICROHZ    0
  19. #define UNIT_VBLANK    1
  20.  
  21. #define TIMERNAME    "timer.device"
  22.  
  23. struct timeval {
  24.     ULONG tv_secs;
  25.     ULONG tv_micro;
  26. };
  27.  
  28. struct timerequest {
  29.     struct IORequest tr_node;
  30.     struct timeval tr_time;
  31. };
  32.  
  33. /* IO_COMMAND to use for adding a timer */
  34. #define TR_ADDREQUEST    CMD_NONSTD
  35. #define TR_GETSYSTIME    (CMD_NONSTD+1)
  36. #define TR_SETSYSTIME    (CMD_NONSTD+2)
  37.  
  38. #endif    /* DEVICES_TIMER_H */
  39.