hw.h (2043B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright(c) 2009-2012 Realtek Corporation.*/ 3 4#ifndef __RTL8723E_HW_H__ 5#define __RTL8723E_HW_H__ 6 7#define CHK_SVID_SMID(_val1, _val2) \ 8 ((rtlefuse->eeprom_svid == (_val1)) && \ 9 (rtlefuse->eeprom_smid == (_val2))) 10 11void rtl8723e_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 12void rtl8723e_read_eeprom_info(struct ieee80211_hw *hw); 13 14void rtl8723e_interrupt_recognized(struct ieee80211_hw *hw, 15 struct rtl_int *int_vec); 16int rtl8723e_hw_init(struct ieee80211_hw *hw); 17void rtl8723e_card_disable(struct ieee80211_hw *hw); 18void rtl8723e_enable_interrupt(struct ieee80211_hw *hw); 19void rtl8723e_disable_interrupt(struct ieee80211_hw *hw); 20int rtl8723e_set_network_type(struct ieee80211_hw *hw, 21 enum nl80211_iftype type); 22void rtl8723e_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 23void rtl8723e_set_qos(struct ieee80211_hw *hw, int aci); 24void rtl8723e_set_beacon_related_registers(struct ieee80211_hw *hw); 25void rtl8723e_set_beacon_interval(struct ieee80211_hw *hw); 26void rtl8723e_update_interrupt_mask(struct ieee80211_hw *hw, 27 u32 add_msr, u32 rm_msr); 28void rtl8723e_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 29void rtl8723e_update_hal_rate_tbl(struct ieee80211_hw *hw, 30 struct ieee80211_sta *sta, u8 rssi_level, 31 bool update_bw); 32void rtl8723e_update_channel_access_setting(struct ieee80211_hw *hw); 33bool rtl8723e_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid); 34void rtl8723e_enable_hw_security_config(struct ieee80211_hw *hw); 35void rtl8723e_set_key(struct ieee80211_hw *hw, u32 key_index, 36 u8 *p_macaddr, bool is_group, u8 enc_algo, 37 bool is_wepkey, bool clear_all); 38 39void rtl8723e_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw, 40 bool autoload_fail, u8 *hwinfo); 41void rtl8723e_bt_reg_init(struct ieee80211_hw *hw); 42void rtl8723e_bt_hw_init(struct ieee80211_hw *hw); 43void rtl8723e_suspend(struct ieee80211_hw *hw); 44void rtl8723e_resume(struct ieee80211_hw *hw); 45 46#endif