1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2018-2019  Realtek Corporation
3  */
4 
5 #ifndef __RTW_PS_H_
6 #define __RTW_PS_H_
7 
8 #define RTW_LPS_THRESHOLD	2
9 
10 int rtw_enter_ips(struct rtw_dev *rtwdev);
11 int rtw_leave_ips(struct rtw_dev *rtwdev);
12 
13 void rtw_lps_work(struct work_struct *work);
14 void rtw_enter_lps_irqsafe(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif);
15 void rtw_leave_lps_irqsafe(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif);
16 void rtw_enter_lps(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif);
17 void rtw_leave_lps(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif);
18 bool rtw_in_lps(struct rtw_dev *rtwdev);
19 
20 #endif
21