0001
0002
0003
0004 #ifndef __RTL92CE_HW_H__
0005 #define __RTL92CE_HW_H__
0006
0007 static inline u8 rtl92c_get_chnl_group(u8 chnl)
0008 {
0009 u8 group;
0010
0011 if (chnl < 3)
0012 group = 0;
0013 else if (chnl < 9)
0014 group = 1;
0015 else
0016 group = 2;
0017 return group;
0018 }
0019
0020 void rtl92ce_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val);
0021 void rtl92ce_read_eeprom_info(struct ieee80211_hw *hw);
0022 void rtl92ce_interrupt_recognized(struct ieee80211_hw *hw,
0023 struct rtl_int *int_vec);
0024 int rtl92ce_hw_init(struct ieee80211_hw *hw);
0025 void rtl92ce_card_disable(struct ieee80211_hw *hw);
0026 void rtl92ce_enable_interrupt(struct ieee80211_hw *hw);
0027 void rtl92ce_disable_interrupt(struct ieee80211_hw *hw);
0028 int rtl92ce_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type);
0029 void rtl92ce_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid);
0030 void rtl92ce_set_qos(struct ieee80211_hw *hw, int aci);
0031 void rtl92ce_set_beacon_related_registers(struct ieee80211_hw *hw);
0032 void rtl92ce_set_beacon_interval(struct ieee80211_hw *hw);
0033 void rtl92ce_update_interrupt_mask(struct ieee80211_hw *hw,
0034 u32 add_msr, u32 rm_msr);
0035 void rtl92ce_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val);
0036 void rtl92ce_update_hal_rate_tbl(struct ieee80211_hw *hw,
0037 struct ieee80211_sta *sta, u8 rssi_level,
0038 bool update_bw);
0039 void rtl92ce_update_channel_access_setting(struct ieee80211_hw *hw);
0040 bool rtl92ce_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid);
0041 void rtl92ce_enable_hw_security_config(struct ieee80211_hw *hw);
0042 void rtl92ce_set_key(struct ieee80211_hw *hw, u32 key_index,
0043 u8 *p_macaddr, bool is_group, u8 enc_algo,
0044 bool is_wepkey, bool clear_all);
0045
0046 void rtl8192ce_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
0047 bool autoload_fail, u8 *hwinfo);
0048 void rtl8192ce_bt_reg_init(struct ieee80211_hw *hw);
0049 void rtl8192ce_bt_hw_init(struct ieee80211_hw *hw);
0050 void rtl92ce_suspend(struct ieee80211_hw *hw);
0051 void rtl92ce_resume(struct ieee80211_hw *hw);
0052
0053 #endif