Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ad714x.h
Go to the documentation of this file.
1 /*
2  * include/linux/input/ad714x.h
3  *
4  * AD714x is very flexible, it can be used as buttons, scrollwheel,
5  * slider, touchpad at the same time. That depends on the boards.
6  * The platform_data for the device's "struct device" holds this
7  * information.
8  *
9  * Copyright 2009-2011 Analog Devices Inc.
10  *
11  * Licensed under the GPL-2 or later.
12  */
13 
14 #ifndef __LINUX_INPUT_AD714X_H__
15 #define __LINUX_INPUT_AD714X_H__
16 
17 #define STAGE_NUM 12
18 #define STAGE_CFGREG_NUM 8
19 #define SYS_CFGREG_NUM 8
20 
21 /* board information which need be initialized in arch/mach... */
24  int end_stage;
25  int max_coord;
26 };
27 
30  int end_stage;
31  int max_coord;
32 };
33 
38 
42 };
43 
45  int keycode;
46  unsigned short l_mask;
47  unsigned short h_mask;
48 };
49 
52  int wheel_num;
60  unsigned short sys_cfg_reg[SYS_CFGREG_NUM];
61  unsigned long irqflags;
62 };
63 
64 #endif