blob: 91413643792d90401f1f5f72c7e2e5d6c11f0cae [file] [log] [blame]
Colin Cross1c7708e2010-06-01 17:45:50 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __KXTF9_H__
13#define __KXTF9_H__
Ben Cheng4b29af02012-03-07 16:14:53 -080014
Colin Cross1c7708e2010-06-01 17:45:50 -070015#include <linux/ioctl.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080016
Colin Cross1c7708e2010-06-01 17:45:50 -070017#define KXTF9_IOCTL_BASE 77
Ben Cheng4b29af02012-03-07 16:14:53 -080018
Colin Cross1c7708e2010-06-01 17:45:50 -070019#define KXTF9_IOCTL_SET_DELAY _IOW(KXTF9_IOCTL_BASE, 0, int)
20#define KXTF9_IOCTL_GET_DELAY _IOR(KXTF9_IOCTL_BASE, 1, int)
21#define KXTF9_IOCTL_SET_ENABLE _IOW(KXTF9_IOCTL_BASE, 2, int)
22#define KXTF9_IOCTL_GET_ENABLE _IOR(KXTF9_IOCTL_BASE, 3, int)
23#define KXTF9_IOCTL_SET_G_RANGE _IOW(KXTF9_IOCTL_BASE, 4, int)
Ben Cheng4b29af02012-03-07 16:14:53 -080024
Colin Cross1c7708e2010-06-01 17:45:50 -070025#define KXTF9_IOCTL_SET_TILT_ENABLE _IOW(KXTF9_IOCTL_BASE, 5, int)
26#define KXTF9_IOCTL_SET_TAP_ENABLE _IOW(KXTF9_IOCTL_BASE, 6, int)
27#define KXTF9_IOCTL_SET_WAKE_ENABLE _IOW(KXTF9_IOCTL_BASE, 7, int)
28#define KXTF9_IOCTL_SET_PM_MODE _IOW(KXTF9_IOCTL_BASE, 8, int)
29#define KXTF9_IOCTL_SELF_TEST _IOW(KXTF9_IOCTL_BASE, 9, int)
30#define KXTF9_IOCTL_SET_SENSITIVITY _IOW(KXTF9_IOCTL_BASE, 10, int)
Ben Cheng4b29af02012-03-07 16:14:53 -080031
Colin Cross1c7708e2010-06-01 17:45:50 -070032#define RES_12BIT 0x40
33#define KXTF9_G_2G 0x00
34#define KXTF9_G_4G 0x08
35#define KXTF9_G_8G 0x10
36#define TPE 0x01
37#define WUFE 0x02
38#define TDTE 0x04
Ben Cheng4b29af02012-03-07 16:14:53 -080039
Colin Cross1c7708e2010-06-01 17:45:50 -070040#define OTP1_6 0x00
41#define OTP6_3 0x20
42#define OTP12_5 0x40
43#define OTP50 0x60
44#define OWUF25 0x00
45#define OWUF50 0x01
46#define OWUF100 0x02
47#define OWUF200 0x03
48#define OTDT50 0x00
49#define OTDT100 0x04
50#define OTDT200 0x08
51#define OTDT400 0x0C
Ben Cheng4b29af02012-03-07 16:14:53 -080052
Colin Cross1c7708e2010-06-01 17:45:50 -070053#define IEN 0x20
54#define IEA 0x10
55#define IEL 0x08
56#define IEU 0x04
Ben Cheng4b29af02012-03-07 16:14:53 -080057
Colin Cross1c7708e2010-06-01 17:45:50 -070058#define ODR800 0x06
59#define ODR400 0x05
60#define ODR200 0x04
61#define ODR100 0x03
62#define ODR50 0x02
63#define ODR25 0x01
64#define ODR12_5 0x00
Ben Cheng4b29af02012-03-07 16:14:53 -080065
Colin Cross1c7708e2010-06-01 17:45:50 -070066#define SENSITIVITY_REGS 0x07
Ben Cheng4b29af02012-03-07 16:14:53 -080067
Colin Cross1c7708e2010-06-01 17:45:50 -070068#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080069
70