77 IN ULONG InformationBufferLength,
85 union _GENERIC_INFORMATION
95 copySource = &GenericInfo;
96 copyLength =
sizeof(
ULONG);
153 GenericInfo.Ulong = 0;
161 static UCHAR vendorDesc[] =
"ReactOS Team";
162 copySource = vendorDesc;
163 copyLength =
sizeof(vendorDesc);
173 copyLength =
sizeof(
USHORT);
174 GenericInfo.Ushort = (NDIS_MINIPORT_MAJOR_VERSION << 8) + NDIS_MINIPORT_MINOR_VERSION;
183 GenericInfo.Ulong = 1;
215 *BytesNeeded =
sizeof(
ULONG64);
216 if (InformationBufferLength >=
sizeof(
ULONG64))
221 else if (InformationBufferLength >=
sizeof(
ULONG))
250 if (copyLength > InformationBufferLength)
252 *BytesNeeded = copyLength;
260 *BytesNeeded = copyLength;
280 IN ULONG InformationBufferLength,
293 if (InformationBufferLength <
sizeof(
ULONG))
296 *BytesNeeded =
sizeof(
ULONG);
312 *BytesNeeded =
sizeof(
ULONG);
334 if (InformationBufferLength <
sizeof(
ULONG))
337 *BytesNeeded =
sizeof(
ULONG);
364 if (InformationBufferLength >
sizeof(Adapter->
MulticastList))
const char * Oid2Str(IN NDIS_OID Oid)
#define UNIMPLEMENTED_DBGBREAK(...)
#define NDIS_DbgPrint(_t_, _x_)
NDIS_STATUS NTAPI NICApplyPacketFilter(IN PE1000_ADAPTER Adapter)
NDIS_STATUS NTAPI NICUpdateMulticastList(IN PE1000_ADAPTER Adapter)
static NDIS_OID SupportedOidList[]
NDIS_STATUS NTAPI MiniportSetInformation(IN NDIS_HANDLE MiniportAdapterContext, IN NDIS_OID Oid, IN PVOID InformationBuffer, IN ULONG InformationBufferLength, OUT PULONG BytesRead, OUT PULONG BytesNeeded)
static ULONG64 NICQueryStatisticCounter(_In_ PE1000_ADAPTER Adapter, _In_ NDIS_OID Oid)
NDIS_STATUS NTAPI MiniportQueryInformation(IN NDIS_HANDLE MiniportAdapterContext, IN NDIS_OID Oid, IN PVOID InformationBuffer, IN ULONG InformationBufferLength, OUT PULONG BytesWritten, OUT PULONG BytesNeeded)
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
_Must_inspect_result_ typedef _Out_ PHIDP_CAPS Capabilities
#define NDIS_PACKET_TYPE_PROMISCUOUS
#define NDIS_STATUS_INVALID_DATA
#define NDIS_STATUS_NOT_SUPPORTED
#define NDIS_PACKET_TYPE_MAC_FRAME
#define NDIS_STATUS_INVALID_LENGTH
#define NDIS_MAC_OPTION_TRANSFERS_NOT_PEND
#define NDIS_MAC_OPTION_RECEIVE_SERIALIZED
#define NDIS_PACKET_TYPE_BROADCAST
#define NDIS_STATUS_SUCCESS
#define NDIS_STATUS_BUFFER_TOO_SHORT
#define NDIS_PACKET_TYPE_MULTICAST
#define NDIS_PACKET_TYPE_DIRECTED
#define NDIS_PACKET_TYPE_ALL_MULTICAST
#define NDIS_MAC_OPTION_NO_LOOPBACK
#define NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA
#define NdisMoveMemory(Destination, Source, Length)
#define NDIS_STATUS_MULTICAST_FULL
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::@1001 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
_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 BytesRead