80{
85 union _GENERIC_INFORMATION
86 {
92 } GenericInfo;
93
95 copySource = &GenericInfo;
96 copyLength =
sizeof(
ULONG);
97
98 switch (Oid)
99 {
103 break;
104
107 break;
108
112 break;
113
116 {
119 break;
120 }
121
128 break;
129
133 break;
134
137 break;
138
141 break;
142
145 break;
146
149 break;
150
152
153 GenericInfo.Ulong = 0;
157 break;
158
160 {
161 static UCHAR vendorDesc[] =
"ReactOS Team";
162 copySource = vendorDesc;
163 copyLength = sizeof(vendorDesc);
164 break;
165 }
166
169 break;
170
172 {
173 copyLength =
sizeof(
USHORT);
174 GenericInfo.Ushort = (NDIS_MINIPORT_MAJOR_VERSION << 8) + NDIS_MINIPORT_MINOR_VERSION;
175 break;
176 }
177
180 break;
181
183 GenericInfo.Ulong = 1;
184 break;
185
191 break;
192
195 break;
196
200 break;
201
205 break;
206
212 {
214
215 *BytesNeeded =
sizeof(
ULONG64);
216 if (InformationBufferLength >=
sizeof(
ULONG64))
217 {
220 }
221 else if (InformationBufferLength >=
sizeof(
ULONG))
222 {
225 }
226 else
227 {
230 }
232 }
233
235 {
237
239 break;
240 }
241
242 default:
245 break;
246 }
247
249 {
250 if (copyLength > InformationBufferLength)
251 {
252 *BytesNeeded = copyLength;
255 }
256 else
257 {
260 *BytesNeeded = copyLength;
261 }
262 }
263 else
264 {
266 *BytesNeeded = 0;
267 }
268
272}
const char * Oid2Str(IN NDIS_OID Oid)
#define UNIMPLEMENTED_DBGBREAK(...)
#define NDIS_DbgPrint(_t_, _x_)
static NDIS_OID SupportedOidList[]
static ULONG64 NICQueryStatisticCounter(_In_ PE1000_ADAPTER Adapter, _In_ NDIS_OID Oid)
static NDIS_STATUS NICFillPowerManagementCapabilities(_In_ PE1000_ADAPTER Adapter, _Out_ PNDIS_PNP_CAPABILITIES Capabilities)
#define MAXIMUM_FRAME_SIZE
struct _E1000_ADAPTER * PE1000_ADAPTER
#define RECEIVE_BUFFER_SIZE
#define MAXIMUM_MULTICAST_ADDRESSES
#define IEEE_802_ADDR_LENGTH
#define NDIS_STATUS_NOT_SUPPORTED
#define NDIS_MAC_OPTION_TRANSFERS_NOT_PEND
#define NDIS_MAC_OPTION_RECEIVE_SERIALIZED
#define NDIS_STATUS_SUCCESS
#define NDIS_STATUS_BUFFER_TOO_SHORT
#define NDIS_MAC_OPTION_NO_LOOPBACK
#define NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA
#define NdisMoveMemory(Destination, Source, Length)
enum _NDIS_MEDIUM NDIS_MEDIUM
#define OID_GEN_TRANSMIT_BLOCK_SIZE
#define OID_GEN_MAXIMUM_TOTAL_SIZE
#define OID_GEN_XMIT_ERROR
#define OID_GEN_VENDOR_DRIVER_VERSION
#define OID_802_3_PERMANENT_ADDRESS
#define OID_GEN_LINK_SPEED
#define OID_GEN_VENDOR_ID
#define OID_GEN_CURRENT_PACKET_FILTER
#define OID_GEN_RCV_NO_BUFFER
#define OID_GEN_RECEIVE_BUFFER_SPACE
#define OID_802_3_MAXIMUM_LIST_SIZE
#define OID_GEN_DRIVER_VERSION
#define OID_802_3_CURRENT_ADDRESS
#define OID_802_3_MULTICAST_LIST
struct _NDIS_PNP_CAPABILITIES NDIS_PNP_CAPABILITIES
#define OID_GEN_TRANSMIT_BUFFER_SPACE
#define OID_GEN_MEDIA_SUPPORTED
#define OID_GEN_MAXIMUM_FRAME_SIZE
#define OID_GEN_MEDIA_IN_USE
#define OID_GEN_MEDIA_CONNECT_STATUS
#define OID_GEN_MAXIMUM_LOOKAHEAD
#define OID_GEN_RCV_ERROR
@ NdisHardwareStatusReady
#define OID_PNP_CAPABILITIES
#define OID_GEN_CURRENT_LOOKAHEAD
#define OID_GEN_MAC_OPTIONS
#define OID_GEN_VENDOR_DESCRIPTION
#define OID_GEN_SUPPORTED_LIST
#define OID_GEN_RECEIVE_BLOCK_SIZE
#define OID_GEN_MAXIMUM_SEND_PACKETS
#define OID_GEN_HARDWARE_STATUS
struct _E1000_ADAPTER::@999 MulticastList[MAXIMUM_MULTICAST_ADDRESSES]
UCHAR PermanentMacAddress[IEEE_802_ADDR_LENGTH]
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesWritten