18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* Copyright(c) 2009-2012 Realtek Corporation.*/ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __REALTEK_PCI92SE_HW_H__ 58c2ecf20Sopenharmony_ci#define __REALTEK_PCI92SE_HW_H__ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#define MSR_LINK_MANAGED 2 88c2ecf20Sopenharmony_ci#define MSR_LINK_NONE 0 98c2ecf20Sopenharmony_ci#define MSR_LINK_SHIFT 0 108c2ecf20Sopenharmony_ci#define MSR_LINK_ADHOC 1 118c2ecf20Sopenharmony_ci#define MSR_LINK_MASTER 3 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cienum WIRELESS_NETWORK_TYPE { 148c2ecf20Sopenharmony_ci WIRELESS_11B = 1, 158c2ecf20Sopenharmony_ci WIRELESS_11G = 2, 168c2ecf20Sopenharmony_ci WIRELESS_11A = 4, 178c2ecf20Sopenharmony_ci WIRELESS_11N = 8 188c2ecf20Sopenharmony_ci}; 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_civoid rtl92se_get_hw_reg(struct ieee80211_hw *hw, 218c2ecf20Sopenharmony_ci u8 variable, u8 *val); 228c2ecf20Sopenharmony_civoid rtl92se_read_eeprom_info(struct ieee80211_hw *hw); 238c2ecf20Sopenharmony_civoid rtl92se_interrupt_recognized(struct ieee80211_hw *hw, 248c2ecf20Sopenharmony_ci struct rtl_int *int_vec); 258c2ecf20Sopenharmony_ciint rtl92se_hw_init(struct ieee80211_hw *hw); 268c2ecf20Sopenharmony_civoid rtl92se_card_disable(struct ieee80211_hw *hw); 278c2ecf20Sopenharmony_civoid rtl92se_enable_interrupt(struct ieee80211_hw *hw); 288c2ecf20Sopenharmony_civoid rtl92se_disable_interrupt(struct ieee80211_hw *hw); 298c2ecf20Sopenharmony_ciint rtl92se_set_network_type(struct ieee80211_hw *hw, 308c2ecf20Sopenharmony_ci enum nl80211_iftype type); 318c2ecf20Sopenharmony_civoid rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 328c2ecf20Sopenharmony_civoid rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr); 338c2ecf20Sopenharmony_civoid rtl92se_set_qos(struct ieee80211_hw *hw, int aci); 348c2ecf20Sopenharmony_civoid rtl92se_set_beacon_related_registers(struct ieee80211_hw *hw); 358c2ecf20Sopenharmony_civoid rtl92se_set_beacon_interval(struct ieee80211_hw *hw); 368c2ecf20Sopenharmony_civoid rtl92se_update_interrupt_mask(struct ieee80211_hw *hw, 378c2ecf20Sopenharmony_ci u32 add_msr, u32 rm_msr); 388c2ecf20Sopenharmony_civoid rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, 398c2ecf20Sopenharmony_ci u8 *val); 408c2ecf20Sopenharmony_civoid rtl92se_update_hal_rate_tbl(struct ieee80211_hw *hw, 418c2ecf20Sopenharmony_ci struct ieee80211_sta *sta, u8 rssi_level, bool update_bw); 428c2ecf20Sopenharmony_civoid rtl92se_update_channel_access_setting(struct ieee80211_hw *hw); 438c2ecf20Sopenharmony_cibool rtl92se_gpio_radio_on_off_checking(struct ieee80211_hw *hw, 448c2ecf20Sopenharmony_ci u8 *valid); 458c2ecf20Sopenharmony_civoid rtl8192se_gpiobit3_cfg_inputmode(struct ieee80211_hw *hw); 468c2ecf20Sopenharmony_civoid rtl92se_enable_hw_security_config(struct ieee80211_hw *hw); 478c2ecf20Sopenharmony_civoid rtl92se_set_key(struct ieee80211_hw *hw, 488c2ecf20Sopenharmony_ci u32 key_index, u8 *macaddr, bool is_group, 498c2ecf20Sopenharmony_ci u8 enc_algo, bool is_wepkey, bool clear_all); 508c2ecf20Sopenharmony_civoid rtl92se_suspend(struct ieee80211_hw *hw); 518c2ecf20Sopenharmony_civoid rtl92se_resume(struct ieee80211_hw *hw); 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#endif 54