162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright(c) 2009-2014 Realtek Corporation.*/ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef __RTL92E_DEF_H__ 562306a36Sopenharmony_ci#define __RTL92E_DEF_H__ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#define RX_DESC_NUM_92E 512 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define HAL_PRIME_CHNL_OFFSET_DONT_CARE 0 1062306a36Sopenharmony_ci#define HAL_PRIME_CHNL_OFFSET_LOWER 1 1162306a36Sopenharmony_ci#define HAL_PRIME_CHNL_OFFSET_UPPER 2 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#define RX_MPDU_QUEUE 0 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#define IS_HT_RATE(_rate) \ 1662306a36Sopenharmony_ci (_rate >= DESC92C_RATEMCS0) 1762306a36Sopenharmony_ci#define IS_CCK_RATE(_rate) \ 1862306a36Sopenharmony_ci (_rate >= DESC92C_RATE1M && _rate <= DESC92C_RATE11M) 1962306a36Sopenharmony_ci#define IS_OFDM_RATE(_rate) \ 2062306a36Sopenharmony_ci (_rate >= DESC92C_RATE6M && _rate <= DESC92C_RATE54M) 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_cienum version_8192e { 2362306a36Sopenharmony_ci VERSION_TEST_CHIP_2T2R_8192E = 0x0024, 2462306a36Sopenharmony_ci VERSION_NORMAL_CHIP_2T2R_8192E = 0x102C, 2562306a36Sopenharmony_ci VERSION_UNKNOWN = 0xFF, 2662306a36Sopenharmony_ci}; 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_cienum rtl_desc_qsel { 2962306a36Sopenharmony_ci QSLT_BK = 0x2, 3062306a36Sopenharmony_ci QSLT_BE = 0x0, 3162306a36Sopenharmony_ci QSLT_VI = 0x5, 3262306a36Sopenharmony_ci QSLT_VO = 0x7, 3362306a36Sopenharmony_ci QSLT_BEACON = 0x10, 3462306a36Sopenharmony_ci QSLT_HIGH = 0x11, 3562306a36Sopenharmony_ci QSLT_MGNT = 0x12, 3662306a36Sopenharmony_ci QSLT_CMD = 0x13, 3762306a36Sopenharmony_ci}; 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_cienum rtl_desc92c_rate { 4062306a36Sopenharmony_ci DESC92C_RATE1M = 0x00, 4162306a36Sopenharmony_ci DESC92C_RATE2M = 0x01, 4262306a36Sopenharmony_ci DESC92C_RATE5_5M = 0x02, 4362306a36Sopenharmony_ci DESC92C_RATE11M = 0x03, 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci DESC92C_RATE6M = 0x04, 4662306a36Sopenharmony_ci DESC92C_RATE9M = 0x05, 4762306a36Sopenharmony_ci DESC92C_RATE12M = 0x06, 4862306a36Sopenharmony_ci DESC92C_RATE18M = 0x07, 4962306a36Sopenharmony_ci DESC92C_RATE24M = 0x08, 5062306a36Sopenharmony_ci DESC92C_RATE36M = 0x09, 5162306a36Sopenharmony_ci DESC92C_RATE48M = 0x0a, 5262306a36Sopenharmony_ci DESC92C_RATE54M = 0x0b, 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci DESC92C_RATEMCS0 = 0x0c, 5562306a36Sopenharmony_ci DESC92C_RATEMCS1 = 0x0d, 5662306a36Sopenharmony_ci DESC92C_RATEMCS2 = 0x0e, 5762306a36Sopenharmony_ci DESC92C_RATEMCS3 = 0x0f, 5862306a36Sopenharmony_ci DESC92C_RATEMCS4 = 0x10, 5962306a36Sopenharmony_ci DESC92C_RATEMCS5 = 0x11, 6062306a36Sopenharmony_ci DESC92C_RATEMCS6 = 0x12, 6162306a36Sopenharmony_ci DESC92C_RATEMCS7 = 0x13, 6262306a36Sopenharmony_ci DESC92C_RATEMCS8 = 0x14, 6362306a36Sopenharmony_ci DESC92C_RATEMCS9 = 0x15, 6462306a36Sopenharmony_ci DESC92C_RATEMCS10 = 0x16, 6562306a36Sopenharmony_ci DESC92C_RATEMCS11 = 0x17, 6662306a36Sopenharmony_ci DESC92C_RATEMCS12 = 0x18, 6762306a36Sopenharmony_ci DESC92C_RATEMCS13 = 0x19, 6862306a36Sopenharmony_ci DESC92C_RATEMCS14 = 0x1a, 6962306a36Sopenharmony_ci DESC92C_RATEMCS15 = 0x1b, 7062306a36Sopenharmony_ci}; 7162306a36Sopenharmony_ci#endif 72