aboutsummaryrefslogtreecommitdiff
path: root/include/linux/input/fts_dev.h
blob: fdb72f3948a3e02d15e6f98bd5735eacf12920ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * FocalTech ft8607 TouchScreen driver.
 *
 * Copyright (c) 2016  Focal tech Ltd.
 * Copyright (c) 2016, Sharp. All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#ifndef __FTS_DEV_H__
#define __FTS_DEV_H__

#define FTS_TOUCH_DEVNAME				"ftsif"
#define FTS_TOUCH_IF_DEVNAME 			"ftsif"
#define FTS_TOUCH_IF_DEVPATH 			"/dev/ftsif"

#define FTS_TM_TXNUM_MAX				27
#define FTS_TM_RXNUM_MAX				16

#define FTS_FINGER_MAX					5

#define FTS_IOC_MAGIC					0xE0

#define FTSDEV_GET_FW_VERSION			_IOR ( FTS_IOC_MAGIC,  1, unsigned short)
#define FTSDEV_GET_FW_VERSION_BUILTIN	_IOR ( FTS_IOC_MAGIC,  2, unsigned short)
#define FTSDEV_FW_UPGRADE				_IOW ( FTS_IOC_MAGIC,  3, struct fts_ioctl_param)


#ifdef CONFIG_COMPAT
#define COMPAT_FTSDEV_FW_UPGRADE		_IOW ( FTS_IOC_MAGIC,  3, struct fts_compat_ioctl_param)

typedef __u32 fts_ioctl_compat_pointer_param;
struct fts_compat_ioctl_param {
	int				size;
	__u32			data;
};
#endif /* CONFIG_COMPAT */


struct fts_ioctl_param {
	int				size;
	unsigned char*	data;
};

/* -----------------------------------------------------------------------------------
 */
#ifdef CONFIG_TOUCHSCREEN_FT8607
extern void fts_setsleep(int on);
#else
static inline void fts_setsleep(int on) { return; }
#endif /* CONFIG_TOUCHSCREEN_FT8607 */

#endif /* __FTS_DEV_H__ */