-
Notifications
You must be signed in to change notification settings - Fork 1
/
txqueue.h
33 lines (23 loc) · 920 Bytes
/
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
#pragma once
typedef struct _MTK_TXQUEUE {
MTK_ADAPTER* Adapter;
NET_RING_COLLECTION const* Rings;
// descriptor information
WDFCOMMONBUFFER TxdArray;
NET_EXTENSION ChecksumExtension;
NET_EXTENSION GsoExtension;
NET_EXTENSION VirtualAddressExtension;
NET_EXTENSION LogicalAddressExtension;
NET_EXTENSION Ieee8021qExtension;
ULONG QueueId;
} MTK_TXQUEUE, *PMTK_TXQUEUE;
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(MTK_TXQUEUE, MtkGetTxQueueContext);
NTSTATUS MtkTxQueueInitialize(_In_ NETPACKETQUEUE txQueue, _In_ MTK_ADAPTER* adapter);
_Requires_lock_held_(tx->Adapter->Lock)
void MtkTxQueueStart(_In_ MTK_TXQUEUE* tx);
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;