blob: 7fce58f13a899fdbe2eaffa1d29a73eda61af973 [file] [log] [blame]
Flemmardc36b8672013-10-23 17:43:54 +02001#ifndef _CURCIAL_OJ_H
2#define _CURCIAL_OJ_H
3#include<linux/earlysuspend.h>
4
5#define CURCIAL_OJ_NAME "curcial_oj"
6
7struct curcial_oj_platform_data {
8 struct input_dev *input_dev;
9 struct work_struct work;
10 bool click;
11 uint8_t key;
12 uint32_t last_key_time;
13 bool ap_code;
14 uint8_t degree;
15 uint8_t debugflag;
16 uint32_t last_click_time;
17 uint16_t interval;
18 uint8_t mdelay_time;
19 int8_t normal_th;
20 int8_t xy_ratio;
21 void (*oj_shutdown)(int);
22 int (*oj_poweron)(int);
23 void(*oj_adjust_xy)(uint8_t *, int16_t *, int16_t *);
24 void (*oj_reset)(int);
25 int microp_version;
26 bool share_power;
27 bool reset_pin;
28 bool swap;
29 int x;
30 int y;
31 uint8_t Xsteps[30];
32 uint8_t Ysteps[30];
33 uint16_t sht_tbl[10];
34 uint8_t pxsum_tbl[10];
35 int irq;
36#ifdef CONFIG_HAS_EARLYSUSPEND
37 struct early_suspend early_suspend;
38#endif
39
40 unsigned irq_gpio;
41 unsigned rst_gpio;
42 uint8_t ledval;
43 int device_id;
44};
45void curcial_oj_send_key(unsigned int code, int value);
46
47#endif