timerd.inc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. const
  17. UNIT_MICROHZ = 0;
  18. UNIT_VBLANK = 1;
  19. UNIT_ECLOCK = 2;
  20. UNIT_WAITUNTIL = 3;
  21. UNIT_WAITECLOCK = 4;
  22. { *** V50 *** }
  23. UNIT_CPUCLOCK = 5;
  24. UNIT_WAITCPUCLOCK = 6;
  25. const
  26. TIMERNAME = 'timer.device';
  27. type
  28. PTimeVal = ^TTimeVal;
  29. TTimeVal = packed record
  30. tv_secs : DWord;
  31. tv_micro: DWord;
  32. end;
  33. type
  34. PEClockVal = ^TEClockVal;
  35. TEClockVal = packed record
  36. ev_hi: DWord;
  37. ev_lo: DWord;
  38. end;
  39. type
  40. PTimeRequest = ^TTimeRequest;
  41. TTimeRequest = packed record
  42. tr_node: TIORequest;
  43. tr_time: TTimeVal;
  44. end;
  45. const
  46. TR_ADDREQUEST = (CMD_NONSTD);
  47. TR_GETSYSTIME = (CMD_NONSTD + 1);
  48. TR_SETSYSTIME = (CMD_NONSTD + 2);