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 __RTL_PHYDM_H__ 15 #define __RTL_PHYDM_H__ 16 17 struct rtl_phydm_ops *rtl_phydm_get_ops_pointer(void); 18 19 #define rtlpriv_to_phydm(priv) \ 20 ((struct phy_dm_struct *)((priv)->phydm.internal)) 21 22 u8 phy_get_tx_power_index(void *adapter, u8 rf_path, u8 rate, 23 enum ht_channel_width bandwidth, u8 channel); 24 void phy_set_tx_power_index_by_rs(void *adapter, u8 ch, u8 path, u8 rs); 25 void phy_store_tx_power_by_rate(void *adapter, u32 band, u32 rfpath, u32 txnum, 26 u32 regaddr, u32 bitmask, u32 data); 27 void phy_set_tx_power_limit(void *dm, u8 *regulation, u8 *band, u8 *bandwidth, 28 u8 *rate_section, u8 *rf_path, u8 *channel, 29 u8 *power_limit); 30 31 void rtl_hal_update_ra_mask(void *adapter, struct rtl_sta_info *psta, 32 u8 rssi_level); 33 34 #endif 35