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.

305 lines
6.7 KiB

  1. /*++
  2. Copyright(c) 1992 Microsoft Corporation
  3. Module Name:
  4. wrapper.c
  5. Abstract:
  6. This file contains declarations for all wrapper function calls .
  7. Author:
  8. ADube , 03/31/00
  9. Environment:
  10. Revision History:
  11. --*/
  12. #ifndef _ATMEPVC_WRAPPER
  13. #define _ATMEPVC_WRAPPER 1
  14. VOID
  15. epvcOpenProtocolConfiguration(
  16. OUT PNDIS_STATUS Status,
  17. OUT PNDIS_HANDLE ConfigurationHandle,
  18. IN PNDIS_STRING ProtocolSection,
  19. PRM_STACK_RECORD pSR
  20. );
  21. VOID
  22. epvcOpenConfigurationKeyByName(
  23. OUT PNDIS_STATUS Status,
  24. IN NDIS_HANDLE ConfigurationHandle,
  25. IN PNDIS_STRING SubKeyName,
  26. OUT PNDIS_HANDLE SubKeyHandle,
  27. PRM_STACK_RECORD pSR
  28. );
  29. VOID
  30. epvcOpenConfigurationKeyByIndex(
  31. OUT PNDIS_STATUS Status,
  32. IN NDIS_HANDLE ConfigurationHandle,
  33. IN ULONG Index,
  34. OUT PNDIS_STRING KeyName,
  35. OUT PNDIS_HANDLE KeyHandle,
  36. PRM_STACK_RECORD pSR
  37. );
  38. VOID
  39. epvcOpenAdapter(
  40. OUT PNDIS_STATUS Status,
  41. OUT PNDIS_STATUS OpenErrorStatus,
  42. OUT PNDIS_HANDLE NdisBindingHandle,
  43. OUT PUINT SelectedMediumIndex,
  44. IN PNDIS_MEDIUM MediumArray,
  45. IN UINT MediumArraySize,
  46. IN NDIS_HANDLE NdisProtocolHandle,
  47. IN NDIS_HANDLE ProtocolBindingContext,
  48. IN PNDIS_STRING AdapterName,
  49. IN UINT OpenOptions,
  50. IN PSTRING AddressingInformation OPTIONAL,
  51. PRM_STACK_RECORD pSR
  52. );
  53. VOID
  54. epvcCloseAdapter(
  55. OUT PNDIS_STATUS Status,
  56. IN NDIS_HANDLE NdisBindingHandle,
  57. PRM_STACK_RECORD pSR
  58. );
  59. NDIS_STATUS
  60. epvcClOpenAddressFamily(
  61. IN NDIS_HANDLE NdisBindingHandle,
  62. IN PCO_ADDRESS_FAMILY AddressFamily,
  63. IN NDIS_HANDLE ProtocolAfContext,
  64. IN PNDIS_CLIENT_CHARACTERISTICS ClCharacteristics,
  65. IN UINT SizeOfClCharacteristics,
  66. OUT PNDIS_HANDLE NdisAfHandle
  67. );
  68. NDIS_STATUS
  69. epvcCoCreateVc(
  70. IN NDIS_HANDLE NdisBindingHandle,
  71. IN NDIS_HANDLE NdisAfHandle OPTIONAL, // For CM signalling VCs
  72. IN NDIS_HANDLE ProtocolVcContext,
  73. IN OUT PNDIS_HANDLE NdisVcHandle
  74. );
  75. NDIS_STATUS
  76. epvcClMakeCall(
  77. IN NDIS_HANDLE NdisVcHandle,
  78. IN OUT PCO_CALL_PARAMETERS CallParameters,
  79. IN NDIS_HANDLE ProtocolPartyContext OPTIONAL,
  80. OUT PNDIS_HANDLE NdisPartyHandle OPTIONAL
  81. );
  82. NDIS_STATUS
  83. epvcClCloseCall(
  84. IN NDIS_HANDLE NdisVcHandle
  85. );
  86. NDIS_STATUS
  87. epvcAllocateMemoryWithTag(
  88. OUT PVOID * VirtualAddress,
  89. IN UINT Length,
  90. IN ULONG Tag
  91. );
  92. NDIS_STATUS
  93. epvcCoDeleteVc(
  94. IN NDIS_HANDLE NdisVcHandle
  95. );
  96. VOID
  97. epvcFreeMemory(
  98. IN PVOID VirtualAddress,
  99. IN UINT Length,
  100. IN UINT MemoryFlags
  101. );
  102. VOID
  103. epvcInitializeEvent(
  104. IN PNDIS_EVENT Event
  105. );
  106. BOOLEAN
  107. epvcWaitEvent(
  108. IN PNDIS_EVENT Event,
  109. IN UINT msToWait
  110. );
  111. VOID
  112. epvcSetEvent(
  113. IN PNDIS_EVENT Event
  114. );
  115. VOID
  116. epvcResetEvent(
  117. IN PNDIS_EVENT Event
  118. );
  119. VOID
  120. epvcCoRequestComplete(
  121. IN NDIS_STATUS Status,
  122. IN NDIS_HANDLE NdisAfHandle,
  123. IN NDIS_HANDLE NdisVcHandle OPTIONAL,
  124. IN NDIS_HANDLE NdisPartyHandle OPTIONAL,
  125. IN PNDIS_REQUEST NdisRequest
  126. );
  127. VOID
  128. epvcEnumerateObjectsInGroup (
  129. PRM_GROUP pGroup,
  130. PFN_RM_GROUP_ENUMERATOR pfnEnumerator,
  131. PVOID pvContext,
  132. PRM_STACK_RECORD pSR
  133. );
  134. VOID
  135. epvcAllocatePacketPool(
  136. OUT PNDIS_STATUS Status,
  137. OUT PEPVC_PACKET_POOL pPktPool,
  138. IN UINT NumberOfDescriptors,
  139. IN UINT NumberOfOverflowDescriptors,
  140. IN UINT ProtocolReservedLength
  141. );
  142. VOID
  143. epvcFreePacketPool(
  144. IN PEPVC_PACKET_POOL pPktPool
  145. );
  146. VOID
  147. epvcFreePacket (
  148. IN PNDIS_PACKET pPkt,
  149. IN PEPVC_PACKET_POOL pPool
  150. );
  151. VOID
  152. epvcAllocatePacket(
  153. OUT PNDIS_STATUS Status,
  154. OUT PNDIS_PACKET * Packet,
  155. IN PEPVC_PACKET_POOL pPktPool
  156. );
  157. VOID
  158. epvcDprFreePacket(
  159. IN PNDIS_PACKET Packet,
  160. IN PEPVC_PACKET_POOL pPool
  161. );
  162. VOID
  163. epvcDprAllocatePacket(
  164. OUT PNDIS_STATUS Status,
  165. OUT PNDIS_PACKET * Packet,
  166. IN PEPVC_PACKET_POOL pPktPool
  167. );
  168. NDIS_STATUS
  169. epvcClCloseAddressFamily(
  170. IN NDIS_HANDLE NdisAfHandle
  171. );
  172. VOID
  173. epvcMIndicateStatus(
  174. IN PEPVC_I_MINIPORT pMiniport ,
  175. IN NDIS_STATUS GeneralStatus,
  176. IN PVOID StatusBuffer,
  177. IN UINT StatusBufferSize
  178. );
  179. VOID
  180. epvcMIndicateReceivePacket(
  181. IN PEPVC_I_MINIPORT pMiniport,
  182. IN PPNDIS_PACKET ReceivedPackets,
  183. IN UINT NumberOfPackets
  184. );
  185. VOID
  186. epvcFreeBuffer(
  187. IN PNDIS_BUFFER Buffer
  188. );
  189. VOID
  190. epvcAllocateBuffer(
  191. OUT PNDIS_STATUS Status,
  192. OUT PNDIS_BUFFER * Buffer,
  193. IN NDIS_HANDLE PoolHandle,
  194. IN PVOID VirtualAddress,
  195. IN UINT Length
  196. );
  197. VOID
  198. epvcMSendComplete(
  199. IN PEPVC_I_MINIPORT pMiniport,
  200. IN PNDIS_PACKET pPkt,
  201. IN NDIS_STATUS Status
  202. );
  203. VOID
  204. epvcReturnPacketToNdis(
  205. IN PEPVC_I_MINIPORT pMiniport,
  206. IN PNDIS_PACKET pPacket,
  207. IN PRM_STACK_RECORD pSR
  208. );
  209. VOID
  210. epvcInitializeWorkItem(
  211. IN PRM_OBJECT_HEADER pObj,
  212. IN PNDIS_WORK_ITEM WorkItem,
  213. IN NDIS_PROC Routine,
  214. IN PVOID Context,
  215. IN PRM_STACK_RECORD pSR
  216. );
  217. VOID
  218. epvcCoSendPackets(
  219. IN NDIS_HANDLE NdisVcHandle,
  220. IN PPNDIS_PACKET PacketArray,
  221. IN UINT NumberOfPackets
  222. );
  223. VOID
  224. epvcQueryPacket(
  225. IN PNDIS_PACKET _Packet,
  226. OUT PUINT _PhysicalBufferCount OPTIONAL,
  227. OUT PUINT _BufferCount OPTIONAL,
  228. OUT PNDIS_BUFFER * _FirstBuffer OPTIONAL,
  229. OUT PUINT _TotalPacketLength OPTIONAL
  230. );
  231. VOID
  232. epvcIMDeInitializeDeviceInstance (
  233. IN PEPVC_I_MINIPORT pMiniport
  234. );
  235. NDIS_STATUS
  236. epvcIMCancelInitializeDeviceInstance (
  237. IN PEPVC_I_MINIPORT pMiniport
  238. );
  239. #endif