GNU Linux-libre 4.14.259-gnu1
[releases.git] / drivers / staging / rtlwifi / phydm / rtl8822b / phydm_iqk_8822b.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2016  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  * The full GNU General Public License is included in this distribution in the
15  * file called LICENSE.
16  *
17  * Contact Information:
18  * wlanfae <wlanfae@realtek.com>
19  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20  * Hsinchu 300, Taiwan.
21  *
22  * Larry Finger <Larry.Finger@lwfinger.net>
23  *
24  *****************************************************************************/
25 #ifndef __PHYDM_IQK_8822B_H__
26 #define __PHYDM_IQK_8822B_H__
27
28 /*--------------------------Define Parameters-------------------------------*/
29 #define MAC_REG_NUM_8822B 2
30 #define BB_REG_NUM_8822B 13
31 #define RF_REG_NUM_8822B 5
32
33 #define LOK_delay_8822B 2
34 #define GS_delay_8822B 2
35 #define WBIQK_delay_8822B 2
36
37 #define TXIQK 0
38 #define RXIQK 1
39 #define SS_8822B 2
40
41 /*------------------------End Define Parameters-------------------------------*/
42
43 void do_iqk_8822b(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
44                   u8 threshold);
45
46 void phy_iq_calibrate_8822b(void *dm_void, bool clear);
47
48 #endif /* #ifndef __PHYDM_IQK_8822B_H__*/