summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/ist30xxc/ist30xxc_misc.h
blob: 6f811ccdb7e7d8b9cb801455a0e05bb093d54126 (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
/*
 *  Copyright (C) 2010, Imagis Technology Co. Ltd. All Rights Reserved.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  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 __IST30XXC_MISC_H__
#define __IST30XXC_MISC_H__

#define NODE_FLAG_RAW		(1)
#define NODE_FLAG_BASE		(1 << 1)
#define NODE_FLAG_FILTER		(1 << 2)
#define NODE_FLAG_DIFF		(1 << 3)
#define NODE_FLAG_ALL		(0xF)
#define NODE_FLAG_NO_CCP	(1 << 7)

int ist30xx_check_valid_ch(struct ist30xx_data *data, int ch_tx, int ch_rx);
int ist30xx_parse_touch_node(struct ist30xx_data *data, u8 flag,
        struct TSP_NODE_BUF *node);
int parse_tsp_node(struct ist30xx_data *data, u8 flag,
        struct TSP_NODE_BUF *node, s16 *buf16, bool only_screen);
int ist30xx_read_touch_node(struct ist30xx_data *data, u8 flag,
        struct TSP_NODE_BUF *node);

int ist30xx_init_misc_sysfs(struct ist30xx_data *data);

#endif  // __IST30XXC_MISC_H__