22 DPRINT(
"Asynchronous adapter open completed\n");
36 DPRINT(
"Asynchronous adapter close completed\n");
56 DPRINT1(
"NetPnPEvent: QueryRemoveDevice\n");
66 DPRINT1(
"NetPnPEvent: SetPower D0\n");
75 DPRINT1(
"NetPnPEvent: QueryPower\n");
79 DPRINT1(
"NetPnPEvent: CancelRemoveDevice\n");
83 DPRINT1(
"NetPnPEvent: Reconfigure\n");
87 DPRINT1(
"NetPnPEvent: BindList\n");
91 DPRINT(
"NetPnPEvent: BindsComplete\n");
95 DPRINT1(
"NetPnPEvent: PnPCapabilities\n");
112 DPRINT(
"Asynchronous adapter send completed\n");
128 DPRINT(
"Asynchronous adapter transfer completed\n");
142 DPRINT(
"Asynchronous adapter reset completed\n");
157 DPRINT(
"Asynchronous adapter request completed\n");
169 UINT HeaderBufferSize,
170 PVOID LookAheadBuffer,
171 UINT LookaheadBufferSize,
194 (
PUCHAR)PacketBuffer + HeaderBufferSize,
231 DPRINT1(
"Failed to transfer data with status 0x%x\n",
Status);
338 CurrentEntry = CurrentEntry->
Flink;
349 while (CurrentEntry != &AdapterContext->
PacketList)
354 CurrentEntry = CurrentEntry->
Flink;
428 DPRINT1(
"Failed to allocate buffer pool with status 0x%x\n",
Status);
441 DPRINT1(
"Failed to allocate packet pool with status 0x%x\n",
Status);
475 DPRINT1(
"Failed to open adapter for bind with status 0x%x\n",
Status);
487 Request.DATA.QUERY_INFORMATION.InformationBufferLength =
sizeof(
ULONG);
508 DPRINT1(
"Failed to get MAC options with status 0x%x\n",
Status);
541 PVOID SystemSpecific1,
VOID EXPORT NdisAllocateBufferPool(OUT PNDIS_STATUS Status, OUT PNDIS_HANDLE PoolHandle, IN UINT NumberOfDescriptors)
VOID EXPORT NdisFreeBufferPool(IN NDIS_HANDLE PoolHandle)
VOID EXPORT NdisFreePacketPool(IN NDIS_HANDLE PoolHandle)
VOID EXPORT NdisAllocatePacketPool(OUT PNDIS_STATUS Status, OUT PNDIS_HANDLE PoolHandle, IN UINT NumberOfDescriptors, IN UINT ProtocolReservedLength)
VOID EXPORT NdisOpenAdapter(OUT PNDIS_STATUS Status, OUT PNDIS_STATUS OpenErrorStatus, OUT PNDIS_HANDLE NdisBindingHandle, OUT PUINT SelectedMediumIndex, IN PNDIS_MEDIUM MediumArray, IN UINT MediumArraySize, IN NDIS_HANDLE NdisProtocolHandle, IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_STRING AdapterName, IN UINT OpenOptions, IN PSTRING AddressingInformation OPTIONAL)
VOID EXPORT NdisCloseAdapter(OUT PNDIS_STATUS Status, IN NDIS_HANDLE NdisBindingHandle)
VOID EXPORT NdisTransferData(OUT PNDIS_STATUS Status, IN NDIS_HANDLE NdisBindingHandle, IN NDIS_HANDLE MacReceiveContext, IN UINT ByteOffset, IN UINT BytesToTransfer, IN OUT PNDIS_PACKET Packet, OUT PUINT BytesTransferred)
NDIS_HANDLE GlobalProtocolHandle
LIST_ENTRY GlobalAdapterList
KSPIN_LOCK GlobalAdapterListLock
PNDIS_PACKET CreatePacketFromPoolBuffer(PNDISUIO_ADAPTER_CONTEXT AdapterContext, PVOID Buffer, ULONG BufferSize)
VOID CleanupAndFreePacket(PNDIS_PACKET Packet, BOOLEAN FreePool)
VOID NTAPI NduResetComplete(NDIS_HANDLE ProtocolBindingContext, NDIS_STATUS Status)
NDIS_STATUS NTAPI NduReceive(NDIS_HANDLE ProtocolBindingContext, NDIS_HANDLE MacReceiveContext, PVOID HeaderBuffer, UINT HeaderBufferSize, PVOID LookAheadBuffer, UINT LookaheadBufferSize, UINT PacketSize)
VOID NTAPI NduStatus(NDIS_HANDLE ProtocolBindingContext, NDIS_STATUS GeneralStatus, PVOID StatusBuffer, UINT StatusBufferSize)
static NDIS_STATUS UnbindAdapterByContext(PNDISUIO_ADAPTER_CONTEXT AdapterContext)
VOID NTAPI NduOpenAdapterComplete(NDIS_HANDLE ProtocolBindingContext, NDIS_STATUS Status, NDIS_STATUS OpenStatus)
VOID NTAPI NduCloseAdapterComplete(NDIS_HANDLE ProtocolBindingContext, NDIS_STATUS Status)
VOID NTAPI NduTransferDataComplete(NDIS_HANDLE ProtocolBindingContext, PNDIS_PACKET Packet, NDIS_STATUS Status, UINT BytesTransferred)
VOID NTAPI NduReceiveComplete(NDIS_HANDLE ProtocolBindingContext)
VOID NTAPI NduUnbindAdapter(PNDIS_STATUS Status, NDIS_HANDLE ProtocolBindingContext, NDIS_HANDLE UnbindContext)
NDIS_STATUS NTAPI NduNetPnPEvent(NDIS_HANDLE ProtocolBindingContext, PNET_PNP_EVENT NetPnPEvent)
VOID NTAPI NduBindAdapter(PNDIS_STATUS Status, NDIS_HANDLE BindContext, PNDIS_STRING DeviceName, PVOID SystemSpecific1, PVOID SystemSpecific2)
static NDIS_STATUS BindAdapterByName(PNDIS_STRING DeviceName)
VOID NTAPI NduRequestComplete(NDIS_HANDLE ProtocolBindingContext, PNDIS_REQUEST NdisRequest, NDIS_STATUS Status)
VOID NTAPI NduSendComplete(NDIS_HANDLE ProtocolBindingContext, PNDIS_PACKET Packet, NDIS_STATUS Status)
VOID NTAPI NduStatusComplete(NDIS_HANDLE ProtocolBindingContext)
#define IO_NETWORK_INCREMENT
#define RemoveEntryList(Entry)
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
#define KeInitializeEvent(pEvt, foo, foo2)
#define KeReleaseSpinLock(sl, irql)
#define KeSetEvent(pEvt, foo, foo2)
#define KeAcquireSpinLock(sl, irql)
#define InitializeListHead(ListHead)
#define KeInitializeSpinLock(sl)
#define ExAllocatePool(type, size)
PLIST_ENTRY NTAPI ExInterlockedInsertTailList(IN OUT PLIST_ENTRY ListHead, IN OUT PLIST_ENTRY ListEntry, IN OUT PKSPIN_LOCK Lock)
#define NDIS_STATUS_PENDING
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
_In_ PVOID _In_ PVOID SystemSpecific2
_In_opt_ NDIS_HANDLE _In_ NDIS_STATUS _In_ PVOID _In_ UINT StatusBufferSize
#define NdisCopyLookaheadData(Destination, Source, Length, MacOptions)
#define NDIS_STATUS_FAILURE
_In_ NDIS_HANDLE _In_ PNET_PNP_EVENT NetPnPEvent
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_STATUS _Out_ PNDIS_HANDLE _Out_ PUINT _In_ UINT _In_ NDIS_HANDLE _In_ NDIS_HANDLE ProtocolBindingContext
#define NDIS_STATUS_SUCCESS
#define PROTOCOL_RESERVED_SIZE_IN_PACKET
#define NDIS_STATUS_NOT_ACCEPTED
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_STATUS OpenErrorStatus
_In_opt_ NDIS_HANDLE _In_ NDIS_STATUS _In_ PVOID StatusBuffer
_In_opt_ NDIS_HANDLE _In_opt_ NDIS_HANDLE _Inout_ PNDIS_REQUEST NdisRequest
_In_ NDIS_STATUS _In_ NDIS_STATUS OpenStatus
@ NdisRequestQueryInformation
#define NDIS_STATUS_RESOURCES
_In_opt_ NDIS_HANDLE _In_ NDIS_STATUS GeneralStatus
@ NetEventPnPCapabilities
@ NetEventQueryRemoveDevice
@ NetEventCancelRemoveDevice
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
enum _NDIS_MEDIUM NDIS_MEDIUM
#define OID_GEN_MAC_OPTIONS
enum _NDIS_DEVICE_POWER_STATE * PNDIS_DEVICE_POWER_STATE
struct _LIST_ENTRY * Flink
NDIS_HANDLE PacketPoolHandle
NDIS_HANDLE BufferPoolHandle
UNICODE_STRING DeviceName
NDIS_HANDLE BindingHandle
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _In_ PWDF_USB_CONTROL_SETUP_PACKET _In_opt_ PWDF_MEMORY_DESCRIPTOR _Out_opt_ PULONG BytesTransferred
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql