1 /******************************************************************************
3 * Copyright(c) 2016 - 2017 Realtek Corporation.
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.
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
14 *****************************************************************************/
16 #ifndef __HALRF_IQK_8821C_H__
17 #define __HALRF_IQK_8821C_H__
19 #if (RTL8821C_SUPPORT == 1)
20 /*============================================================*/
22 /*============================================================*/
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
31 #define LOK_delay_8821C 2
32 #define GS_delay_8821C 2
33 #define WBIQK_delay_8821C 2
39 /*---------------------------End Define Parameters-------------------------------*/
41 #if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
42 void do_iqk_8821c(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
45 void do_iqk_8821c(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
49 void phy_iq_calibrate_8821c(void *dm_void, boolean clear, boolean segment_iqk);
51 void phy_dp_calibrate_8821c(void *dm_void, boolean clear);
53 void do_imr_test_8821c(void *dm_void);
55 #else /* (RTL8821C_SUPPORT == 0)*/
57 #define phy_iq_calibrate_8821c(_pdm_void, clear, segment_iqk)
58 #define phy_dp_calibrate_8821c(_pDM_VOID, clear)
60 #endif /* RTL8821C_SUPPORT */
62 #endif /*#ifndef __HALRF_IQK_8821C_H__*/