GNU Linux-libre 4.19.264-gnu1
[releases.git] / drivers / staging / rtlwifi / phydm / rtl8822b / phydm_iqk_8822b.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2016  Realtek Corporation.
5  *
6  * Contact Information:
7  * wlanfae <wlanfae@realtek.com>
8  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
9  * Hsinchu 300, Taiwan.
10  *
11  * Larry Finger <Larry.Finger@lwfinger.net>
12  *
13  *****************************************************************************/
14 #ifndef __PHYDM_IQK_8822B_H__
15 #define __PHYDM_IQK_8822B_H__
16
17 /*--------------------------Define Parameters-------------------------------*/
18 #define MAC_REG_NUM_8822B 2
19 #define BB_REG_NUM_8822B 13
20 #define RF_REG_NUM_8822B 5
21
22 #define LOK_delay_8822B 2
23 #define GS_delay_8822B 2
24 #define WBIQK_delay_8822B 2
25
26 #define TXIQK 0
27 #define RXIQK 1
28 #define SS_8822B 2
29
30 /*------------------------End Define Parameters-------------------------------*/
31
32 void do_iqk_8822b(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
33                   u8 threshold);
34
35 void phy_iq_calibrate_8822b(void *dm_void, bool clear);
36
37 #endif /* #ifndef __PHYDM_IQK_8822B_H__*/