xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/rtl8821c/halhwimg8821c_bb.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 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  * 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 
26 /*Image2HeaderVersion: R3 1.5.10.1*/
27 #if (RTL8821C_SUPPORT == 1)
28 #ifndef __INC_MP_BB_HW_IMG_8821C_H
29 #define __INC_MP_BB_HW_IMG_8821C_H
30 
31 /******************************************************************************
32  *                           agc_tab.TXT
33  ******************************************************************************/
34 
35 /* tc: Test Chip, mp: mp Chip*/
36 void
37 odm_read_and_config_mp_8821c_agc_tab(struct dm_struct *dm);
38 u32 odm_get_version_mp_8821c_agc_tab(void);
39 
40 /******************************************************************************
41  *                           agc_tab_diff.TXT
42  ******************************************************************************/
43 
44 extern const u32	array_mp_8821c_agc_tab_diff_wlg[780];
45 extern const u32	array_mp_8821c_agc_tab_diff_btg[780];
46 void
47 odm_read_and_config_mp_8821c_agc_tab_diff(struct dm_struct *dm,
48 					  const u32 array[],
49 					  u32 array_len);
50 u32 odm_get_version_mp_8821c_agc_tab_diff(void);
51 
52 /******************************************************************************
53  *                           phy_reg.TXT
54  ******************************************************************************/
55 
56 /* tc: Test Chip, mp: mp Chip*/
57 void
58 odm_read_and_config_mp_8821c_phy_reg(struct dm_struct *dm);
59 u32 odm_get_version_mp_8821c_phy_reg(void);
60 
61 /******************************************************************************
62  *                           phy_reg_mp.TXT
63  ******************************************************************************/
64 
65 /* tc: Test Chip, mp: mp Chip*/
66 void
67 odm_read_and_config_mp_8821c_phy_reg_mp(struct dm_struct *dm);
68 u32 odm_get_version_mp_8821c_phy_reg_mp(void);
69 
70 /******************************************************************************
71  *                           phy_reg_pg.TXT
72  ******************************************************************************/
73 
74 /* tc: Test Chip, mp: mp Chip*/
75 void
76 odm_read_and_config_mp_8821c_phy_reg_pg(struct dm_struct *dm);
77 u32 odm_get_version_mp_8821c_phy_reg_pg(void);
78 
79 /******************************************************************************
80  *                           phy_reg_pg_type0x28.TXT
81  ******************************************************************************/
82 
83 /* tc: Test Chip, mp: mp Chip*/
84 void
85 odm_read_and_config_mp_8821c_phy_reg_pg_type0x28(struct dm_struct *dm);
86 u32 odm_get_version_mp_8821c_phy_reg_pg_type0x28(void);
87 
88 #endif
89 #endif /* end of HWIMG_SUPPORT*/
90 
91