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.

206 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 23
  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. NTSTATUS
  96. StIrUsbDispatch(
  97. IN PDEVICE_OBJECT DeviceObject,
  98. IN PIRP Irp
  99. );
  100. NTSTATUS
  101. StIrUsbCreate(
  102. IN PDEVICE_OBJECT DeviceObject,
  103. IN PIRP Irp
  104. );
  105. NTSTATUS
  106. StIrUsbClose(
  107. IN PDEVICE_OBJECT DeviceObject,
  108. IN PIRP Irp
  109. );
  110. NTSTATUS
  111. ResetIrDevice(
  112. IN PIR_WORK_ITEM pWorkItem
  113. );
  114. NTSTATUS
  115. RestoreIrDevice(
  116. IN PIR_WORK_ITEM pWorkItem
  117. );
  118. NTSTATUS
  119. SuspendIrDevice(
  120. IN PIR_WORK_ITEM pWorkItem
  121. );
  122. NTSTATUS
  123. ResumeIrDevice(
  124. IN PIR_WORK_ITEM pWorkItem
  125. );
  126. PIR_DEVICE
  127. NewDevice();
  128. NTSTATUS
  129. IrUsb_StartDevice(
  130. IN PIR_DEVICE pThisDev
  131. );
  132. NTSTATUS
  133. IrUsb_StopDevice(
  134. IN PIR_DEVICE pThisDev
  135. );
  136. NTSTATUS
  137. IrUsb_AddDevice(
  138. IN OUT PIR_DEVICE *DeviceExt
  139. );
  140. NTSTATUS
  141. IrUsb_CreateDeviceExt(
  142. IN OUT PIR_DEVICE *DeviceExt
  143. );
  144. NTSTATUS
  145. IrUsb_ConfigureDevice(
  146. IN OUT PIR_DEVICE pThisDev
  147. );
  148. NDIS_STATUS
  149. InitializeDevice(
  150. IN OUT PIR_DEVICE pThisDev
  151. );
  152. VOID
  153. DeinitializeDevice(
  154. IN OUT PIR_DEVICE pThisDev
  155. );
  156. NDIS_STATUS
  157. UsbOpen(
  158. IN PIR_DEVICE pThisDev
  159. );
  160. NDIS_STATUS
  161. UsbClose(
  162. IN PIR_DEVICE pThisDev
  163. );
  164. VOID
  165. FreeDevice(
  166. IN OUT PIR_DEVICE pThisDev
  167. );
  168. PNDIS_IRDA_PACKET_INFO
  169. GetPacketInfo(
  170. IN PNDIS_PACKET pPacket
  171. );
  172. #endif IRNDIS_H
  173.