net: wireless: rockchip_wlan: add rtl8723ds support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723ds / hal / phydm / phydm_iqk.h
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
4  *                                        \r
5  * This program is free software; you can redistribute it and/or modify it\r
6  * under the terms of version 2 of the GNU General Public License as\r
7  * published by the Free Software Foundation.\r
8  *\r
9  * This program is distributed in the hope that it will be useful, but WITHOUT\r
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
12  * more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License along with\r
15  * this program; if not, write to the Free Software Foundation, Inc.,\r
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
17  *\r
18  *\r
19  ******************************************************************************/\r
20 \r
21 #ifndef __PHYDMIQK_H__\r
22 #define __PHYDMIQK_H__\r
23 \r
24 /*--------------------------Define Parameters-------------------------------*/\r
25 #define LOK_delay 1\r
26 #define WBIQK_delay 10\r
27 #define TX_IQK 0\r
28 #define RX_IQK 1\r
29 #define TXIQK 0\r
30 #define RXIQK1 1\r
31 #define RXIQK2 2\r
32 \r
33 #define NUM 4   \r
34 /*---------------------------End Define Parameters-------------------------------*/\r
35 \r
36 typedef struct _IQK_INFORMATION {\r
37         BOOLEAN         LOK_fail[NUM];\r
38         BOOLEAN         IQK_fail[2][NUM];\r
39         u4Byte          IQC_Matrix[2][NUM];\r
40         u1Byte      IQKtimes;\r
41         u4Byte          RFReg18;\r
42         u4Byte          lna_idx;\r
43         u1Byte          rxiqk_step;\r
44         u1Byte          tmp1bcc;\r
45         \r
46         u4Byte          IQK_Channel[2];\r
47         BOOLEAN         IQK_fail_report[2][4][2]; /*channel/path/TRX(TX:0, RX:1)*/\r
48         u4Byte          IQK_CFIR_real[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_real*/\r
49         u4Byte          IQK_CFIR_imag[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_imag*/\r
50         u1Byte          retry_count[2][4][3]; /*channel / path / (TXK:0, RXK1:1, RXK2:2)*/\r
51         u1Byte          gs_retry_count[2][4][2]; /*channel / path / (GSRXK1:0, GSRXK2:1)*/\r
52         u1Byte          RXIQK_fail_code[2][4]; /*channel / path 0:SRXK1 fail, 1:RXK1 fail 2:RXK2 fail*/ \r
53         u4Byte          LOK_IDAC[2][4];         /*channel / path*/\r
54         u4Byte          RXIQK_AGC[2][4];         /*channel / path*/\r
55         u4Byte          bypassIQK[2][4];        /*channel / 0xc94/0xe94*/\r
56         u4Byte          tmp_GNTWL;\r
57         BOOLEAN         is_BTG;\r
58 \r
59 } IQK_INFO, *PIQK_INFO;\r
60 \r
61 #endif\r