xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/rtl8821c/phydm_regconfig8821c.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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 #ifndef __INC_ODM_REGCONFIG_H_8821C
16 #define __INC_ODM_REGCONFIG_H_8821C
17 
18 #if (RTL8821C_SUPPORT == 1)
19 
20 void odm_config_rf_reg_8821c(struct dm_struct *dm, u32 addr, u32 data,
21 			     enum rf_path rf_path, u32 reg_addr);
22 
23 void odm_config_rf_radio_a_8821c(struct dm_struct *dm, u32 addr, u32 data);
24 
25 void odm_config_rf_radio_b_8821c(
26 	struct dm_struct *dm,
27 	u32 addr,
28 	u32 data);
29 
30 void odm_config_mac_8821c(struct dm_struct *dm, u32 addr, u8 data);
31 
32 void odm_update_agc_big_jump_lmt_8821c(struct dm_struct *dm, u32 addr,
33 				       u32 data);
34 
35 void odm_config_bb_agc_8821c(struct dm_struct *dm, u32 addr, u32 bitmask,
36 			     u32 data);
37 
38 void odm_config_bb_phy_reg_pg_8821c(struct dm_struct *dm, u32 band, u32 rf_path,
39 				    u32 tx_num, u32 addr, u32 bitmask,
40 				    u32 data);
41 
42 void odm_config_bb_phy_8821c(struct dm_struct *dm, u32 addr, u32 bitmask,
43 			     u32 data);
44 
45 void odm_config_bb_txpwr_lmt_8821c_ex(struct dm_struct *dm, u8 regulation,
46 				      u8 band, u8 bandwidth, u8 rate_section,
47 				      u8 rf_path, u8 channel, s8 power_limit);
48 
49 void odm_config_bb_txpwr_lmt_8821c(struct dm_struct *dm, u8 *regulation,
50 				   u8 *band, u8 *bandwidth, u8 *rate_section,
51 				   u8 *rf_path, u8 *channel, u8 *power_limit);
52 
53 #endif
54 #endif /* RTL8821C_SUPPORT == 1*/
55