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.

179 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. recv.h
  5. Abstract:
  6. defines for packet receive routines
  7. Author:
  8. Charlie Wickham (charlwi) 08-May-1996
  9. Revision History:
  10. --*/
  11. #ifndef _RECV_
  12. #define _RECV_
  13. /* Prototypes */ /* Generated by Emacs 19.17.0 on Thu May 09 10:34:42 1996 */
  14. /*++
  15. Routine Description:
  16. Called by the NIC to indicate a data as an NDIS_PACKET. Switch to miniport mode
  17. and continue the packet along its way
  18. Arguments:
  19. See the DDK...
  20. Return Values:
  21. None
  22. --*/
  23. INT
  24. ClReceivePacket(
  25. IN NDIS_HANDLE ProtocolBindingContext,
  26. IN PNDIS_PACKET Packet
  27. );
  28. /*++
  29. Routine Description:
  30. Arguments:
  31. See the DDK...
  32. Return Values:
  33. None
  34. --*/
  35. VOID
  36. MpReturnPacket(
  37. IN NDIS_HANDLE MiniportAdapterContext,
  38. IN PNDIS_PACKET Packet
  39. );
  40. /*++
  41. Routine Description:
  42. Called by NIC to notify protocol of incoming data
  43. Arguments:
  44. See the DDK...
  45. Return Values:
  46. None
  47. --*/
  48. NDIS_STATUS
  49. ClReceiveIndication(
  50. IN NDIS_HANDLE ProtocolBindingContext,
  51. IN NDIS_HANDLE MacReceiveContext,
  52. IN PVOID HeaderBuffer,
  53. IN UINT HeaderBufferSize,
  54. IN PVOID LookAheadBuffer,
  55. IN UINT LookaheadBufferSize,
  56. IN UINT PacketSize
  57. );
  58. /*++
  59. Routine Description:
  60. Called by NIC via NdisIndicateReceiveComplete
  61. Arguments:
  62. See the DDK...
  63. Return Values:
  64. None
  65. --*/
  66. VOID
  67. ClReceiveComplete(
  68. IN NDIS_HANDLE ProtocolBindingContext
  69. );
  70. /*++
  71. Routine Description:
  72. Arguments:
  73. See the DDK...
  74. Return Values:
  75. None
  76. --*/
  77. NDIS_STATUS
  78. MpTransferData(
  79. OUT PNDIS_PACKET Packet,
  80. OUT PUINT BytesTransferred,
  81. IN NDIS_HANDLE MiniportAdapterContext,
  82. IN NDIS_HANDLE MiniportReceiveContext,
  83. IN UINT ByteOffset,
  84. IN UINT BytesToTransfer
  85. );
  86. /*++
  87. Routine Description:
  88. Completion routine for NdisTransferData
  89. Arguments:
  90. See the DDK...
  91. Return Values:
  92. None
  93. --*/
  94. VOID
  95. ClTransferDataComplete(
  96. IN NDIS_HANDLE ProtocolBindingContext,
  97. IN PNDIS_PACKET pNdisPacket,
  98. IN NDIS_STATUS Status,
  99. IN UINT BytesTransferred
  100. );
  101. UINT
  102. ClCoReceivePacket(
  103. IN NDIS_HANDLE ProtocolBindingContext,
  104. IN NDIS_HANDLE ProtocolVcContext,
  105. IN PNDIS_PACKET Packet
  106. );
  107. /* End Prototypes */
  108. #endif /* _RECV_ */
  109. /* end recv.h */