rtl819x_TS.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. * The full GNU General Public License is included in this distribution in the
  10. * file called LICENSE.
  11. *
  12. * Contact Information:
  13. * wlanfae <wlanfae@realtek.com>
  14. ******************************************************************************/
  15. #ifndef _TSTYPE_H_
  16. #define _TSTYPE_H_
  17. #include "rtl819x_Qos.h"
  18. #define TS_ADDBA_DELAY 60
  19. #define TOTAL_TS_NUM 16
  20. #define TCLAS_NUM 4
  21. enum tr_select {
  22. TX_DIR = 0,
  23. RX_DIR = 1,
  24. };
  25. struct ts_common_info {
  26. struct list_head List;
  27. struct timer_list SetupTimer;
  28. struct timer_list InactTimer;
  29. u8 Addr[ETH_ALEN];
  30. union tspec_body TSpec;
  31. union qos_tclas TClass[TCLAS_NUM];
  32. u8 TClasProc;
  33. u8 TClasNum;
  34. };
  35. struct tx_ts_record {
  36. struct ts_common_info TsCommonInfo;
  37. u16 TxCurSeq;
  38. struct ba_record TxPendingBARecord;
  39. struct ba_record TxAdmittedBARecord;
  40. u8 bAddBaReqInProgress;
  41. u8 bAddBaReqDelayed;
  42. u8 bUsingBa;
  43. u8 bDisable_AddBa;
  44. struct timer_list TsAddBaTimer;
  45. u8 num;
  46. };
  47. struct rx_ts_record {
  48. struct ts_common_info TsCommonInfo;
  49. u16 RxIndicateSeq;
  50. u16 RxTimeoutIndicateSeq;
  51. struct list_head RxPendingPktList;
  52. struct timer_list RxPktPendingTimer;
  53. struct ba_record RxAdmittedBARecord;
  54. u16 RxLastSeqNum;
  55. u8 RxLastFragNum;
  56. u8 num;
  57. };
  58. #endif