/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2019 MediaTek Inc. */ #ifndef _TCHBST_H #define _TCHBST_H #include #include #include #include #include #include #include #include #include "perf_ioctl.h" #define MAX(a, b) (((a) > (b)) ? (a) : (b)) /*tchbst 100 ms*/ #define TOUCH_TIMEOUT_NSEC 100000000 #define TOUCH_BOOST_EAS 80 #define TOUCH_BOOST_OPP 2 #define TOUCH_FSTB_ACTIVE_US 100000 #define TOUCH_TIME_TO_LAST_TOUCH_MS 600000 /*touch boost parent*/ int init_tchbst(struct proc_dir_entry *parent); /*user*/ void switch_usrtch(int enable); long usrtch_ioctl(unsigned int cmd, unsigned long arg); int init_utch(struct proc_dir_entry *parent); int notify_touch(int action); /*kernel*/ int init_ktch(struct proc_dir_entry *parent); int ktch_suspend(void); #endif /* _TCHBST_H */