timerd.inc 1.6 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. AROS conversion
  8. Copyright (c) 2011 Marcus Sackrow
  9. See the file COPYING.FPC, included in this distribution,
  10. for details about the copyright.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. **********************************************************************}
  15. { * timer.device definitions
  16. *********************************************************************
  17. * }
  18. const // Checked OK 04.08.2011 ALB
  19. UNIT_MICROHZ = 0;
  20. UNIT_VBLANK = 1;
  21. UNIT_ECLOCK = 2;
  22. UNIT_WAITUNTIL = 3;
  23. UNIT_WAITECLOCK = 4;
  24. const // Checked OK 04.08.2011 ALB
  25. TIMERNAME = 'timer.device';
  26. type // Checked OK 04.08.2011 ALB
  27. PTimeVal = ^TTimeVal;
  28. TTimeVal = record
  29. tv_secs : DWord;
  30. tv_micro: DWord;
  31. end;
  32. type // Checked OK 04.08.2011 ALB
  33. PEClockVal = ^TEClockVal;
  34. TEClockVal = record
  35. ev_hi: DWord;
  36. ev_lo: DWord;
  37. end;
  38. type // Checked OK 04.08.2011 ALB
  39. PTimeRequest = ^TTimeRequest;
  40. TTimeRequest = record
  41. tr_node: TIORequest;
  42. tr_time: TTimeVal;
  43. end;
  44. const // Checked OK 04.08.2011 ALB
  45. TR_ADDREQUEST = (CMD_NONSTD + 0);
  46. TR_GETSYSTIME = (CMD_NONSTD + 1);
  47. TR_SETSYSTIME = (CMD_NONSTD + 2);