timerd.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. This file is part of the Free Pascal run time library.
  3. timer.device definitions (V50) for MorphOS/PowerPC
  4. Copyright (c) 2002-3 The MorphOS Development Team, All Rights Reserved.
  5. Free Pascal conversion
  6. Copyright (c) 2004 Karoly Balogh for Genesi S.a.r.l. <www.genesi.lu>
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. { * timer.device definitions (V50)
  14. *********************************************************************
  15. * }
  16. {$PACKRECORDS 2}
  17. const
  18. UNIT_MICROHZ = 0;
  19. UNIT_VBLANK = 1;
  20. UNIT_ECLOCK = 2;
  21. UNIT_WAITUNTIL = 3;
  22. UNIT_WAITECLOCK = 4;
  23. { *** V50 *** }
  24. UNIT_CPUCLOCK = 5;
  25. UNIT_WAITCPUCLOCK = 6;
  26. const
  27. TIMERNAME = 'timer.device';
  28. type
  29. PTimeVal = ^TTimeVal;
  30. TTimeVal = record
  31. tv_secs : DWord;
  32. tv_micro: DWord;
  33. end;
  34. type
  35. PEClockVal = ^TEClockVal;
  36. TEClockVal = record
  37. ev_hi: DWord;
  38. ev_lo: DWord;
  39. end;
  40. type
  41. PTimeRequest = ^TTimeRequest;
  42. TTimeRequest = record
  43. tr_node: TIORequest;
  44. tr_time: TTimeVal;
  45. end;
  46. const
  47. TR_ADDREQUEST = (CMD_NONSTD);
  48. TR_GETSYSTIME = (CMD_NONSTD + 1);
  49. TR_SETSYSTIME = (CMD_NONSTD + 2);