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.

204 lines
4.0 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. wansup.h
  5. Abstract:
  6. defines for WAN support functions
  7. Author:
  8. Yoram Bernet (yoramb) 31-Oct-1997
  9. Revision History:
  10. --*/
  11. #ifndef _WANSUP_
  12. #define _WANSUP_
  13. /* Prototypes */
  14. NDIS_STATUS
  15. DeleteInterfaceForNdisWan(
  16. IN PADAPTER Adapter,
  17. IN PVOID StatusBuffer,
  18. IN UINT StatusBufferSize
  19. );
  20. NDIS_STATUS
  21. CreateInterfaceForNdisWan(
  22. IN PADAPTER Adapter,
  23. IN PVOID StatusBuffer,
  24. IN UINT StatusBufferSize
  25. );
  26. NDIS_STATUS
  27. OpenWanAddressFamily(
  28. IN PADAPTER Adapter,
  29. IN PCO_ADDRESS_FAMILY WanAddressFamily
  30. );
  31. VOID
  32. WanOpenAddressFamilyComplete(
  33. IN NDIS_STATUS Status,
  34. IN NDIS_HANDLE ProtocolAfContext,
  35. IN NDIS_HANDLE NdisAfHandle
  36. );
  37. VOID
  38. WanMakeCallComplete(
  39. IN NDIS_STATUS Status,
  40. IN NDIS_HANDLE ProtocolVcContext,
  41. IN NDIS_HANDLE NdisPartyHandle,
  42. IN OUT PCO_CALL_PARAMETERS CallParameters
  43. );
  44. VOID
  45. WanModifyCallComplete(
  46. IN NDIS_STATUS Status,
  47. IN NDIS_HANDLE ProtocolVcContext,
  48. IN OUT PCO_CALL_PARAMETERS CallParameters
  49. );
  50. NDIS_STATUS
  51. WanModifyCall(
  52. IN PGPC_CLIENT_VC Vc,
  53. IN OUT PCO_CALL_PARAMETERS CallParameters
  54. );
  55. VOID
  56. WanCloseAddressFamilyComplete(
  57. IN NDIS_STATUS Status,
  58. IN NDIS_HANDLE ProtocolBindingContext
  59. );
  60. NDIS_STATUS
  61. WanCreateVc(
  62. IN NDIS_HANDLE ProtocolAfContext,
  63. IN NDIS_HANDLE NdisVcHandle,
  64. OUT PNDIS_HANDLE ProtocolVcContext
  65. );
  66. NDIS_STATUS
  67. WanDeleteVc(
  68. IN NDIS_HANDLE ProtocolVcContext
  69. );
  70. VOID
  71. WanRegisterSapComplete(
  72. IN NDIS_STATUS Status,
  73. IN NDIS_HANDLE ProtocolSapContext,
  74. IN PCO_SAP Sap,
  75. IN NDIS_HANDLE NdisSapHandle
  76. );
  77. VOID
  78. WanDeregisterSapComplete(
  79. IN NDIS_STATUS Status,
  80. IN NDIS_HANDLE ProtocolSapContext
  81. );
  82. NDIS_STATUS
  83. WanIncomingCall(
  84. IN NDIS_HANDLE ProtocolSapContext,
  85. IN NDIS_HANDLE ProtocolVcContext,
  86. IN OUT PCO_CALL_PARAMETERS CallParameters
  87. );
  88. VOID
  89. WanAddPartyComplete(
  90. IN NDIS_STATUS Status,
  91. IN NDIS_HANDLE ProtocolPartyContext,
  92. IN NDIS_HANDLE NdisPartyHandle,
  93. IN PCO_CALL_PARAMETERS CallParameters
  94. );
  95. VOID
  96. WanDropPartyComplete(
  97. IN NDIS_STATUS Status,
  98. IN NDIS_HANDLE ProtocolPartyContext
  99. );
  100. NDIS_STATUS
  101. WanMakeCall(
  102. IN PGPC_CLIENT_VC Vc,
  103. IN OUT PCO_CALL_PARAMETERS CallParameters
  104. );
  105. VOID
  106. WanCloseCallComplete(
  107. NDIS_STATUS Status,
  108. NDIS_HANDLE ProtocolVcContext,
  109. PCO_CALL_PARAMETERS CallParameters
  110. );
  111. VOID
  112. WanCloseCall(
  113. IN PGPC_CLIENT_VC Vc
  114. );
  115. VOID
  116. WanIncomingCallQoSChange(
  117. IN NDIS_HANDLE ProtocolVcContext,
  118. IN PCO_CALL_PARAMETERS CallParameters
  119. );
  120. VOID
  121. WanIncomingCloseCall(
  122. IN NDIS_STATUS CloseStatus,
  123. IN NDIS_HANDLE ProtocolVcContext,
  124. IN PVOID CloseData OPTIONAL,
  125. IN UINT Size OPTIONAL
  126. );
  127. VOID
  128. WanIncomingDropParty(
  129. IN NDIS_STATUS DropStatus,
  130. IN NDIS_HANDLE ProtocolPartyContext,
  131. IN PVOID CloseData OPTIONAL,
  132. IN UINT Size OPTIONAL
  133. );
  134. VOID
  135. WanCallConnected(
  136. IN NDIS_HANDLE ProtocolPartyContext
  137. );
  138. NDIS_STATUS
  139. WanCoRequest(
  140. IN NDIS_HANDLE ProtocolAfContext,
  141. IN NDIS_HANDLE ProtocolVcContext OPTIONAL,
  142. IN NDIS_HANDLE ProtocolPartyContext OPTIONAL,
  143. IN OUT PNDIS_REQUEST NdisRequest
  144. );
  145. VOID
  146. WanCoRequestComplete(
  147. IN NDIS_STATUS Status,
  148. IN NDIS_HANDLE ProtocolAfContext,
  149. IN NDIS_HANDLE ProtocolVcContext OPTIONAL,
  150. IN NDIS_HANDLE ProtocolPartyContext OPTIONAL,
  151. IN PNDIS_REQUEST NdisRequest
  152. );
  153. NDIS_STATUS
  154. UpdateWanLinkBandwidthParameters(PPS_WAN_LINK WanLink);
  155. VOID
  156. AskWanLinksToClose(PADAPTER Adapter);
  157. /* End Prototypes */
  158. #define PROTOCOL_IP 0x0800
  159. #define PROTOCOL_IPX 0x8137
  160. #endif /* _WANSUP_ */
  161. /* end wansup.h */