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.

216 lines
3.8 KiB

  1. /**************************************************************************************************************************
  2. * IRNDIS.H SigmaTel STIR4200 ndis standard entry point definitions
  3. **************************************************************************************************************************
  4. * (C) Unpublished Copyright of Sigmatel, Inc. All Rights Reserved.
  5. *
  6. *
  7. * Created: 04/06/2000
  8. * Version 0.9
  9. * Edited: 04/27/2000
  10. * Version 0.92
  11. * Edited: 05/03/2000
  12. * Version 0.93
  13. * Edited: 05/24/2000
  14. * Version 0.96
  15. * Edited: 08/09/2000
  16. * Version 1.02
  17. * Edited: 09/16/2000
  18. * Version 1.03
  19. * Edited: 09/25/2000
  20. * Version 1.10
  21. * Edited: 11/09/2000
  22. * Version 1.12
  23. *
  24. *
  25. **************************************************************************************************************************/
  26. #ifndef IRNDIS_H
  27. #define IRNDIS_H
  28. //
  29. // NDIS version compatibility.
  30. //
  31. #define NDIS_MAJOR_VERSION 5
  32. #define NDIS_MINOR_VERSION 0
  33. #define DRIVER_MAJOR_VERSION 1
  34. #define DRIVER_MINOR_VERSION 20
  35. //
  36. // Externs for required NDIS-dependent miniport export functions
  37. //
  38. VOID
  39. StIrUsbHalt(
  40. IN NDIS_HANDLE MiniportAdapterContext
  41. );
  42. NDIS_STATUS
  43. StIrUsbInitialize(
  44. OUT PNDIS_STATUS OpenErrorStatus,
  45. OUT PUINT SelectedMediumIndex,
  46. IN PNDIS_MEDIUM MediumArray,
  47. IN UINT MediumArraySize,
  48. IN NDIS_HANDLE MiniportAdapterHandle,
  49. IN NDIS_HANDLE WrapperConfigurationContext
  50. );
  51. NDIS_STATUS
  52. StIrUsbQueryInformation(
  53. IN NDIS_HANDLE MiniportAdapterContext,
  54. IN NDIS_OID Oid,
  55. IN PVOID InformationBuffer,
  56. IN ULONG InformationBufferLength,
  57. OUT PULONG BytesWritten,
  58. OUT PULONG BytesNeeded
  59. );
  60. VOID
  61. StIrUsbSendPackets(
  62. IN NDIS_HANDLE MiniportAdapterContext,
  63. IN PPNDIS_PACKET PacketArray,
  64. IN UINT NumberOfPackets
  65. );
  66. NDIS_STATUS
  67. StIrUsbSend(
  68. IN NDIS_HANDLE MiniportAdapterContext,
  69. IN PNDIS_PACKET Packet,
  70. IN UINT Flags
  71. );
  72. NDIS_STATUS
  73. StIrUsbSetInformation(
  74. IN NDIS_HANDLE MiniportAdapterContext,
  75. IN NDIS_OID Oid,
  76. IN PVOID InformationBuffer,
  77. IN ULONG InformationBufferLength,
  78. OUT PULONG BytesRead,
  79. OUT PULONG BytesNeeded
  80. );
  81. VOID StIrUsbReturnPacket(
  82. IN OUT NDIS_HANDLE MiniportAdapterContext,
  83. IN OUT PNDIS_PACKET Packet
  84. );
  85. VOID
  86. IrUsb_CommonShutdown(
  87. IN OUT PIR_DEVICE pThisDev,
  88. BOOLEAN KillPassiveThread
  89. );
  90. NDIS_STATUS
  91. StIrUsbReset(
  92. OUT PBOOLEAN AddressingReset,
  93. IN NDIS_HANDLE MiniportAdapterContext
  94. );
  95. BOOLEAN
  96. StIrUsbCheckForHang(
  97. IN NDIS_HANDLE MiniportAdapterContext
  98. );
  99. NTSTATUS
  100. StIrUsbDispatch(
  101. IN PDEVICE_OBJECT DeviceObject,
  102. IN PIRP Irp
  103. );
  104. NTSTATUS
  105. StIrUsbCreate(
  106. IN PDEVICE_OBJECT DeviceObject,
  107. IN PIRP Irp
  108. );
  109. NTSTATUS
  110. StIrUsbClose(
  111. IN PDEVICE_OBJECT DeviceObject,
  112. IN PIRP Irp
  113. );
  114. VOID
  115. ResetIrDevice(
  116. IN PIR_WORK_ITEM pWorkItem
  117. );
  118. VOID
  119. RestoreIrDevice(
  120. IN PIR_WORK_ITEM pWorkItem
  121. );
  122. VOID
  123. SuspendIrDevice(
  124. IN PIR_WORK_ITEM pWorkItem
  125. );
  126. VOID
  127. ResumeIrDevice(
  128. IN PIR_WORK_ITEM pWorkItem
  129. );
  130. PIR_DEVICE
  131. NewDevice();
  132. NTSTATUS
  133. IrUsb_StartDevice(
  134. IN PIR_DEVICE pThisDev
  135. );
  136. NTSTATUS
  137. IrUsb_StopDevice(
  138. IN PIR_DEVICE pThisDev
  139. );
  140. NTSTATUS
  141. IrUsb_AddDevice(
  142. IN OUT PIR_DEVICE *DeviceExt
  143. );
  144. NTSTATUS
  145. IrUsb_CreateDeviceExt(
  146. IN OUT PIR_DEVICE *DeviceExt
  147. );
  148. NTSTATUS
  149. IrUsb_ConfigureDevice(
  150. IN OUT PIR_DEVICE pThisDev
  151. );
  152. VOID
  153. IrUsb_CancelPendingIo(
  154. IN OUT PIR_DEVICE pThisDev
  155. );
  156. NDIS_STATUS
  157. InitializeDevice(
  158. IN OUT PIR_DEVICE pThisDev
  159. );
  160. VOID
  161. DeinitializeDevice(
  162. IN OUT PIR_DEVICE pThisDev
  163. );
  164. NDIS_STATUS
  165. UsbOpen(
  166. IN PIR_DEVICE pThisDev
  167. );
  168. NDIS_STATUS
  169. UsbClose(
  170. IN PIR_DEVICE pThisDev
  171. );
  172. VOID
  173. FreeDevice(
  174. IN OUT PIR_DEVICE pThisDev
  175. );
  176. PNDIS_IRDA_PACKET_INFO
  177. GetPacketInfo(
  178. IN PNDIS_PACKET pPacket
  179. );
  180. #endif IRNDIS_H
  181.