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