Leaked source code of windows server 2003
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.

211 lines
3.9 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1999 - 2000
  3. Module Name:
  4. MsTpGuts.h
  5. Abstract:
  6. Header file MsTpGuts.c
  7. Last changed by:
  8. Author: Yee J. Wu
  9. Environment:
  10. Kernel mode only
  11. Revision History:
  12. $Revision:: $
  13. $Date:: $
  14. --*/
  15. //
  16. // Device SRB
  17. //
  18. NTSTATUS
  19. AVCTapeInitialize(
  20. IN PDVCR_EXTENSION pDevExt,
  21. IN PPORT_CONFIGURATION_INFORMATION pConfigInfo,
  22. IN PAV_61883_REQUEST pAVReq
  23. );
  24. NTSTATUS
  25. AVCTapeInitializeCompleted(
  26. IN PDVCR_EXTENSION pDevExt
  27. );
  28. NTSTATUS
  29. AVCTapeGetStreamInfo(
  30. IN PDVCR_EXTENSION pDevExt,
  31. IN ULONG ulBytesToTransfer,
  32. IN PHW_STREAM_HEADER pStreamHeader,
  33. IN PHW_STREAM_INFORMATION pStreamInfo
  34. );
  35. BOOL
  36. AVCTapeVerifyDataFormat(
  37. IN ULONG NumOfPins,
  38. PKSDATAFORMAT pKSDataFormatToVerify,
  39. ULONG StreamNumber,
  40. ULONG ulSupportedFrameSize,
  41. STREAM_INFO_AND_OBJ * paCurrentStrmInfo
  42. );
  43. NTSTATUS
  44. AVCTapeGetDataIntersection(
  45. IN ULONG NumOfPins,
  46. IN ULONG ulStreamNumber,
  47. IN PKSDATARANGE pDataRange,
  48. OUT PVOID pDataFormatBuffer,
  49. IN ULONG ulSizeOfDataFormatBuffer,
  50. IN ULONG ulSupportedFrameSize,
  51. OUT ULONG *pulActualBytesTransferred,
  52. STREAM_INFO_AND_OBJ * paCurrentStrmInfo
  53. #ifdef SUPPORT_NEW_AVC
  54. ,
  55. IN HANDLE hPlugLocalOut,
  56. IN HANDLE hPlugLocalIn
  57. #endif
  58. );
  59. NTSTATUS
  60. AVCTapeOpenStream(
  61. IN PHW_STREAM_OBJECT pStrmObject,
  62. IN PKSDATAFORMAT pOpenFormat,
  63. IN PAV_61883_REQUEST pAVReq
  64. );
  65. NTSTATUS
  66. AVCTapeCloseStream(
  67. IN PHW_STREAM_OBJECT pStrmObject,
  68. IN PKSDATAFORMAT pOpenFormat,
  69. IN PAV_61883_REQUEST pAVReq
  70. );
  71. NTSTATUS
  72. DVChangePower(
  73. PDVCR_EXTENSION pDevExt,
  74. PAV_61883_REQUEST pAVReq,
  75. DEVICE_POWER_STATE NewPowerState
  76. );
  77. NTSTATUS
  78. AVCTapeSurpriseRemoval(
  79. PDVCR_EXTENSION pDevExt,
  80. PAV_61883_REQUEST pAVReq
  81. );
  82. NTSTATUS
  83. AVCTapeProcessPnPBusReset(
  84. PDVCR_EXTENSION pDevExt
  85. );
  86. NTSTATUS
  87. AVCTapeUninitialize(
  88. IN PDVCR_EXTENSION pDevExt
  89. );
  90. //
  91. // Stream SRB
  92. //
  93. NTSTATUS
  94. AVCTapeReqReadDataCR(
  95. IN PDEVICE_OBJECT DeviceObject,
  96. IN PIRP pIrp,
  97. IN PDRIVER_REQUEST pDriverReq
  98. );
  99. NTSTATUS
  100. AVCTapeGetStreamState(
  101. PSTREAMEX pStrmExt,
  102. IN PDEVICE_OBJECT DeviceObject,
  103. PKSSTATE pStreamState,
  104. PULONG pulActualBytesTransferred
  105. );
  106. NTSTATUS
  107. AVCTapeSetStreamState(
  108. PSTREAMEX pStrmExt,
  109. PDVCR_EXTENSION pDevExt,
  110. PAV_61883_REQUEST pAVReq,
  111. KSSTATE StreamState
  112. );
  113. NTSTATUS
  114. DVGetStreamProperty(
  115. PHW_STREAM_REQUEST_BLOCK pSrb
  116. );
  117. NTSTATUS
  118. DVSetStreamProperty(
  119. PHW_STREAM_REQUEST_BLOCK pSrb
  120. );
  121. VOID
  122. AVCTapeCreateAbortWorkItem(
  123. PDVCR_EXTENSION pDevExt,
  124. PSTREAMEX pStrmExt
  125. );
  126. VOID
  127. DVCRCancelOnePacket(
  128. IN PHW_STREAM_REQUEST_BLOCK pSrbToCancel
  129. );
  130. VOID
  131. DVCRCancelAllPackets(
  132. IN PSTREAMEX pStrmExt,
  133. IN PDVCR_EXTENSION pDevExt
  134. );
  135. VOID
  136. DVTimeoutHandler(
  137. IN PHW_STREAM_REQUEST_BLOCK pSrb
  138. );
  139. NTSTATUS
  140. AVCTapeOpenCloseMasterClock (
  141. PSTREAMEX pStrmExt,
  142. HANDLE hMasterClockHandle
  143. );
  144. NTSTATUS
  145. AVCTapeIndicateMasterClock (
  146. PSTREAMEX pStrmExt,
  147. HANDLE hMasterClockHandle
  148. );
  149. VOID
  150. AVCTapeRcvDataPacket(
  151. IN PHW_STREAM_REQUEST_BLOCK pSrb
  152. );
  153. VOID
  154. AVCTapeRcvControlPacket(
  155. IN PHW_STREAM_REQUEST_BLOCK pSrb
  156. );
  157. NTSTATUS
  158. AVCTapeEventHandler(
  159. IN PHW_EVENT_DESCRIPTOR pEventDescriptor
  160. );
  161. VOID
  162. AVCTapeSignalClockEvent(
  163. IN PKDPC Dpc,
  164. IN PSTREAMEX pStrmExt,
  165. IN PVOID SystemArgument1,
  166. IN PVOID SystemArgument2
  167. );
  168. VOID
  169. AVCTapeStreamClockRtn(
  170. IN PHW_TIME_CONTEXT TimeContext
  171. );