xref: /linux/drivers/staging/rtl8192e/rtl819x_TS.h (revision e91c37f1)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
4  *
5  * Contact Information: wlanfae <wlanfae@realtek.com>
6  */
7 #ifndef _TSTYPE_H_
8 #define _TSTYPE_H_
9 #include "rtl819x_Qos.h"
10 #define TS_ADDBA_DELAY		60
11 
12 #define TOTAL_TS_NUM		16
13 
14 enum tr_select {
15 	TX_DIR = 0,
16 	RX_DIR = 1,
17 };
18 
19 struct ts_common_info {
20 	struct list_head		list;
21 	u8				addr[ETH_ALEN];
22 	struct qos_tsinfo tspec;
23 };
24 
25 struct tx_ts_record {
26 	struct ts_common_info ts_common_info;
27 	u16				tx_cur_seq;
28 	struct ba_record tx_pending_ba_record;
29 	struct ba_record tx_admitted_ba_record;
30 	u8				add_ba_req_in_progress;
31 	u8				add_ba_req_delayed;
32 	u8				using_ba;
33 	u8				disable_add_ba;
34 	struct timer_list		ts_add_ba_timer;
35 	u8				num;
36 };
37 
38 struct rx_ts_record {
39 	struct ts_common_info ts_common_info;
40 	u16 rx_indicate_seq;
41 	u16 rx_timeout_indicate_seq;
42 	struct list_head rx_pending_pkt_list;
43 	struct timer_list rx_pkt_pending_timer;
44 	struct ba_record rx_admitted_ba_record;
45 	u16 rx_last_seq_num;
46 	u8 rx_last_frag_num;
47 	u8 num;
48 };
49 
50 #endif
51