18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* Copyright(c) 2009-2014 Realtek Corporation.*/ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __RTL92E_DEF_H__ 58c2ecf20Sopenharmony_ci#define __RTL92E_DEF_H__ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#define RX_DESC_NUM_92E 512 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#define HAL_PRIME_CHNL_OFFSET_DONT_CARE 0 108c2ecf20Sopenharmony_ci#define HAL_PRIME_CHNL_OFFSET_LOWER 1 118c2ecf20Sopenharmony_ci#define HAL_PRIME_CHNL_OFFSET_UPPER 2 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define RX_MPDU_QUEUE 0 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define IS_HT_RATE(_rate) \ 168c2ecf20Sopenharmony_ci (_rate >= DESC92C_RATEMCS0) 178c2ecf20Sopenharmony_ci#define IS_CCK_RATE(_rate) \ 188c2ecf20Sopenharmony_ci (_rate >= DESC92C_RATE1M && _rate <= DESC92C_RATE11M) 198c2ecf20Sopenharmony_ci#define IS_OFDM_RATE(_rate) \ 208c2ecf20Sopenharmony_ci (_rate >= DESC92C_RATE6M && _rate <= DESC92C_RATE54M) 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_cienum version_8192e { 238c2ecf20Sopenharmony_ci VERSION_TEST_CHIP_2T2R_8192E = 0x0024, 248c2ecf20Sopenharmony_ci VERSION_NORMAL_CHIP_2T2R_8192E = 0x102C, 258c2ecf20Sopenharmony_ci VERSION_UNKNOWN = 0xFF, 268c2ecf20Sopenharmony_ci}; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_cienum rtl_desc_qsel { 298c2ecf20Sopenharmony_ci QSLT_BK = 0x2, 308c2ecf20Sopenharmony_ci QSLT_BE = 0x0, 318c2ecf20Sopenharmony_ci QSLT_VI = 0x5, 328c2ecf20Sopenharmony_ci QSLT_VO = 0x7, 338c2ecf20Sopenharmony_ci QSLT_BEACON = 0x10, 348c2ecf20Sopenharmony_ci QSLT_HIGH = 0x11, 358c2ecf20Sopenharmony_ci QSLT_MGNT = 0x12, 368c2ecf20Sopenharmony_ci QSLT_CMD = 0x13, 378c2ecf20Sopenharmony_ci}; 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_cienum rtl_desc92c_rate { 408c2ecf20Sopenharmony_ci DESC92C_RATE1M = 0x00, 418c2ecf20Sopenharmony_ci DESC92C_RATE2M = 0x01, 428c2ecf20Sopenharmony_ci DESC92C_RATE5_5M = 0x02, 438c2ecf20Sopenharmony_ci DESC92C_RATE11M = 0x03, 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci DESC92C_RATE6M = 0x04, 468c2ecf20Sopenharmony_ci DESC92C_RATE9M = 0x05, 478c2ecf20Sopenharmony_ci DESC92C_RATE12M = 0x06, 488c2ecf20Sopenharmony_ci DESC92C_RATE18M = 0x07, 498c2ecf20Sopenharmony_ci DESC92C_RATE24M = 0x08, 508c2ecf20Sopenharmony_ci DESC92C_RATE36M = 0x09, 518c2ecf20Sopenharmony_ci DESC92C_RATE48M = 0x0a, 528c2ecf20Sopenharmony_ci DESC92C_RATE54M = 0x0b, 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci DESC92C_RATEMCS0 = 0x0c, 558c2ecf20Sopenharmony_ci DESC92C_RATEMCS1 = 0x0d, 568c2ecf20Sopenharmony_ci DESC92C_RATEMCS2 = 0x0e, 578c2ecf20Sopenharmony_ci DESC92C_RATEMCS3 = 0x0f, 588c2ecf20Sopenharmony_ci DESC92C_RATEMCS4 = 0x10, 598c2ecf20Sopenharmony_ci DESC92C_RATEMCS5 = 0x11, 608c2ecf20Sopenharmony_ci DESC92C_RATEMCS6 = 0x12, 618c2ecf20Sopenharmony_ci DESC92C_RATEMCS7 = 0x13, 628c2ecf20Sopenharmony_ci DESC92C_RATEMCS8 = 0x14, 638c2ecf20Sopenharmony_ci DESC92C_RATEMCS9 = 0x15, 648c2ecf20Sopenharmony_ci DESC92C_RATEMCS10 = 0x16, 658c2ecf20Sopenharmony_ci DESC92C_RATEMCS11 = 0x17, 668c2ecf20Sopenharmony_ci DESC92C_RATEMCS12 = 0x18, 678c2ecf20Sopenharmony_ci DESC92C_RATEMCS13 = 0x19, 688c2ecf20Sopenharmony_ci DESC92C_RATEMCS14 = 0x1a, 698c2ecf20Sopenharmony_ci DESC92C_RATEMCS15 = 0x1b, 708c2ecf20Sopenharmony_ci}; 718c2ecf20Sopenharmony_ci#endif 72