GNU Linux-libre 4.14.265-gnu1
[releases.git] / drivers / staging / rtlwifi / phydm / rtl8822b / phydm_regconfig8822b.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 __INC_ODM_REGCONFIG_H_8822B
26 #define __INC_ODM_REGCONFIG_H_8822B
27
28 void odm_config_rf_reg_8822b(struct phy_dm_struct *dm, u32 addr, u32 data,
29                              enum odm_rf_radio_path RF_PATH, u32 reg_addr);
30
31 void odm_config_rf_radio_a_8822b(struct phy_dm_struct *dm, u32 addr, u32 data);
32
33 void odm_config_rf_radio_b_8822b(struct phy_dm_struct *dm, u32 addr, u32 data);
34
35 void odm_config_mac_8822b(struct phy_dm_struct *dm, u32 addr, u8 data);
36
37 void odm_update_agc_big_jump_lmt_8822b(struct phy_dm_struct *dm, u32 addr,
38                                        u32 data);
39
40 void odm_config_bb_agc_8822b(struct phy_dm_struct *dm, u32 addr, u32 bitmask,
41                              u32 data);
42
43 void odm_config_bb_phy_reg_pg_8822b(struct phy_dm_struct *dm, u32 band,
44                                     u32 rf_path, u32 tx_num, u32 addr,
45                                     u32 bitmask, u32 data);
46
47 void odm_config_bb_phy_8822b(struct phy_dm_struct *dm, u32 addr, u32 bitmask,
48                              u32 data);
49
50 void odm_config_bb_txpwr_lmt_8822b(struct phy_dm_struct *dm, u8 *regulation,
51                                    u8 *band, u8 *bandwidth, u8 *rate_section,
52                                    u8 *rf_path, u8 *channel, u8 *power_limit);
53
54 #endif /* RTL8822B_SUPPORT == 1*/