Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

225 lines
7.9 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/INCLUDE/VCS/tstmsp.h_v $
  4. *
  5. * INTEL Corporation Prorietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1993-1994 Intel Corporation.
  12. *
  13. * $Revision: 1.0 $
  14. * $Date: Nov 19 1996 09:16:08 $
  15. * $Author: MLEWIS1 $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. * RMS Test MSP "public" header file. This file contains
  21. * #defines, typedefs, struct definitions and prototypes used by
  22. * and in conjunction with Test MSP. Any EXE or DLL which interacts with
  23. * test MSP will include this header file.
  24. *
  25. * Notes:
  26. *
  27. ***************************************************************************/
  28. // tstmsp.h
  29. #ifndef _TSTMSP_H_
  30. #define _TSTMSP_H_
  31. // define Source and Sink MSP IDs
  32. #define TSTMSPSRC "IntelTestSrc"
  33. #define TSTMSPSNK "IntelTestSnk"
  34. // version number
  35. #define TSTMSP_INTERFACE_VERSION 0x1
  36. //**********************************
  37. // structures used in interface calls
  38. //**********************************
  39. //***************************************************************************************
  40. /* TSTMSP_SINK_OPENPORT_IN_INFO
  41. uVersion Is a UINT specifying the version identifier for this data structure.
  42. The value TSTMSP_INTERFACE_VERSION should always be used to initialize it.
  43. uBufferFrequency Is a UINT specifying the number of milleseconds to delay before releasing
  44. a received buffer. A value of TSTMSP_DEF_FREQUENCY causes a default delay time
  45. to be used.
  46. */
  47. typedef struct _tstmsp_sink_openport_in_info
  48. {
  49. UINT uVersion;
  50. UINT uBufferFrequency;
  51. } TSTMSP_SINK_OPENPORT_IN_INFO, *LPTSTMSP_SINK_OPENPORT_IN_INFO;
  52. //***************************************************************************************
  53. /* TSTMSP_SINK_OPENPORT_OUT_INFO
  54. uVersion Is a UINT specifying the version identifier for this data structure.
  55. The value TSTMSP_INTERFACE_VERSION should always be used to initialize it.
  56. uBufferFrequency Is a UINT specifying the actual number of milleseconds of delay before
  57. releasing a received buffer.
  58. */
  59. typedef struct _tstmsp_sink_openport_out_info
  60. {
  61. UINT uVersion;
  62. UINT uBufferFrequency;
  63. } TSTMSP_SINK_OPENPORT_OUT_INFO, *LPTSTMSP_SINK_OPENPORT_OUT_INFO;
  64. //***************************************************************************************
  65. /* TSTMSP_SOURCE_OPENPORT_IN_INFO
  66. uVersion Is the version identifier for this data structure. The value
  67. STRMSP_INTERFACE_VERSION should always be used to initialize it.
  68. uBufferCount Is a UINT specifying the number of buffers to allocate for transmitting.
  69. A value of TSTMSP_DEF_BUFFERCOUNT causes a default number of buffers to
  70. be created.
  71. uBufferSize Is a UINT specifying the size of buffers to allocate for transmitting.
  72. A value of TSTMSP_DEF_BUFFERSIZE causes a default buffer size to be used.
  73. uBufferFrequency Is a UINT specifying the number of milleseconds to wait between
  74. buffer transmissions. A value of TSTMSP_DEF_FREQUENCY causes a default
  75. send interval to be used.
  76. uBurstCount Is a UINT specifying the number of buffers to send on each buffer
  77. transmissions. A value of TSTMSP_DEF_BURSTCOUNT causes a default
  78. value to be used.
  79. */
  80. typedef struct _tstmsp_source_openport_in_info
  81. {
  82. UINT uVersion;
  83. UINT uBufferCount;
  84. UINT uBufferSize;
  85. UINT uBufferFrequency;
  86. UINT uBurstCount;
  87. } TSTMSP_SOURCE_OPENPORT_IN_INFO, *LPTSTMSP_SOURCE_OPENPORT_IN_INFO;
  88. //***************************************************************************************
  89. /* TSTMSP_SOURCE_OPENPORT_OUT_INFO
  90. uVersion Is the version identifier for this data structure. The value
  91. STRMSP_INTERFACE_VERSION should always be used to initialize it.
  92. uBufferCount Is a UINT specifying the number of buffers actually allocated for
  93. transmitting.
  94. uBufferSize Is a UINT specifying the actual size of buffers allocated for
  95. transmitting.
  96. uBufferFrequency Is a UINT specifying the actual number of milleseconds to waited
  97. between buffer transmissions.
  98. uBurstCount Is a UINT specifying the actual number of buffers to be sent on each
  99. buffer transmissions.
  100. */
  101. typedef struct _tstmsp_source_openport_out_info
  102. {
  103. UINT uVersion;
  104. UINT uBufferCount;
  105. UINT uBufferSize;
  106. UINT uBufferFrequency;
  107. UINT uBurstCount;
  108. } TSTMSP_SOURCE_OPENPORT_OUT_INFO, *LPTSTMSP_SOURCE_OPENPORT_OUT_INFO;
  109. //***************************************************************************************
  110. /* TSTMSP_SET_BUFFERFREQUENCY_IN_INFO
  111. uVersion Is a UINT specifying the version identifier for this data structure.
  112. The value TSTMSP_INTERFACE_VERSION should always be used to initialize it.
  113. uBufferFrequency Is a UINT specifying:
  114. SINK - the number of milleseconds to delay before releasing a received
  115. buffer. A value of TSTMSP_DEF_FREQUENCY causes a default delay
  116. time to be used.
  117. SRC - the number of milleseconds to wait between buffer transmissions.
  118. A value of TSTMSP_DEF_FREQUENCY causes a default send interval
  119. to be used.
  120. */
  121. typedef struct _tstmsp_set_bufferfrequency_in_info
  122. {
  123. UINT uVersion;
  124. UINT uBufferFrequency;
  125. } TSTMSP_SET_BUFFERFREQUENCY_IN_INFO, *LPTSTMSP_SET_BUFFERFREQUENCY_IN_INFO;
  126. //***************************************************************************************
  127. /* TSTMSP_SET_BUFFERFREQUENCY_OUT_INFO
  128. uVersion Is a UINT specifying the version identifier for this data structure.
  129. The value TSTMSP_INTERFACE_VERSION should always be used to initialize it.
  130. uBufferFrequency Is a UINT specifying the actual delay value used.
  131. */
  132. typedef struct _tstmsp_set_bufferfrequency_out_info
  133. {
  134. UINT uVersion;
  135. UINT uBufferFrequency;
  136. } TSTMSP_SET_BUFFERFREQUENCY_OUT_INFO, *LPTSTMSP_SET_BUFFERFREQUENCY_OUT_INFO;
  137. //***************************************************************************************
  138. /* TSTMSP_SET_BURSTCOUNT_IN_INFO
  139. uVersion Is a UINT specifying the version identifier for this data structure.
  140. The value TSTMSP_INTERFACE_VERSION should always be used to initialize it.
  141. uBurstCount Is a UINT specifying the number of buffers to send on each buffer
  142. transmissions. A value of TSTMSP_DEF_BURSTCOUNT causes a default
  143. value to be used.
  144. */
  145. typedef struct _tstmsp_set_burstcount_in_info
  146. {
  147. UINT uVersion;
  148. UINT uBurstCount;
  149. } TSTMSP_SET_BURSTCOUNT_IN_INFO, *LPTSTMSP_SET_BURSTCOUNT_IN_INFO;
  150. //***************************************************************************************
  151. /* TSTMSP_SET_BURSTCOUNT_OUT_INFO
  152. uVersion Is a UINT specifying the version identifier for this data structure.
  153. The value TSTMSP_INTERFACE_VERSION should always be used to initialize it.
  154. uBurstCount Is a UINT specifying the actual number of buffers to be sent on each
  155. buffer transmissions.
  156. */
  157. typedef struct _tstmsp_set_burstcount_out_info
  158. {
  159. UINT uVersion;
  160. UINT uBurstCount;
  161. } TSTMSP_SET_BURSTCOUNT_OUT_INFO, *LPTSTMSP_SET_BURSTCOUNT_OUT_INFO;
  162. //*****************************************
  163. // MSP Port Attribute Defaults
  164. //*****************************************
  165. #define TSTMSP_DEF_BUFFERCOUNT 0
  166. #define TSTMSP_DEF_BUFFERSIZE 0
  167. #define TSTMSP_DEF_FREQUENCY ((UINT)-1)
  168. #define TSTMSP_DEF_BURSTCOUNT 0
  169. //*****************************************
  170. // MSP Service Commands
  171. //*****************************************
  172. // MSP_ServiceCmdProc()
  173. #define TSTMSP_SETBUFFERFREQUENCY 0x0001 // set buffer frequency
  174. #define TSTMSP_SETBURSTCOUNT 0x0002 // set burst count
  175. //*****************************************
  176. // MSP Global Limits
  177. //*****************************************
  178. #define TST_MAX_WSA_BUFS 16 // Max WSABUF elements in MSP2MSMSend
  179. //*****************************************
  180. // MSP Error codes
  181. //*****************************************
  182. #define TSTMSP_ERR_INVALIDARG E_INVALIDARG // one or more parameters invalid
  183. #endif