Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[firefly-linux-kernel-4.4.55.git] / drivers / staging / rtl8192e / rtl819x_TS.h
1 /******************************************************************************
2  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
3  *
4  * This program is distributed in the hope that it will be useful, but WITHOUT
5  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
7  * more details.
8  *
9  * You should have received a copy of the GNU General Public License along with
10  * this program; if not, write to the Free Software Foundation, Inc.,
11  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
12  *
13  * The full GNU General Public License is included in this distribution in the
14  * file called LICENSE.
15  *
16  * Contact Information:
17  * wlanfae <wlanfae@realtek.com>
18 ******************************************************************************/
19 #ifndef _TSTYPE_H_
20 #define _TSTYPE_H_
21 #include "rtl819x_Qos.h"
22 #define TS_ADDBA_DELAY          60
23
24 #define TOTAL_TS_NUM            16
25 #define TCLAS_NUM               4
26
27 enum tr_select {
28         TX_DIR = 0,
29         RX_DIR = 1,
30 };
31
32 struct ts_common_info {
33         struct list_head                List;
34         struct timer_list               SetupTimer;
35         struct timer_list               InactTimer;
36         u8                              Addr[ETH_ALEN];
37         union tspec_body TSpec;
38         union qos_tclas TClass[TCLAS_NUM];
39         u8                              TClasProc;
40         u8                              TClasNum;
41 };
42
43 struct tx_ts_record {
44         struct ts_common_info TsCommonInfo;
45         u16                             TxCurSeq;
46         struct ba_record TxPendingBARecord;
47         struct ba_record TxAdmittedBARecord;
48         u8                              bAddBaReqInProgress;
49         u8                              bAddBaReqDelayed;
50         u8                              bUsingBa;
51         u8                              bDisable_AddBa;
52         struct timer_list               TsAddBaTimer;
53         u8                              num;
54 };
55
56 struct rx_ts_record {
57         struct ts_common_info TsCommonInfo;
58         u16                             RxIndicateSeq;
59         u16                             RxTimeoutIndicateSeq;
60         struct list_head                RxPendingPktList;
61         struct timer_list               RxPktPendingTimer;
62         struct ba_record RxAdmittedBARecord;
63         u16                             RxLastSeqNum;
64         u8                              RxLastFragNum;
65         u8                              num;
66 };
67
68
69
70 #endif