0001
0002
0003
0004 #ifndef __REALTEK_PCI92SE_HW_H__
0005 #define __REALTEK_PCI92SE_HW_H__
0006
0007 #define MSR_LINK_MANAGED 2
0008 #define MSR_LINK_NONE 0
0009 #define MSR_LINK_SHIFT 0
0010 #define MSR_LINK_ADHOC 1
0011 #define MSR_LINK_MASTER 3
0012
0013 enum WIRELESS_NETWORK_TYPE {
0014 WIRELESS_11B = 1,
0015 WIRELESS_11G = 2,
0016 WIRELESS_11A = 4,
0017 WIRELESS_11N = 8
0018 };
0019
0020 void rtl92se_get_hw_reg(struct ieee80211_hw *hw,
0021 u8 variable, u8 *val);
0022 void rtl92se_read_eeprom_info(struct ieee80211_hw *hw);
0023 void rtl92se_interrupt_recognized(struct ieee80211_hw *hw,
0024 struct rtl_int *int_vec);
0025 int rtl92se_hw_init(struct ieee80211_hw *hw);
0026 void rtl92se_card_disable(struct ieee80211_hw *hw);
0027 void rtl92se_enable_interrupt(struct ieee80211_hw *hw);
0028 void rtl92se_disable_interrupt(struct ieee80211_hw *hw);
0029 int rtl92se_set_network_type(struct ieee80211_hw *hw,
0030 enum nl80211_iftype type);
0031 void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid);
0032 void rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr);
0033 void rtl92se_set_qos(struct ieee80211_hw *hw, int aci);
0034 void rtl92se_set_beacon_related_registers(struct ieee80211_hw *hw);
0035 void rtl92se_set_beacon_interval(struct ieee80211_hw *hw);
0036 void rtl92se_update_interrupt_mask(struct ieee80211_hw *hw,
0037 u32 add_msr, u32 rm_msr);
0038 void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable,
0039 u8 *val);
0040 void rtl92se_update_hal_rate_tbl(struct ieee80211_hw *hw,
0041 struct ieee80211_sta *sta, u8 rssi_level, bool update_bw);
0042 void rtl92se_update_channel_access_setting(struct ieee80211_hw *hw);
0043 bool rtl92se_gpio_radio_on_off_checking(struct ieee80211_hw *hw,
0044 u8 *valid);
0045 void rtl8192se_gpiobit3_cfg_inputmode(struct ieee80211_hw *hw);
0046 void rtl92se_enable_hw_security_config(struct ieee80211_hw *hw);
0047 void rtl92se_set_key(struct ieee80211_hw *hw,
0048 u32 key_index, u8 *macaddr, bool is_group,
0049 u8 enc_algo, bool is_wepkey, bool clear_all);
0050 void rtl92se_suspend(struct ieee80211_hw *hw);
0051 void rtl92se_resume(struct ieee80211_hw *hw);
0052
0053 #endif