1d27a76faSLarry Finger /* SPDX-License-Identifier: GPL-2.0 */
2d27a76faSLarry Finger /* Copyright(c) 2009-2012  Realtek Corporation.*/
3f1d2b4d3SLarry Finger 
4f1d2b4d3SLarry Finger #ifndef __REALTEK_RTL_PCI_PS_H__
5f1d2b4d3SLarry Finger #define __REALTEK_RTL_PCI_PS_H__
6f1d2b4d3SLarry Finger 
7f1d2b4d3SLarry Finger #define MAX_SW_LPS_SLEEP_INTV	5
8f1d2b4d3SLarry Finger 
9f1d2b4d3SLarry Finger bool rtl_ps_enable_nic(struct ieee80211_hw *hw);
10f1d2b4d3SLarry Finger bool rtl_ps_disable_nic(struct ieee80211_hw *hw);
11f1d2b4d3SLarry Finger void rtl_ips_nic_off(struct ieee80211_hw *hw);
12f1d2b4d3SLarry Finger void rtl_ips_nic_on(struct ieee80211_hw *hw);
13a3b7b227SSebastian Andrzej Siewior void rtl_ips_nic_off_wq_callback(struct work_struct *work);
14920872e0SSebastian Andrzej Siewior void rtl_lps_enter(struct ieee80211_hw *hw, bool may_block);
15920872e0SSebastian Andrzej Siewior void rtl_lps_leave(struct ieee80211_hw *hw, bool may_block);
16f1d2b4d3SLarry Finger 
17f1d2b4d3SLarry Finger void rtl_lps_set_psmode(struct ieee80211_hw *hw, u8 rt_psmode);
18f1d2b4d3SLarry Finger 
19f1d2b4d3SLarry Finger void rtl_swlps_beacon(struct ieee80211_hw *hw, void *data, unsigned int len);
20a3b7b227SSebastian Andrzej Siewior void rtl_swlps_wq_callback(struct work_struct *work);
21a3b7b227SSebastian Andrzej Siewior void rtl_swlps_rfon_wq_callback(struct work_struct *work);
22f1d2b4d3SLarry Finger void rtl_swlps_rf_awake(struct ieee80211_hw *hw);
23f1d2b4d3SLarry Finger void rtl_swlps_rf_sleep(struct ieee80211_hw *hw);
24f1d2b4d3SLarry Finger void rtl_p2p_ps_cmd(struct ieee80211_hw *hw , u8 p2p_ps_state);
25f1d2b4d3SLarry Finger void rtl_p2p_info(struct ieee80211_hw *hw, void *data, unsigned int len);
26f1d2b4d3SLarry Finger void rtl_lps_change_work_callback(struct work_struct *work);
27f1d2b4d3SLarry Finger 
28f1d2b4d3SLarry Finger #endif
29