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 
11 void rtl8723e_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val);
12 void rtl8723e_read_eeprom_info(struct ieee80211_hw *hw);
13 
14 void rtl8723e_interrupt_recognized(struct ieee80211_hw *hw,
15 				   struct rtl_int *int_vec);
16 int rtl8723e_hw_init(struct ieee80211_hw *hw);
17 void rtl8723e_card_disable(struct ieee80211_hw *hw);
18 void rtl8723e_enable_interrupt(struct ieee80211_hw *hw);
19 void rtl8723e_disable_interrupt(struct ieee80211_hw *hw);
20 int rtl8723e_set_network_type(struct ieee80211_hw *hw,
21 			      enum nl80211_iftype type);
22 void rtl8723e_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid);
23 void rtl8723e_set_qos(struct ieee80211_hw *hw, int aci);
24 void rtl8723e_set_beacon_related_registers(struct ieee80211_hw *hw);
25 void rtl8723e_set_beacon_interval(struct ieee80211_hw *hw);
26 void rtl8723e_update_interrupt_mask(struct ieee80211_hw *hw,
27 				    u32 add_msr, u32 rm_msr);
28 void rtl8723e_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val);
29 void rtl8723e_update_hal_rate_tbl(struct ieee80211_hw *hw,
30 				  struct ieee80211_sta *sta, u8 rssi_level,
31 				  bool update_bw);
32 void rtl8723e_update_channel_access_setting(struct ieee80211_hw *hw);
33 bool rtl8723e_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid);
34 void rtl8723e_enable_hw_security_config(struct ieee80211_hw *hw);
35 void 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 
39 void rtl8723e_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
40 					     bool autoload_fail, u8 *hwinfo);
41 void rtl8723e_bt_reg_init(struct ieee80211_hw *hw);
42 void rtl8723e_bt_hw_init(struct ieee80211_hw *hw);
43 void rtl8723e_suspend(struct ieee80211_hw *hw);
44 void rtl8723e_resume(struct ieee80211_hw *hw);
45 
46 #endif
47