luckfox-pico-sdk/sysdrv/drv_ko/wifi/ssv6x5x/smac/ssv_pm.h
2023-08-08 20:36:47 +08:00

21 lines
611 B
C

#ifndef _SSV_PM_H_
#define _SSV_PM_H_
#include <linux/version.h>
#ifdef CONFIG_SSV_SUPPORT_ANDROID
#ifdef CONFIG_HAS_EARLYSUSPEND
void ssv6xxx_early_suspend(struct early_suspend *h);
void ssv6xxx_late_resume(struct early_suspend *h);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
void ssv6xxx_early_suspend(void);
void ssv6xxx_late_resume(void);
#endif
void ssv_wakelock_init(struct ssv_softc *sc);
void ssv_wakelock_destroy(struct ssv_softc *sc);
void ssv_wake_lock(struct ssv_softc *sc);
void ssv_wake_timeout(struct ssv_softc *sc, int secs);
void ssv_wake_unlock(struct ssv_softc *sc);
#endif
#endif