forked from coolstar/if_re-win
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rxqueue.h
44 lines (32 loc) · 1.05 KB
/
rxqueue.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
typedef struct _RT_RXQUEUE {
RT_ADAPTER* Adapter;
RT_INTERRUPT* Interrupt;
NET_RING_COLLECTION const* Rings;
// descriptor information
WDFCOMMONBUFFER RxdArray;
RxDesc* RxdBase;
size_t RxdSize;
USHORT NumRxDesc;
UINT32 DescStartIdx;
NET_EXTENSION ChecksumExtension;
NET_EXTENSION VirtualAddressExtension;
NET_EXTENSION LogicalAddressExtension;
NET_EXTENSION HashValueExtension;
NET_EXTENSION Ieee8021qExtension;
ULONG QueueId;
} RT_RXQUEUE, * PRT_RXQUEUE;
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(RT_RXQUEUE, RtGetRxQueueContext);
NTSTATUS RtRxQueueInitialize(_In_ NETPACKETQUEUE rxQueue, _In_ RT_ADAPTER* adapter);
_Requires_lock_held_(adapter->Lock)
void RtAdapterUpdateRcr(_In_ RT_ADAPTER* adapter);
void
RxSlideBuffers(
_In_ RT_RXQUEUE* rx
);
EVT_WDF_OBJECT_CONTEXT_DESTROY EvtRxQueueDestroy;
EVT_PACKET_QUEUE_SET_NOTIFICATION_ENABLED EvtRxQueueSetNotificationEnabled;
EVT_PACKET_QUEUE_ADVANCE EvtRxQueueAdvance;
EVT_PACKET_QUEUE_CANCEL EvtRxQueueCancel;
EVT_PACKET_QUEUE_START EvtRxQueueStart;
EVT_PACKET_QUEUE_STOP EvtRxQueueStop;