GNU Linux-libre 4.19.286-gnu1
[releases.git] / drivers / staging / rtlwifi / phydm / rtl8822b / phydm_regconfig8822b.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2016  Realtek Corporation.
5  *
6  * Contact Information:
7  * wlanfae <wlanfae@realtek.com>
8  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
9  * Hsinchu 300, Taiwan.
10  *
11  * Larry Finger <Larry.Finger@lwfinger.net>
12  *
13  *****************************************************************************/
14 #ifndef __INC_ODM_REGCONFIG_H_8822B
15 #define __INC_ODM_REGCONFIG_H_8822B
16
17 void odm_config_rf_reg_8822b(struct phy_dm_struct *dm, u32 addr, u32 data,
18                              enum odm_rf_radio_path RF_PATH, u32 reg_addr);
19
20 void odm_config_rf_radio_a_8822b(struct phy_dm_struct *dm, u32 addr, u32 data);
21
22 void odm_config_rf_radio_b_8822b(struct phy_dm_struct *dm, u32 addr, u32 data);
23
24 void odm_config_mac_8822b(struct phy_dm_struct *dm, u32 addr, u8 data);
25
26 void odm_update_agc_big_jump_lmt_8822b(struct phy_dm_struct *dm, u32 addr,
27                                        u32 data);
28
29 void odm_config_bb_agc_8822b(struct phy_dm_struct *dm, u32 addr, u32 bitmask,
30                              u32 data);
31
32 void odm_config_bb_phy_reg_pg_8822b(struct phy_dm_struct *dm, u32 band,
33                                     u32 rf_path, u32 tx_num, u32 addr,
34                                     u32 bitmask, u32 data);
35
36 void odm_config_bb_phy_8822b(struct phy_dm_struct *dm, u32 addr, u32 bitmask,
37                              u32 data);
38
39 void odm_config_bb_txpwr_lmt_8822b(struct phy_dm_struct *dm, u8 *regulation,
40                                    u8 *band, u8 *bandwidth, u8 *rate_section,
41                                    u8 *rf_path, u8 *channel, u8 *power_limit);
42
43 #endif /* RTL8822B_SUPPORT == 1*/