162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright(c) 2009-2012 Realtek Corporation.*/ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef __REALTEK_PCI92SE_HW_H__ 562306a36Sopenharmony_ci#define __REALTEK_PCI92SE_HW_H__ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#define MSR_LINK_MANAGED 2 862306a36Sopenharmony_ci#define MSR_LINK_NONE 0 962306a36Sopenharmony_ci#define MSR_LINK_SHIFT 0 1062306a36Sopenharmony_ci#define MSR_LINK_ADHOC 1 1162306a36Sopenharmony_ci#define MSR_LINK_MASTER 3 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cienum WIRELESS_NETWORK_TYPE { 1462306a36Sopenharmony_ci WIRELESS_11B = 1, 1562306a36Sopenharmony_ci WIRELESS_11G = 2, 1662306a36Sopenharmony_ci WIRELESS_11A = 4, 1762306a36Sopenharmony_ci WIRELESS_11N = 8 1862306a36Sopenharmony_ci}; 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_civoid rtl92se_get_hw_reg(struct ieee80211_hw *hw, 2162306a36Sopenharmony_ci u8 variable, u8 *val); 2262306a36Sopenharmony_civoid rtl92se_read_eeprom_info(struct ieee80211_hw *hw); 2362306a36Sopenharmony_civoid rtl92se_interrupt_recognized(struct ieee80211_hw *hw, 2462306a36Sopenharmony_ci struct rtl_int *int_vec); 2562306a36Sopenharmony_ciint rtl92se_hw_init(struct ieee80211_hw *hw); 2662306a36Sopenharmony_civoid rtl92se_card_disable(struct ieee80211_hw *hw); 2762306a36Sopenharmony_civoid rtl92se_enable_interrupt(struct ieee80211_hw *hw); 2862306a36Sopenharmony_civoid rtl92se_disable_interrupt(struct ieee80211_hw *hw); 2962306a36Sopenharmony_ciint rtl92se_set_network_type(struct ieee80211_hw *hw, 3062306a36Sopenharmony_ci enum nl80211_iftype type); 3162306a36Sopenharmony_civoid rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 3262306a36Sopenharmony_civoid rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr); 3362306a36Sopenharmony_civoid rtl92se_set_qos(struct ieee80211_hw *hw, int aci); 3462306a36Sopenharmony_civoid rtl92se_set_beacon_related_registers(struct ieee80211_hw *hw); 3562306a36Sopenharmony_civoid rtl92se_set_beacon_interval(struct ieee80211_hw *hw); 3662306a36Sopenharmony_civoid rtl92se_update_interrupt_mask(struct ieee80211_hw *hw, 3762306a36Sopenharmony_ci u32 add_msr, u32 rm_msr); 3862306a36Sopenharmony_civoid rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, 3962306a36Sopenharmony_ci u8 *val); 4062306a36Sopenharmony_civoid rtl92se_update_hal_rate_tbl(struct ieee80211_hw *hw, 4162306a36Sopenharmony_ci struct ieee80211_sta *sta, u8 rssi_level, bool update_bw); 4262306a36Sopenharmony_civoid rtl92se_update_channel_access_setting(struct ieee80211_hw *hw); 4362306a36Sopenharmony_cibool rtl92se_gpio_radio_on_off_checking(struct ieee80211_hw *hw, 4462306a36Sopenharmony_ci u8 *valid); 4562306a36Sopenharmony_civoid rtl8192se_gpiobit3_cfg_inputmode(struct ieee80211_hw *hw); 4662306a36Sopenharmony_civoid rtl92se_enable_hw_security_config(struct ieee80211_hw *hw); 4762306a36Sopenharmony_civoid rtl92se_set_key(struct ieee80211_hw *hw, 4862306a36Sopenharmony_ci u32 key_index, u8 *macaddr, bool is_group, 4962306a36Sopenharmony_ci u8 enc_algo, bool is_wepkey, bool clear_all); 5062306a36Sopenharmony_civoid rtl92se_suspend(struct ieee80211_hw *hw); 5162306a36Sopenharmony_civoid rtl92se_resume(struct ieee80211_hw *hw); 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci#endif 54