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.

125 lines
3.6 KiB

  1. //
  2. // NDIS WAN Information structures used
  3. // by NDIS 5.0 Miniport drivers
  4. //
  5. //
  6. // Defines for the individual fields are the
  7. // same as for NDIS 3.x/4.x Wan miniports.
  8. //
  9. // See the DDK.
  10. //
  11. //
  12. // Information that applies to all VC's on
  13. // this adapter.
  14. //
  15. // OID: OID_WAN_CO_GET_INFO
  16. //
  17. typedef struct _NDIS_WAN_CO_INFO {
  18. OUT ULONG MaxFrameSize;
  19. OUT ULONG MaxSendWindow;
  20. OUT ULONG FramingBits;
  21. OUT ULONG DesiredACCM;
  22. } NDIS_WAN_CO_INFO, *PNDIS_WAN_CO_INFO;
  23. //
  24. // Set VC specific PPP framing information.
  25. //
  26. // OID: OID_WAN_CO_SET_LINK_INFO
  27. //
  28. typedef struct _NDIS_WAN_CO_SET_LINK_INFO {
  29. IN ULONG MaxSendFrameSize;
  30. IN ULONG MaxRecvFrameSize;
  31. IN ULONG SendFramingBits;
  32. IN ULONG RecvFramingBits;
  33. IN ULONG SendCompressionBits;
  34. IN ULONG RecvCompressionBits;
  35. IN ULONG SendACCM;
  36. IN ULONG RecvACCM;
  37. } NDIS_WAN_CO_SET_LINK_INFO, *PNDIS_WAN_CO_SET_LINK_INFO;
  38. //
  39. // Get VC specific PPP framing information.
  40. //
  41. // OID: OID_WAN_CO_GET_LINK_INFO
  42. //
  43. typedef struct _NDIS_WAN_CO_GET_LINK_INFO {
  44. OUT ULONG MaxSendFrameSize;
  45. OUT ULONG MaxRecvFrameSize;
  46. OUT ULONG SendFramingBits;
  47. OUT ULONG RecvFramingBits;
  48. OUT ULONG SendCompressionBits;
  49. OUT ULONG RecvCompressionBits;
  50. OUT ULONG SendACCM;
  51. OUT ULONG RecvACCM;
  52. } NDIS_WAN_CO_GET_LINK_INFO, *PNDIS_WAN_CO_GET_LINK_INFO;
  53. //
  54. // Get VC specific PPP compression information
  55. //
  56. // OID: OID_WAN_CO_GET_COMP_INFO
  57. //
  58. typedef struct _NDIS_WAN_CO_GET_COMP_INFO {
  59. OUT NDIS_WAN_COMPRESS_INFO SendCapabilities;
  60. OUT NDIS_WAN_COMPRESS_INFO RecvCapabilities;
  61. } NDIS_WAN_CO_GET_COMP_INFO, *PNDIS_WAN_CO_GET_COMP_INFO;
  62. //
  63. // Set VC specific PPP compression information
  64. //
  65. // OID: OID_WAN_CO_SET_COMP_INFO
  66. //
  67. typedef struct _NDIS_WAN_CO_SET_COMP_INFO {
  68. IN NDIS_WAN_COMPRESS_INFO SendCapabilities;
  69. IN NDIS_WAN_COMPRESS_INFO RecvCapabilities;
  70. } NDIS_WAN_CO_SET_COMP_INFO, *PNDIS_WAN_CO_SET_COMP_INFO;
  71. //
  72. // Get VC specific statistics
  73. //
  74. // OID: OID_WAN_CO_GET_STATS_INFO
  75. //
  76. typedef struct _NDIS_WAN_CO_GET_STATS_INFO {
  77. OUT ULONG BytesSent;
  78. OUT ULONG BytesRcvd;
  79. OUT ULONG FramesSent;
  80. OUT ULONG FramesRcvd;
  81. OUT ULONG CRCErrors; // Serial-like info only
  82. OUT ULONG TimeoutErrors; // Serial-like info only
  83. OUT ULONG AlignmentErrors; // Serial-like info only
  84. OUT ULONG SerialOverrunErrors; // Serial-like info only
  85. OUT ULONG FramingErrors; // Serial-like info only
  86. OUT ULONG BufferOverrunErrors; // Serial-like info only
  87. OUT ULONG BytesTransmittedUncompressed; // Compression info only
  88. OUT ULONG BytesReceivedUncompressed; // Compression info only
  89. OUT ULONG BytesTransmittedCompressed; // Compression info only
  90. OUT ULONG BytesReceivedCompressed; // Compression info only
  91. } NDIS_WAN_CO_GET_STATS_INFO, *PNDIS_WAN_CO_GET_STATS_INFO;
  92. //
  93. // Used to notify NdisWan of Errors. See error
  94. // bit mask in ndiswan.h
  95. //
  96. // NDIS_STATUS: NDIS_STATUS_WAN_CO_FRAGMENT
  97. //
  98. typedef struct _NDIS_WAN_CO_FRAGMENT {
  99. IN ULONG Errors;
  100. } NDIS_WAN_CO_FRAGMENT, *PNDIS_WAN_CO_FRAGMENT;
  101. //
  102. // Used to notify NdisWan of changes in link speed and
  103. // send window. Can be given at any time. NdisWan will honor
  104. // any send window (even zero). NdisWan will default zero
  105. // TransmitSpeed/ReceiveSpeed settings to 28.8Kbs.
  106. //
  107. // NDIS_STATUS: NDIS_STATUS_WAN_CO_LINKPARAMS
  108. //
  109. typedef struct _WAN_CO_LINKPARAMS {
  110. ULONG TransmitSpeed; // Transmit speed of the VC in Bps
  111. ULONG ReceiveSpeed; // Receive speed of the VC in Bps
  112. ULONG SendWindow; // Current send window for the VC
  113. } WAN_CO_LINKPARAMS, *PWAN_CO_LINKPARAMS;