-
Notifications
You must be signed in to change notification settings - Fork 7
/
txqueue.h
48 lines (36 loc) · 1.13 KB
/
txqueue.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
45
46
47
48
#pragma once
//--------------------------------------
// TCB (Transmit Control Block)
//--------------------------------------
typedef struct _RT_TCB
{
USHORT FirstTxDescIdx;
ULONG NumTxDesc;
} RT_TCB;
typedef struct _RT_TXQUEUE {
RT_ADAPTER* Adapter;
RT_INTERRUPT* Interrupt;
NET_RING_COLLECTION const* Rings;
RT_TCB* PacketContext;
// descriptor information
WDFCOMMONBUFFER TxdArray;
TxDesc* TxdBase;
size_t TxSize;
USHORT NumTxDesc;
USHORT TxDescIndex;
NET_EXTENSION ChecksumExtension;
NET_EXTENSION GsoExtension;
NET_EXTENSION VirtualAddressExtension;
NET_EXTENSION LogicalAddressExtension;
NET_EXTENSION Ieee8021qExtension;
ULONG QueueId;
UINT8 Priority;
} RT_TXQUEUE, *PRT_TXQUEUE;
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(RT_TXQUEUE, RtGetTxQueueContext);
NTSTATUS RtTxQueueInitialize(_In_ NETPACKETQUEUE txQueue, _In_ RT_ADAPTER* adapter);
EVT_WDF_OBJECT_CONTEXT_DESTROY EvtTxQueueDestroy;
EVT_PACKET_QUEUE_SET_NOTIFICATION_ENABLED EvtTxQueueSetNotificationEnabled;
EVT_PACKET_QUEUE_ADVANCE EvtTxQueueAdvance;
EVT_PACKET_QUEUE_CANCEL EvtTxQueueCancel;
EVT_PACKET_QUEUE_START EvtTxQueueStart;
EVT_PACKET_QUEUE_STOP EvtTxQueueStop;