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.

165 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. adapter.h
  5. Abstract:
  6. defines for adapter binding/unbinding routines
  7. Author:
  8. Charlie Wickham (charlwi) 24-Apr-1996
  9. Environment:
  10. Kernel Mode
  11. Revision History:
  12. --*/
  13. /* External */
  14. /* Static */
  15. /* Prototypes */
  16. //
  17. // Protocol functions
  18. //
  19. VOID
  20. CleanUpAdapter(
  21. IN PADAPTER Adapter);
  22. VOID
  23. ClBindToLowerMp(
  24. OUT PNDIS_STATUS Status,
  25. IN NDIS_HANDLE BindContext,
  26. IN PNDIS_STRING MpDeviceName,
  27. IN PVOID SystemSpecific1,
  28. IN PVOID SystemSpecific2
  29. );
  30. VOID
  31. ClLowerMpCloseAdapterComplete(
  32. IN NDIS_HANDLE ProtocolBindingContext,
  33. IN NDIS_STATUS Status
  34. );
  35. VOID
  36. ClLowerMpOpenAdapterComplete(
  37. IN NDIS_HANDLE ProtocolBindingContext,
  38. IN NDIS_STATUS Status,
  39. IN NDIS_STATUS OpenErrorStatus
  40. );
  41. VOID
  42. ClUnbindFromLowerMp(
  43. OUT PNDIS_STATUS Status,
  44. IN NDIS_HANDLE ProtocolBindingContext,
  45. IN NDIS_HANDLE UnbindContext
  46. );
  47. NDIS_STATUS
  48. MpInitialize(
  49. OUT PNDIS_STATUS OpenErrorStatus,
  50. OUT PUINT SelectedMediumIndex,
  51. IN PNDIS_MEDIUM MediumArray,
  52. IN UINT MediumArraySize,
  53. IN NDIS_HANDLE MiniportAdapterHandle,
  54. IN NDIS_HANDLE WrapperConfigurationContext
  55. );
  56. PADAPTER
  57. FindAdapterByWmiInstanceName(
  58. USHORT StringLength,
  59. PWSTR StringStart,
  60. PPS_WAN_LINK *WanLink
  61. );
  62. VOID
  63. DerefAdapter(
  64. PADAPTER Adapter,
  65. BOOLEAN AdapterListLocked);
  66. VOID
  67. CleanupAdapter(
  68. PADAPTER Adapter
  69. );
  70. VOID
  71. ClUnloadProtocol(
  72. VOID
  73. );
  74. VOID
  75. MpHalt(
  76. IN NDIS_HANDLE MiniportAdapterContext
  77. );
  78. NDIS_STATUS
  79. MpReset(
  80. OUT PBOOLEAN AddressingReset,
  81. IN NDIS_HANDLE MiniportAdapterContext
  82. );
  83. NDIS_STATUS
  84. UpdateSchedulingPipe(
  85. PADAPTER Adapter
  86. );
  87. NDIS_STATUS
  88. UpdateWanSchedulingPipe(PPS_WAN_LINK WanLink);
  89. HANDLE
  90. GetNdisPipeHandle (
  91. IN HANDLE PsPipeContext
  92. );
  93. NDIS_STATUS
  94. UpdateAdapterBandwidthParameters(
  95. PADAPTER Adapter
  96. );
  97. NDIS_STATUS
  98. FindSchedulingComponent(
  99. PNDIS_STRING ComponentName,
  100. PPSI_INFO *Component
  101. );
  102. VOID
  103. PsAdapterWriteEventLog(
  104. IN NDIS_STATUS EventCode,
  105. IN ULONG UniqueEventValue,
  106. IN PNDIS_STRING String,
  107. IN ULONG DataSize,
  108. IN PVOID Data OPTIONAL
  109. );
  110. VOID
  111. PsGetLinkSpeed(
  112. IN PADAPTER Adapter
  113. );
  114. VOID
  115. PsUpdateLinkSpeed(
  116. PADAPTER Adapter,
  117. ULONG RawLinkSpeed,
  118. PULONG RemainingBandWidth,
  119. PULONG LinkSpeed,
  120. PULONG NonBestEffortLimit,
  121. PPS_SPIN_LOCK Lock
  122. );
  123. /* End Prototypes */
  124. /* end adapter.h */