timerd.inc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. timer.device definitions (V50) for MorphOS/PowerPC
  5. Copyright (c) 2002-3 The MorphOS Development Team, All Rights Reserved.
  6. Free Pascal conversion
  7. Copyright (c) 2004 Karoly Balogh for Genesi S.a.r.l. <www.genesi.lu>
  8. See the file COPYING.FPC, included in this distribution,
  9. for details about the copyright.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. **********************************************************************}
  14. { * timer.device definitions (V50)
  15. *********************************************************************
  16. * }
  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 = packed record
  31. tv_secs : DWord;
  32. tv_micro: DWord;
  33. end;
  34. type
  35. PEClockVal = ^TEClockVal;
  36. TEClockVal = packed record
  37. ev_hi: DWord;
  38. ev_lo: DWord;
  39. end;
  40. type
  41. PTimeRequest = ^TTimeRequest;
  42. TTimeRequest = packed 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);
  50. {
  51. $Log$
  52. Revision 1.1 2004-06-26 20:46:17 karoly
  53. * initial revision
  54. }