-
Notifications
You must be signed in to change notification settings - Fork 1
/
rxqueue.h
35 lines (27 loc) · 950 Bytes
/
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
#pragma once
typedef struct _IGB_RXQUEUE {
IGB_ADAPTER* Adapter;
WDFINTERRUPT InterruptHandle;
NET_RING_COLLECTION const* Rings;
// descriptor information
WDFCOMMONBUFFER RxdArray;
union e1000_adv_rx_desc* RxdBase;
size_t RxdSize;
USHORT NumRxDesc;
NET_EXTENSION LogicalAddressExtension;
NET_EXTENSION ChecksumExtension;
NET_EXTENSION Ieee8021qExtension;
/*
NET_EXTENSION VirtualAddressExtension;
NET_EXTENSION HashValueExtension;
*/
ULONG QueueId;
} IGB_RXQUEUE, *PIGB_RXQUEUE;
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(IGB_RXQUEUE, IgbGetRxQueueContext);
NTSTATUS IgbRxQueueInitialize(_In_ NETPACKETQUEUE rxQueue, _In_ IGB_ADAPTER* adapter);
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;