Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      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__
     14 
     15 #include <linux/ioctl.h>
     16 
     17 #define KXTF9_IOCTL_BASE 77
     18 
     19 #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)
     24 
     25 #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)
     31 
     32 #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
     39 
     40 #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
     52 
     53 #define IEN 0x20
     54 #define IEA 0x10
     55 #define IEL 0x08
     56 #define IEU 0x04
     57 
     58 #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
     65 
     66 #define SENSITIVITY_REGS 0x07
     67 
     68 #endif
     69 
     70 
     71