OSDN Git Service

Add rtl8821ce driver version 5.5.2
[android-x86/external-kernel-drivers.git] / rtl8821ce / hal / phydm / halrf / rtl8821c / halrf_iqk_8821c.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2016 - 2017 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15
16 #ifndef __HALRF_IQK_8821C_H__
17 #define __HALRF_IQK_8821C_H__
18
19 #if (RTL8821C_SUPPORT == 1)
20 /*============================================================*/
21 /*Definition */
22 /*============================================================*/
23
24 /*--------------------------Define Parameters-------------------------------*/
25 #define MAC_REG_NUM_8821C 3
26 #define BB_REG_NUM_8821C 10
27 #define RF_REG_NUM_8821C 5
28 #define DPK_BB_REG_NUM_8821C 23
29 #define DPK_BACKUP_REG_NUM_8821C 3
30
31 #define LOK_delay_8821C 2
32 #define GS_delay_8821C 2
33 #define WBIQK_delay_8821C 2
34
35 #define TXIQK 0
36 #define RXIQK 1
37 #define SS_8821C 1
38
39 /*---------------------------End Define Parameters-------------------------------*/
40
41 #if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
42 void do_iqk_8821c(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
43                   u8 threshold);
44 #else
45 void do_iqk_8821c(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
46                   u8 threshold);
47 #endif
48
49 void phy_iq_calibrate_8821c(void *dm_void, boolean clear, boolean segment_iqk);
50
51 void phy_dp_calibrate_8821c(void *dm_void, boolean clear);
52
53 void do_imr_test_8821c(void *dm_void);
54
55 #else /* (RTL8821C_SUPPORT == 0)*/
56
57 #define phy_iq_calibrate_8821c(_pdm_void, clear, segment_iqk)
58 #define phy_dp_calibrate_8821c(_pDM_VOID, clear)
59
60 #endif /* RTL8821C_SUPPORT */
61
62 #endif /*#ifndef __HALRF_IQK_8821C_H__*/