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.

308 lines
5.9 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. D:\nt\private\ntos\tdi\rawwan\atm\externs.h
  5. Abstract:
  6. All external declarations for ATM-specific Raw WAN (functions, globals)
  7. are here.
  8. Revision History:
  9. Who When What
  10. -------- -------- ----------------------------------------------
  11. arvindm 06-13-97 Created
  12. Notes:
  13. --*/
  14. #ifndef __TDI_ATMSP_EXTERNS__H
  15. #define __TDI_ATMSP_EXTERNS__H
  16. #ifndef EXTERN
  17. #define EXTERN extern
  18. #endif // EXTERN
  19. EXTERN
  20. RWAN_STATUS
  21. RWanAtmSpInitialize(
  22. VOID
  23. );
  24. EXTERN
  25. VOID
  26. RWanAtmSpShutdown(
  27. VOID
  28. );
  29. EXTERN
  30. RWAN_STATUS
  31. RWanAtmSpOpenAf(
  32. IN RWAN_HANDLE AfSpContext,
  33. IN RWAN_HANDLE RWanAFHandle,
  34. OUT PRWAN_HANDLE pAfSpAFContext,
  35. OUT PULONG pMaxMsgSize
  36. );
  37. EXTERN
  38. RWAN_STATUS
  39. RWanAtmSpCloseAf(
  40. IN RWAN_HANDLE AfSpAFContext
  41. );
  42. EXTERN
  43. RWAN_STATUS
  44. RWanAtmSpOpenAddressObject(
  45. IN RWAN_HANDLE AfSpContext,
  46. IN RWAN_HANDLE RWanAddrHandle,
  47. OUT PRWAN_HANDLE pAfSpAddrContext
  48. );
  49. EXTERN
  50. VOID
  51. RWanAtmSpCloseAddressObject(
  52. IN RWAN_HANDLE AfSpAddrContext
  53. );
  54. EXTERN
  55. RWAN_STATUS
  56. RWanAtmSpAssociateConnection(
  57. IN RWAN_HANDLE AfSpAddrContext,
  58. IN RWAN_HANDLE RWanConnHandle,
  59. OUT PRWAN_HANDLE pAfSpConnContext
  60. );
  61. EXTERN
  62. VOID
  63. RWanAtmSpDisassociateConnection(
  64. IN RWAN_HANDLE AfSpConnContext
  65. );
  66. EXTERN
  67. RWAN_STATUS
  68. RWanAtmSpTdi2NdisOptions(
  69. IN RWAN_HANDLE AfSpConnContext,
  70. IN ULONG CallFlags,
  71. IN PTDI_CONNECTION_INFORMATION pTdiInfo,
  72. IN PVOID pTdiQoS,
  73. IN ULONG TdiQoSLength,
  74. OUT PRWAN_HANDLE pRWanAfHandle,
  75. OUT PCO_CALL_PARAMETERS * ppCallParameters
  76. );
  77. EXTERN
  78. RWAN_STATUS
  79. RWanAtmSpUpdateNdisOptions(
  80. IN RWAN_HANDLE AfSpAFContext,
  81. IN RWAN_HANDLE AfSpConnContext,
  82. IN ULONG CallFlags,
  83. IN PTDI_CONNECTION_INFORMATION pTdiInfo,
  84. IN PVOID pTdiQoS,
  85. IN ULONG TdiQoSLength,
  86. IN OUT PCO_CALL_PARAMETERS * ppCallParameters
  87. );
  88. EXTERN
  89. VOID
  90. RWanAtmSpReturnNdisOptions(
  91. IN RWAN_HANDLE AfSpAFContext,
  92. IN PCO_CALL_PARAMETERS pCallParameters
  93. );
  94. EXTERN
  95. RWAN_STATUS
  96. RWanAtmSpNdis2TdiOptions(
  97. IN RWAN_HANDLE AfSpAFContext,
  98. IN ULONG CallFlags,
  99. IN PCO_CALL_PARAMETERS pCallParameters,
  100. OUT PTDI_CONNECTION_INFORMATION *ppTdiInfo,
  101. OUT PVOID * ppTdiQoS,
  102. OUT PULONG pTdiQoSLength,
  103. OUT RWAN_HANDLE * pAfSpTdiOptionsContext
  104. );
  105. EXTERN
  106. RWAN_STATUS
  107. RWanAtmSpUpdateTdiOptions(
  108. IN RWAN_HANDLE AfSpAFContext,
  109. IN RWAN_HANDLE AfSpConnContext,
  110. IN ULONG CallFlags,
  111. IN PCO_CALL_PARAMETERS pCallParameters,
  112. IN OUT PTDI_CONNECTION_INFORMATION * ppTdiInfo,
  113. IN OUT PUCHAR pTdiQoS,
  114. IN OUT PULONG pTdiQoSLength
  115. );
  116. EXTERN
  117. VOID
  118. RWanAtmSpReturnTdiOptions(
  119. IN RWAN_HANDLE AfSpAFContext,
  120. IN RWAN_HANDLE AfSpTdiOptionsContext
  121. );
  122. EXTERN
  123. TA_ADDRESS *
  124. RWanAtmSpGetValidTdiAddress(
  125. IN RWAN_HANDLE AfSpContext,
  126. IN TRANSPORT_ADDRESS UNALIGNED *pAddressList,
  127. IN ULONG AddrListLength
  128. );
  129. EXTERN
  130. BOOLEAN
  131. RWanAtmSpIsNullAddress(
  132. IN RWAN_HANDLE AfSpContext,
  133. IN TA_ADDRESS * pTransportAddress
  134. );
  135. EXTERN
  136. RWAN_STATUS
  137. RWanAtmSpTdi2NdisSap(
  138. IN RWAN_HANDLE AfSpContext,
  139. IN USHORT TdiAddressType,
  140. IN USHORT TdiAddressLength,
  141. IN PVOID pTdiAddress,
  142. OUT PCO_SAP * ppCoSap
  143. );
  144. EXTERN
  145. VOID
  146. RWanAtmSpReturnNdisSap(
  147. IN RWAN_HANDLE AfSpContext,
  148. IN PCO_SAP pCoSap
  149. );
  150. EXTERN
  151. VOID
  152. RWanAtmSpDeregNdisAFComplete(
  153. IN RWAN_STATUS RWanStatus,
  154. IN RWAN_HANDLE AfSpContext
  155. );
  156. EXTERN
  157. VOID
  158. RWanAtmSpDeregTdiProtoComplete(
  159. IN RWAN_STATUS RWanStatus,
  160. IN RWAN_HANDLE AfSpContext
  161. );
  162. EXTERN
  163. PATMSP_AF_BLOCK
  164. AtmSpDeviceNumberToAfBlock(
  165. IN UINT DeviceNumber
  166. );
  167. EXTERN
  168. UINT
  169. AtmSpAfBlockToDeviceNumber(
  170. IN PATMSP_AF_BLOCK pAfBlock
  171. );
  172. EXTERN
  173. RWAN_STATUS
  174. AtmSpDoAdapterRequest(
  175. IN PATMSP_AF_BLOCK pAfBlock,
  176. IN NDIS_REQUEST_TYPE RequestType,
  177. IN NDIS_OID Oid,
  178. IN PVOID pBuffer,
  179. IN ULONG BufferLength
  180. );
  181. EXTERN
  182. RWAN_STATUS
  183. AtmSpDoCallManagerRequest(
  184. IN PATMSP_AF_BLOCK pAfBlock,
  185. IN NDIS_REQUEST_TYPE RequestType,
  186. IN NDIS_OID Oid,
  187. IN PVOID pBuffer,
  188. IN ULONG BufferLength
  189. );
  190. EXTERN
  191. ATMSP_SOCKADDR_ATM UNALIGNED *
  192. AtmSpGetSockAtmAddress(
  193. IN PVOID pTdiAddressList,
  194. IN ULONG AddrListLength
  195. );
  196. EXTERN
  197. VOID
  198. RWanAtmSpAdapterRequestComplete(
  199. IN NDIS_STATUS Status,
  200. IN RWAN_HANDLE AfSpAFContext,
  201. IN RWAN_HANDLE AfSpReqContext,
  202. IN NDIS_REQUEST_TYPE RequestType,
  203. IN NDIS_OID Oid,
  204. IN PVOID pBuffer,
  205. IN ULONG BufferLength
  206. );
  207. EXTERN
  208. VOID
  209. RWanAtmSpAfRequestComplete(
  210. IN NDIS_STATUS Status,
  211. IN RWAN_HANDLE AfSpAFContext,
  212. IN RWAN_HANDLE AfSpReqContext,
  213. IN NDIS_REQUEST_TYPE RequestType,
  214. IN NDIS_OID Oid,
  215. IN PVOID pBuffer,
  216. IN ULONG BufferLength
  217. );
  218. EXTERN
  219. VOID
  220. RWanAtmSpDeregTdiProtocolComplete(
  221. IN RWAN_STATUS RWanStatus,
  222. IN RWAN_HANDLE AfSpTdiProtocolContext
  223. );
  224. EXTERN
  225. VOID
  226. AtmSpPrepareDefaultQoS(
  227. IN PATMSP_AF_BLOCK pAfBlock
  228. );
  229. EXTERN
  230. RWAN_STATUS
  231. RWanAtmSpQueryGlobalInfo(
  232. IN RWAN_HANDLE AfSpContext,
  233. IN PVOID pInputBuffer,
  234. IN ULONG InputBufferLength,
  235. IN PVOID pOutputBuffer,
  236. IN OUT PULONG pOutputBufferLength
  237. );
  238. EXTERN
  239. RWAN_STATUS
  240. RWanAtmSpSetGlobalInfo(
  241. IN RWAN_HANDLE AfSpContext,
  242. IN PVOID pInputBuffer,
  243. IN ULONG InputBufferLength
  244. );
  245. EXTERN
  246. RWAN_STATUS
  247. RWanAtmSpSetAddrInfo(
  248. IN RWAN_HANDLE AfSpAddrContext,
  249. IN PVOID pInputBuffer,
  250. IN ULONG InputBufferLength
  251. );
  252. EXTERN
  253. RWAN_STATUS
  254. RWanAtmSpQueryConnInfo(
  255. IN RWAN_HANDLE AfSpConnContext,
  256. IN PVOID pInputBuffer,
  257. IN ULONG InputBufferLength,
  258. OUT PVOID pOutputBuffer,
  259. IN OUT PULONG pOutputBufferLength
  260. );
  261. #endif // __TDI_ATMSP_EXTERNS__H