1*03f3dd37SLarry Finger /* SPDX-License-Identifier: GPL-2.0 */ 2*03f3dd37SLarry Finger /* Copyright(c) 2009-2010 Realtek Corporation.*/ 3f1d2b4d3SLarry Finger 4f1d2b4d3SLarry Finger #ifndef __RTL8821AE_HW_H__ 5f1d2b4d3SLarry Finger #define __RTL8821AE_HW_H__ 6f1d2b4d3SLarry Finger 7f1d2b4d3SLarry Finger void rtl8821ae_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 8f1d2b4d3SLarry Finger void rtl8821ae_read_eeprom_info(struct ieee80211_hw *hw); 9f1d2b4d3SLarry Finger 10f1d2b4d3SLarry Finger void rtl8821ae_interrupt_recognized(struct ieee80211_hw *hw, 1178aa6012SLarry Finger struct rtl_int *int_vec); 12f1d2b4d3SLarry Finger int rtl8821ae_hw_init(struct ieee80211_hw *hw); 13f1d2b4d3SLarry Finger void rtl8821ae_card_disable(struct ieee80211_hw *hw); 14f1d2b4d3SLarry Finger void rtl8821ae_enable_interrupt(struct ieee80211_hw *hw); 15f1d2b4d3SLarry Finger void rtl8821ae_disable_interrupt(struct ieee80211_hw *hw); 16f1d2b4d3SLarry Finger int rtl8821ae_set_network_type(struct ieee80211_hw *hw, 17f1d2b4d3SLarry Finger enum nl80211_iftype type); 18f1d2b4d3SLarry Finger void rtl8821ae_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 19f1d2b4d3SLarry Finger void rtl8821ae_set_qos(struct ieee80211_hw *hw, int aci); 20f1d2b4d3SLarry Finger void rtl8821ae_set_beacon_related_registers(struct ieee80211_hw *hw); 21f1d2b4d3SLarry Finger void rtl8821ae_set_beacon_interval(struct ieee80211_hw *hw); 22f1d2b4d3SLarry Finger void rtl8821ae_update_interrupt_mask(struct ieee80211_hw *hw, 23f1d2b4d3SLarry Finger u32 add_msr, u32 rm_msr); 24f1d2b4d3SLarry Finger void rtl8821ae_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 25f1d2b4d3SLarry Finger void rtl8821ae_update_hal_rate_tbl(struct ieee80211_hw *hw, 26f1d2b4d3SLarry Finger struct ieee80211_sta *sta, 271d22b177SPing-Ke Shih u8 rssi_level, bool update_bw); 28f1d2b4d3SLarry Finger void rtl8821ae_update_channel_access_setting(struct ieee80211_hw *hw); 29f1d2b4d3SLarry Finger bool rtl8821ae_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid); 30f1d2b4d3SLarry Finger void rtl8821ae_enable_hw_security_config(struct ieee80211_hw *hw); 31f1d2b4d3SLarry Finger void rtl8821ae_set_key(struct ieee80211_hw *hw, u32 key_index, 32f1d2b4d3SLarry Finger u8 *p_macaddr, bool is_group, u8 enc_algo, 33f1d2b4d3SLarry Finger bool is_wepkey, bool clear_all); 34f1d2b4d3SLarry Finger 35f1d2b4d3SLarry Finger void rtl8821ae_bt_reg_init(struct ieee80211_hw *hw); 36f1d2b4d3SLarry Finger void rtl8821ae_bt_hw_init(struct ieee80211_hw *hw); 37f1d2b4d3SLarry Finger void rtl8821ae_suspend(struct ieee80211_hw *hw); 38f1d2b4d3SLarry Finger void rtl8821ae_resume(struct ieee80211_hw *hw); 39f1d2b4d3SLarry Finger void rtl8821ae_allow_all_destaddr(struct ieee80211_hw *hw, 40f1d2b4d3SLarry Finger bool allow_all_da, 41f1d2b4d3SLarry Finger bool write_into_reg); 42f1d2b4d3SLarry Finger void _rtl8821ae_stop_tx_beacon(struct ieee80211_hw *hw); 43f1d2b4d3SLarry Finger void _rtl8821ae_resume_tx_beacon(struct ieee80211_hw *hw); 44f1d2b4d3SLarry Finger void rtl8821ae_add_wowlan_pattern(struct ieee80211_hw *hw, 45f1d2b4d3SLarry Finger struct rtl_wow_pattern *rtl_pattern, 46f1d2b4d3SLarry Finger u8 index); 47f1d2b4d3SLarry Finger 48f1d2b4d3SLarry Finger #endif 49