net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / hal / phydm / rtl8703b / phydm_regconfig8703b.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 #ifndef __INC_ODM_REGCONFIG_H_8703B
21 #define __INC_ODM_REGCONFIG_H_8703B
22
23 #if (RTL8703B_SUPPORT == 1)
24
25 void
26 odm_config_rf_reg_8703b(
27         struct PHY_DM_STRUCT                            *p_dm_odm,
28         u32                                     addr,
29         u32                                     data,
30         enum odm_rf_radio_path_e     RF_PATH,
31         u32                                 reg_addr
32 );
33
34 void
35 odm_config_rf_radio_a_8703b(
36         struct PHY_DM_STRUCT                            *p_dm_odm,
37         u32                                     addr,
38         u32                                     data
39 );
40
41 void
42 odm_config_rf_radio_b_8703b(
43         struct PHY_DM_STRUCT                            *p_dm_odm,
44         u32                                     addr,
45         u32                                     data
46 );
47
48 void
49 odm_config_rf_radio_c_8703b(
50         struct PHY_DM_STRUCT                            *p_dm_odm,
51         u32                                     addr,
52         u32                                     data
53 );
54
55 void
56 odm_config_rf_radio_d_8703b(
57         struct PHY_DM_STRUCT                            *p_dm_odm,
58         u32                                     addr,
59         u32                                     data
60 );
61
62 void
63 odm_config_mac_8703b(
64         struct PHY_DM_STRUCT    *p_dm_odm,
65         u32             addr,
66         u8              data
67 );
68
69 void
70 odm_config_bb_agc_8703b(
71         struct PHY_DM_STRUCT    *p_dm_odm,
72         u32             addr,
73         u32             bitmask,
74         u32             data
75 );
76
77 void
78 odm_config_bb_phy_reg_pg_8703b(
79         struct PHY_DM_STRUCT    *p_dm_odm,
80         u32             band,
81         u32             rf_path,
82         u32             tx_num,
83         u32             addr,
84         u32             bitmask,
85         u32             data
86 );
87
88 void
89 odm_config_bb_phy_8703b(
90         struct PHY_DM_STRUCT    *p_dm_odm,
91         u32             addr,
92         u32             bitmask,
93         u32             data
94 );
95
96 void
97 odm_config_bb_txpwr_lmt_8703b(
98         struct PHY_DM_STRUCT    *p_dm_odm,
99         u8              *regulation,
100         u8              *band,
101         u8              *bandwidth,
102         u8              *rate_section,
103         u8              *rf_path,
104         u8      *channel,
105         u8              *power_limit
106 );
107 #endif
108 #endif /* end of SUPPORT */