18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright(c) 2009-2012  Realtek Corporation.*/
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef __REALTEK_RTL_PCI_PS_H__
58c2ecf20Sopenharmony_ci#define __REALTEK_RTL_PCI_PS_H__
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define MAX_SW_LPS_SLEEP_INTV	5
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cibool rtl_ps_enable_nic(struct ieee80211_hw *hw);
108c2ecf20Sopenharmony_cibool rtl_ps_disable_nic(struct ieee80211_hw *hw);
118c2ecf20Sopenharmony_civoid rtl_ips_nic_off(struct ieee80211_hw *hw);
128c2ecf20Sopenharmony_civoid rtl_ips_nic_on(struct ieee80211_hw *hw);
138c2ecf20Sopenharmony_civoid rtl_ips_nic_off_wq_callback(struct work_struct *work);
148c2ecf20Sopenharmony_civoid rtl_lps_enter(struct ieee80211_hw *hw, bool may_block);
158c2ecf20Sopenharmony_civoid rtl_lps_leave(struct ieee80211_hw *hw, bool may_block);
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_civoid rtl_lps_set_psmode(struct ieee80211_hw *hw, u8 rt_psmode);
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_civoid rtl_swlps_beacon(struct ieee80211_hw *hw, void *data, unsigned int len);
208c2ecf20Sopenharmony_civoid rtl_swlps_wq_callback(struct work_struct *work);
218c2ecf20Sopenharmony_civoid rtl_swlps_rfon_wq_callback(struct work_struct *work);
228c2ecf20Sopenharmony_civoid rtl_swlps_rf_awake(struct ieee80211_hw *hw);
238c2ecf20Sopenharmony_civoid rtl_swlps_rf_sleep(struct ieee80211_hw *hw);
248c2ecf20Sopenharmony_civoid rtl_p2p_ps_cmd(struct ieee80211_hw *hw , u8 p2p_ps_state);
258c2ecf20Sopenharmony_civoid rtl_p2p_info(struct ieee80211_hw *hw, void *data, unsigned int len);
268c2ecf20Sopenharmony_civoid rtl_lps_change_work_callback(struct work_struct *work);
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#endif
29