xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/ssv_pm.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright (c) 2015 South Silicon Valley Microelectronics Inc.
3  * Copyright (c) 2015 iComm Corporation
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  * See the GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef _SSV_PM_H_
18 #define _SSV_PM_H_
19 #include <linux/version.h>
20 #ifdef CONFIG_SSV_SUPPORT_ANDROID
21 #ifdef CONFIG_HAS_EARLYSUSPEND
22 void ssv6xxx_early_suspend(struct early_suspend *h);
23 void ssv6xxx_late_resume(struct early_suspend *h);
24 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
25 void ssv6xxx_early_suspend(void);
26 void ssv6xxx_late_resume(void);
27 #endif
28 #ifdef CONFIG_HAS_WAKELOCK
29 void ssv_wakelock_init(struct ssv_softc *sc);
30 void ssv_wakelock_destroy(struct ssv_softc *sc);
31 void ssv_wake_lock(struct ssv_softc *sc);
32 void ssv_wake_timeout(struct ssv_softc *sc, int secs);
33 void ssv_wake_unlock(struct ssv_softc *sc);
34 #endif
35 #endif
36 #endif
37