1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
4  *
5  * Based on the r8180 driver, which is:
6  * Copyright 2004-2005 Andrea Merello <andrea.merello@gmail.com>, et al.
7  *
8  * Contact Information: wlanfae <wlanfae@realtek.com>
9  */
10 #ifndef _RTL_PS_H
11 #define _RTL_PS_H
12 
13 #include <linux/types.h>
14 
15 struct net_device;
16 
17 #define RT_CHECK_FOR_HANG_PERIOD 2
18 
19 void rtl92e_hw_wakeup(struct net_device *dev);
20 void rtl92e_enter_sleep(struct net_device *dev, u64 time);
21 void rtl92e_rtllib_ips_leave_wq(struct net_device *dev);
22 void rtl92e_rtllib_ips_leave(struct net_device *dev);
23 void rtl92e_ips_leave_wq(void *data);
24 
25 void rtl92e_ips_enter(struct net_device *dev);
26 void rtl92e_ips_leave(struct net_device *dev);
27 
28 void rtl92e_leisure_ps_enter(struct net_device *dev);
29 void rtl92e_leisure_ps_leave(struct net_device *dev);
30 
31 #endif
32