124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li/****************************************************************************** 224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 3ca742cd9766ff519b0e927a9296e29541ee13c7bLarry Finger * Copyright(c) 2009-2012 Realtek Corporation. 424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * This program is free software; you can redistribute it and/or modify it 624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * under the terms of version 2 of the GNU General Public License as 724284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * published by the Free Software Foundation. 824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 924284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * This program is distributed in the hope that it will be useful, but WITHOUT 1024284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 1224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * more details. 1324284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 1424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * You should have received a copy of the GNU General Public License along with 1524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * this program; if not, write to the Free Software Foundation, Inc., 1624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 1724284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 1824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * The full GNU General Public License is included in this distribution in the 1924284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * file called LICENSE. 2024284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 2124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * Contact Information: 2224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * wlanfae <wlanfae@realtek.com> 2324284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 2424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * Hsinchu 300, Taiwan. 2524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 2624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * Larry Finger <Larry.Finger@lwfinger.net> 2724284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li * 2824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li *****************************************************************************/ 2924284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#ifndef __REALTEK_PCI92SE_HW_H__ 3024284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#define __REALTEK_PCI92SE_HW_H__ 3124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li 3224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#define MSR_LINK_MANAGED 2 3324284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#define MSR_LINK_NONE 0 3424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#define MSR_LINK_SHIFT 0 3524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#define MSR_LINK_ADHOC 1 3624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#define MSR_LINK_MASTER 3 3724284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li 3824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Lienum WIRELESS_NETWORK_TYPE { 3924284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li WIRELESS_11B = 1, 4024284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li WIRELESS_11G = 2, 4124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li WIRELESS_11A = 4, 4224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li WIRELESS_11N = 8 4324284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li}; 4424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li 4524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_get_hw_reg(struct ieee80211_hw *hw, 4624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li u8 variable, u8 *val); 4724284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_read_eeprom_info(struct ieee80211_hw *hw); 4824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_interrupt_recognized(struct ieee80211_hw *hw, 4924284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li u32 *inta, u32 *intb); 5024284531497def77d0c3c0de9046880b1c4e6b13Chaoming Liint rtl92se_hw_init(struct ieee80211_hw *hw); 5124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_card_disable(struct ieee80211_hw *hw); 5224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_enable_interrupt(struct ieee80211_hw *hw); 5324284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_disable_interrupt(struct ieee80211_hw *hw); 5424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Liint rtl92se_set_network_type(struct ieee80211_hw *hw, 5524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li enum nl80211_iftype type); 5624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 57dac67975f3dc8565e4254b1d7a49618494f1a2f1Daniel Stamervoid rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr); 5824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_set_qos(struct ieee80211_hw *hw, int aci); 5924284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_set_beacon_related_registers(struct ieee80211_hw *hw); 6024284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_set_beacon_interval(struct ieee80211_hw *hw); 6124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_update_interrupt_mask(struct ieee80211_hw *hw, 6224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li u32 add_msr, u32 rm_msr); 6324284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, 6424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li u8 *val); 6524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_update_hal_rate_tbl(struct ieee80211_hw *hw, 6624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li struct ieee80211_sta *sta, u8 rssi_level); 6724284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_update_channel_access_setting(struct ieee80211_hw *hw); 6824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Libool rtl92se_gpio_radio_on_off_checking(struct ieee80211_hw *hw, 6924284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li u8 *valid); 7024284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl8192se_gpiobit3_cfg_inputmode(struct ieee80211_hw *hw); 7124284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_enable_hw_security_config(struct ieee80211_hw *hw); 7224284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_set_key(struct ieee80211_hw *hw, 7324284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li u32 key_index, u8 *macaddr, bool is_group, 7424284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li u8 enc_algo, bool is_wepkey, bool clear_all); 7524284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_suspend(struct ieee80211_hw *hw); 7624284531497def77d0c3c0de9046880b1c4e6b13Chaoming Livoid rtl92se_resume(struct ieee80211_hw *hw); 7724284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li 7824284531497def77d0c3c0de9046880b1c4e6b13Chaoming Li#endif 79