syncconst.inc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. (*
  2. Copyright 1991, 1993, 1994, 1998 The Open Group
  3. Permission to use, copy, modify, distribute, and sell this software and its
  4. documentation for any purpose is hereby granted without fee, provided that
  5. the above copyright notice appear in all copies and that both that
  6. copyright notice and this permission notice appear in supporting
  7. documentation.
  8. The above copyright notice and this permission notice shall be included in
  9. all copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  14. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  15. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  16. Except as contained in this notice, the name of The Open Group shall not be
  17. used in advertising or otherwise to promote the sale, use or other dealings
  18. in this Software without prior written authorization from The Open Group.
  19. *)
  20. (***********************************************************
  21. Copyright 1991,1993 by Digital Equipment Corporation, Maynard, Massachusetts,
  22. and Olivetti Research Limited, Cambridge, England.
  23. All Rights Reserved
  24. Permission to use, copy, modify, and distribute this software and its
  25. documentation for any purpose and without fee is hereby granted,
  26. provided that the above copyright notice appear in all copies and that
  27. both that copyright notice and this permission notice appear in
  28. supporting documentation, and that the names of Digital or Olivetti
  29. not be used in advertising or publicity pertaining to distribution of the
  30. software without specific, written prior permission.
  31. DIGITAL AND OLIVETTI DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  32. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  33. FITNESS, IN NO EVENT SHALL THEY BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  34. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  35. USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  36. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  37. PERFORMANCE OF THIS SOFTWARE.
  38. ******************************************************************)
  39. const
  40. SYNC_NAME = 'SYNC';
  41. SYNC_MAJOR_VERSION = 3;
  42. SYNC_MINOR_VERSION = 1;
  43. XSyncCounterNotify = 0;
  44. XSyncAlarmNotify = 1;
  45. XSyncAlarmNotifyMask = 1 shl XSyncAlarmNotify;
  46. XSyncNumberEvents = 2;
  47. XSyncBadCounter = 0;
  48. XSyncBadAlarm = 1;
  49. XSyncBadFence = 2;
  50. XSyncNumberErrors = XSyncBadFence + 1;
  51. (*
  52. * Flags for Alarm Attributes
  53. *)
  54. XSyncCACounter = 1 shl 0;
  55. XSyncCAValueType = 1 shl 1;
  56. XSyncCAValue = 1 shl 2;
  57. XSyncCATestType = 1 shl 3;
  58. XSyncCADelta = 1 shl 4;
  59. XSyncCAEvents = 1 shl 5;
  60. type
  61. (*
  62. * Constants for the value_type argument of various requests
  63. *)
  64. PXSyncValueType = ^TXSyncValueType;
  65. TXSyncValueType = (
  66. XSyncAbsolute,
  67. XSyncRelative);
  68. (*
  69. * Alarm Test types
  70. *)
  71. PXSyncTestType = ^TXSyncTestType;
  72. TXSyncTestType = (
  73. XSyncPositiveTransition,
  74. XSyncNegativeTransition,
  75. XSyncPositiveComparison,
  76. XSyncNegativeComparison);
  77. (*
  78. * Alarm state constants
  79. *)
  80. PXSyncAlarmState = ^TXSyncAlarmState;
  81. TXSyncAlarmState = (
  82. XSyncAlarmActive,
  83. XSyncAlarmInactive,
  84. XSyncAlarmDestroyed);
  85. PXSyncCounter = ^TXSyncCounter;
  86. TXSyncCounter = TXID;
  87. PXSyncAlarm = ^TXSyncAlarm;
  88. TXSyncAlarm = TXID;
  89. PXSyncFence = ^TXSyncFence;
  90. TXSyncFence = TXID;
  91. PXSyncValue = ^TXSyncValue;
  92. TXSyncValue = record
  93. hi: cint;
  94. lo: cuint;
  95. end;