1 /******************************************************************************
2 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
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
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
13 * The full GNU General Public License is included in this distribution in the
14 * file called LICENSE.
16 * Contact Information:
17 * wlanfae <wlanfae@realtek.com>
18 ******************************************************************************/
24 #include <linux/types.h>
26 #define MAX_SILENT_RESET_RX_SLOT_NUM 10
28 #define RX_MPDU_QUEUE 0
30 enum rtl819x_loopback {
31 RTL819X_NO_LOOPBACK = 0,
32 RTL819X_MAC_LOOPBACK = 1,
33 RTL819X_DMA_LOOPBACK = 2,
34 RTL819X_CCK_LOOPBACK = 3,
37 #define DESC90_RATE1M 0x00
38 #define DESC90_RATE2M 0x01
39 #define DESC90_RATE5_5M 0x02
40 #define DESC90_RATE11M 0x03
41 #define DESC90_RATE6M 0x04
42 #define DESC90_RATE9M 0x05
43 #define DESC90_RATE12M 0x06
44 #define DESC90_RATE18M 0x07
45 #define DESC90_RATE24M 0x08
46 #define DESC90_RATE36M 0x09
47 #define DESC90_RATE48M 0x0a
48 #define DESC90_RATE54M 0x0b
49 #define DESC90_RATEMCS0 0x00
50 #define DESC90_RATEMCS1 0x01
51 #define DESC90_RATEMCS2 0x02
52 #define DESC90_RATEMCS3 0x03
53 #define DESC90_RATEMCS4 0x04
54 #define DESC90_RATEMCS5 0x05
55 #define DESC90_RATEMCS6 0x06
56 #define DESC90_RATEMCS7 0x07
57 #define DESC90_RATEMCS8 0x08
58 #define DESC90_RATEMCS9 0x09
59 #define DESC90_RATEMCS10 0x0a
60 #define DESC90_RATEMCS11 0x0b
61 #define DESC90_RATEMCS12 0x0c
62 #define DESC90_RATEMCS13 0x0d
63 #define DESC90_RATEMCS14 0x0e
64 #define DESC90_RATEMCS15 0x0f
65 #define DESC90_RATEMCS32 0x20
67 #define SHORT_SLOT_TIME 9
68 #define NON_SHORT_SLOT_TIME 20
76 #define QSLT_BEACON 0x10
77 #define QSLT_HIGH 0x11
78 #define QSLT_MGNT 0x12
81 #define NUM_OF_PAGE_IN_FW_QUEUE_BK 0x007
82 #define NUM_OF_PAGE_IN_FW_QUEUE_BE 0x0aa
83 #define NUM_OF_PAGE_IN_FW_QUEUE_VI 0x024
84 #define NUM_OF_PAGE_IN_FW_QUEUE_VO 0x007
85 #define NUM_OF_PAGE_IN_FW_QUEUE_MGNT 0x10
86 #define NUM_OF_PAGE_IN_FW_QUEUE_BCN 0x4
87 #define NUM_OF_PAGE_IN_FW_QUEUE_PUB 0xd
89 #define APPLIED_RESERVED_QUEUE_IN_FW 0x80000000
90 #define RSVD_FW_QUEUE_PAGE_BK_SHIFT 0x00
91 #define RSVD_FW_QUEUE_PAGE_BE_SHIFT 0x08
92 #define RSVD_FW_QUEUE_PAGE_VI_SHIFT 0x10
93 #define RSVD_FW_QUEUE_PAGE_VO_SHIFT 0x18
94 #define RSVD_FW_QUEUE_PAGE_MGNT_SHIFT 0x10
95 #define RSVD_FW_QUEUE_PAGE_BCN_SHIFT 0x00
96 #define RSVD_FW_QUEUE_PAGE_PUB_SHIFT 0x08
98 #define HAL_PRIME_CHNL_OFFSET_DONT_CARE 0
99 #define HAL_PRIME_CHNL_OFFSET_LOWER 1
100 #define HAL_PRIME_CHNL_OFFSET_UPPER 2
103 enum version_8190_loopback {
104 VERSION_8190_BD = 0x3,
108 #define IC_VersionCut_C 0x2
109 #define IC_VersionCut_D 0x3
110 #define IC_VersionCut_E 0x4
113 RF_OP_By_SW_3wire = 0,
118 struct bb_reg_definition {
136 u32 rfLSSIReadBackPi;
139 struct tx_fwinfo_8190pci {
149 u8 AllowAggregation:1;
159 u32 TxPerPktInfoFeedback:1;
171 struct log_int_8190 {
186 struct phy_ofdm_rx_status_rxsc_sgien_exintfflag {
193 struct phy_sts_ofdm_819xpci {
209 struct phy_sts_cck_819xpci {
216 #define PHY_RSSI_SLID_WIN_MAX 100
217 #define PHY_Beacon_RSSI_SLID_WIN_MAX 10