Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 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_SETUP_TIMEOUT 60 |
| 23 | #define TS_INACT_TIMEOUT 60 |
| 24 | #define TS_ADDBA_DELAY 60 |
| 25 | |
| 26 | #define TOTAL_TS_NUM 16 |
| 27 | #define TCLAS_NUM 4 |
| 28 | |
Larry Finger | 39b2a4a | 2011-07-19 19:31:37 -0500 | [diff] [blame] | 29 | enum tr_select { |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 30 | TX_DIR = 0, |
| 31 | RX_DIR = 1, |
Larry Finger | 39b2a4a | 2011-07-19 19:31:37 -0500 | [diff] [blame] | 32 | }; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 33 | |
Larry Finger | 74724de | 2011-07-18 20:19:19 -0500 | [diff] [blame] | 34 | struct ts_common_info { |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 35 | struct list_head List; |
| 36 | struct timer_list SetupTimer; |
| 37 | struct timer_list InactTimer; |
Mateusz Kulikowski | 06c1110 | 2015-05-31 20:19:21 +0200 | [diff] [blame] | 38 | u8 Addr[ETH_ALEN]; |
Larry Finger | ed306e4 | 2011-07-19 10:25:55 -0500 | [diff] [blame] | 39 | union tspec_body TSpec; |
Larry Finger | 626f951 | 2011-07-19 10:27:46 -0500 | [diff] [blame] | 40 | union qos_tclas TClass[TCLAS_NUM]; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 41 | u8 TClasProc; |
| 42 | u8 TClasNum; |
Larry Finger | 74724de | 2011-07-18 20:19:19 -0500 | [diff] [blame] | 43 | }; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 44 | |
Larry Finger | 60554f2 | 2011-07-18 20:10:03 -0500 | [diff] [blame] | 45 | struct tx_ts_record { |
Larry Finger | 74724de | 2011-07-18 20:19:19 -0500 | [diff] [blame] | 46 | struct ts_common_info TsCommonInfo; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 47 | u16 TxCurSeq; |
Larry Finger | 8cf3331 | 2011-07-18 21:03:22 -0500 | [diff] [blame] | 48 | struct ba_record TxPendingBARecord; |
| 49 | struct ba_record TxAdmittedBARecord; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 50 | u8 bAddBaReqInProgress; |
| 51 | u8 bAddBaReqDelayed; |
| 52 | u8 bUsingBa; |
| 53 | u8 bDisable_AddBa; |
| 54 | struct timer_list TsAddBaTimer; |
| 55 | u8 num; |
Larry Finger | 60554f2 | 2011-07-18 20:10:03 -0500 | [diff] [blame] | 56 | }; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 57 | |
Larry Finger | 2c47ae2 | 2011-07-18 20:11:56 -0500 | [diff] [blame] | 58 | struct rx_ts_record { |
Larry Finger | 74724de | 2011-07-18 20:19:19 -0500 | [diff] [blame] | 59 | struct ts_common_info TsCommonInfo; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 60 | u16 RxIndicateSeq; |
| 61 | u16 RxTimeoutIndicateSeq; |
| 62 | struct list_head RxPendingPktList; |
| 63 | struct timer_list RxPktPendingTimer; |
Larry Finger | 8cf3331 | 2011-07-18 21:03:22 -0500 | [diff] [blame] | 64 | struct ba_record RxAdmittedBARecord; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 65 | u16 RxLastSeqNum; |
| 66 | u8 RxLastFragNum; |
| 67 | u8 num; |
Larry Finger | 2c47ae2 | 2011-07-18 20:11:56 -0500 | [diff] [blame] | 68 | }; |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 69 | |
Larry Finger | f88ec6c | 2011-08-25 11:48:18 -0500 | [diff] [blame] | 70 | |
Larry Finger | 94a7994 | 2011-08-23 19:00:42 -0500 | [diff] [blame] | 71 | |
| 72 | #endif |