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.

261 lines
4.9 KiB

  1. /*****************************************************************************
  2. *
  3. * Copyright (c) 1996-1999 Microsoft Corporation
  4. *
  5. * @doc
  6. * @module ioctl.h | IrSIR NDIS Minport Driver
  7. * @comm
  8. *
  9. *-----------------------------------------------------------------------------
  10. *
  11. * Author: Scott Holden (sholden)
  12. *
  13. * Date: 10/1/1996 (created)
  14. *
  15. * Contents:
  16. *
  17. *****************************************************************************/
  18. #ifndef _IOCTL_H_
  19. #define _IOCTL_H_
  20. #include "irsir.h"
  21. extern
  22. NTSTATUS
  23. SerialGetStats(
  24. IN PDEVICE_OBJECT pSerialDevObj,
  25. OUT PSERIALPERF_STATS pPerfStats
  26. );
  27. extern
  28. NTSTATUS
  29. SerialClearStats(
  30. IN PDEVICE_OBJECT pSerialDevObj
  31. );
  32. extern
  33. NTSTATUS
  34. SerialGetProperties(
  35. IN PDEVICE_OBJECT pSerialDevObj,
  36. OUT PSERIAL_COMMPROP pCommProp
  37. );
  38. extern
  39. NTSTATUS
  40. SerialGetModemStatus(
  41. IN PDEVICE_OBJECT pSerialDevObj,
  42. OUT ULONG *pModemStatus
  43. );
  44. extern
  45. NTSTATUS
  46. SerialGetCommStatus(
  47. IN PDEVICE_OBJECT pSerialDevObj,
  48. OUT PSERIAL_STATUS pCommStatus
  49. );
  50. extern
  51. NTSTATUS
  52. SerialResetDevice(
  53. IN PDEVICE_OBJECT pSerialDevObj
  54. );
  55. extern
  56. NTSTATUS
  57. SerialPurge(
  58. IN PDEVICE_OBJECT pSerialDevObj
  59. );
  60. extern
  61. NTSTATUS
  62. SerialLSRMSTInsert(
  63. IN PDEVICE_OBJECT pSerialDevObj,
  64. IN UCHAR *pInsertionMode
  65. );
  66. extern
  67. NTSTATUS
  68. SerialGetBaudRate(
  69. IN PDEVICE_OBJECT pSerialDevObj,
  70. OUT ULONG *pBaudRate
  71. );
  72. extern
  73. NTSTATUS
  74. SerialSetBaudRate(
  75. IN PDEVICE_OBJECT pSerialDevObj,
  76. IN ULONG *pBaudRate
  77. );
  78. extern
  79. NTSTATUS
  80. SerialSetQueueSize(
  81. IN PDEVICE_OBJECT pSerialDevObj,
  82. IN PSERIAL_QUEUE_SIZE pQueueSize
  83. );
  84. extern
  85. NTSTATUS
  86. SerialGetHandflow(
  87. IN PDEVICE_OBJECT pSerialDevObj,
  88. OUT PSERIAL_HANDFLOW pHandflow
  89. );
  90. extern
  91. NTSTATUS
  92. SerialSetHandflow(
  93. IN PDEVICE_OBJECT pSerialDevObj,
  94. IN PSERIAL_HANDFLOW pHandflow
  95. );
  96. extern
  97. NTSTATUS
  98. SerialGetLineControl(
  99. IN PDEVICE_OBJECT pSerialDevObj,
  100. OUT PSERIAL_LINE_CONTROL pLineControl
  101. );
  102. extern
  103. NTSTATUS
  104. SerialSetLineControl(
  105. IN PDEVICE_OBJECT pSerialDevObj,
  106. IN PSERIAL_LINE_CONTROL pLineControl
  107. );
  108. extern
  109. NTSTATUS
  110. SerialSetBreakOn(
  111. IN PDEVICE_OBJECT pSerialDevObj
  112. );
  113. extern
  114. NTSTATUS
  115. SerialSetBreakOff(
  116. IN PDEVICE_OBJECT pSerialDevObj
  117. );
  118. extern
  119. NTSTATUS
  120. SerialGetTimeouts(
  121. IN PDEVICE_OBJECT pSerialDevObj,
  122. OUT PSERIAL_TIMEOUTS pTimeouts
  123. );
  124. extern
  125. NTSTATUS
  126. SerialSetTimeouts(
  127. IN PDEVICE_OBJECT pSerialDevObj,
  128. IN PSERIAL_TIMEOUTS pTimeouts
  129. );
  130. extern
  131. NTSTATUS
  132. SerialImmediateChar(
  133. IN PDEVICE_OBJECT pSerialDevObj,
  134. IN UCHAR *pImmediateChar
  135. );
  136. extern
  137. NTSTATUS
  138. SerialXoffCounter(
  139. IN PDEVICE_OBJECT pSerialDevObj,
  140. IN PSERIAL_XOFF_COUNTER pXoffCounter
  141. );
  142. extern
  143. NTSTATUS
  144. SerialSetDTR(
  145. IN PDEVICE_OBJECT pSerialDevObj
  146. );
  147. extern
  148. NTSTATUS
  149. SerialClrDTR(
  150. IN PDEVICE_OBJECT pSerialDevObj
  151. );
  152. extern
  153. NTSTATUS
  154. SerialSetRTS(
  155. IN PDEVICE_OBJECT pSerialDevObj
  156. );
  157. extern
  158. NTSTATUS
  159. SerialClrRTS(
  160. IN PDEVICE_OBJECT pSerialDevObj
  161. );
  162. extern
  163. NTSTATUS
  164. SerialGetDtrRts(
  165. IN PDEVICE_OBJECT pSerialDevObj,
  166. OUT ULONG *pDtrRts
  167. );
  168. extern
  169. NTSTATUS
  170. SerialSetXon(
  171. IN PDEVICE_OBJECT pSerialDevObj
  172. );
  173. extern
  174. NTSTATUS
  175. SerialSetXon(
  176. IN PDEVICE_OBJECT pSerialDevObj
  177. );
  178. extern
  179. NTSTATUS
  180. SerialSetXoff(
  181. IN PDEVICE_OBJECT pSerialDevObj
  182. );
  183. extern
  184. NTSTATUS
  185. SerialGetWaitMask(
  186. IN PDEVICE_OBJECT pSerialDevObj,
  187. OUT ULONG *pWaitMask
  188. );
  189. extern
  190. NTSTATUS
  191. SerialSetWaitMask(
  192. IN PDEVICE_OBJECT pSerialDevObj,
  193. IN ULONG *pWaitMask
  194. );
  195. extern
  196. NTSTATUS
  197. SerialWaitOnMask(
  198. IN PDEVICE_OBJECT pSerialDevObj,
  199. OUT ULONG *pWaitOnMask
  200. );
  201. extern
  202. NTSTATUS
  203. SerialCallbackOnMask(
  204. IN PDEVICE_OBJECT pSerialDevObj,
  205. IN PIO_COMPLETION_ROUTINE pRoutine,
  206. IN PIO_STATUS_BLOCK pIosb,
  207. IN PVOID Context,
  208. IN PULONG pResult
  209. );
  210. extern
  211. NTSTATUS
  212. SerialGetChars(
  213. IN PDEVICE_OBJECT pSerialDevObj,
  214. OUT PSERIAL_CHARS pChars
  215. );
  216. extern
  217. NTSTATUS
  218. SerialSetChars(
  219. IN PDEVICE_OBJECT pSerialDevObj,
  220. IN PSERIAL_CHARS pChars
  221. );
  222. #endif // _IOCTL_H_