netfilter: Fix wrong backporting
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / drivers / autotst / autotstdrv.h
1
2 #ifndef _AUTOTSTDRV_20130207_H__
3 #define _AUTOTSTDRV_20130207_H__
4
5 //-----------------------------------------------------------------------------
6 #ifdef __cplusplus
7 extern "C" {
8 #endif // __cplusplus
9 //-----------------------------------------------------------------------------
10
11 #include <asm/ioctl.h>
12
13 //
14 //------------------------------------------------------------------------------
15 //
16 #define AUTOTST_IOCTL_MAGIC       'A'
17
18 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
20 struct autotst_i2c_info_t {
21     unsigned char  bus;
22     unsigned char  rcv0;
23     unsigned short addr;
24
25     unsigned short reg;
26     unsigned char  regBits; // 8 or 16
27     unsigned char  rcv1;
28
29     unsigned char  rcv2;
30     unsigned char  data_len;
31     unsigned char  data[16];
32
33 };
34
35 //
36 #define AUTOTST_IOCTL_I2C_READ     _IOWR(AUTOTST_IOCTL_MAGIC, 0x00, struct autotst_i2c_info_t)
37 #define AUTOTST_IOCTL_I2C_WRITE    _IOWR(AUTOTST_IOCTL_MAGIC, 0x01, struct autotst_i2c_info_t)
38
39 //-----------------------------------------------------------------------------
40 //-----------------------------------------------------------------------------
41 #define AUTOTST_GPIO_DIR_IN       0
42 #define AUTOTST_GPIO_DIR_OUT      1
43
44 struct autotst_gpio_info_t {
45     unsigned short gpio;
46     unsigned char  dir;
47     unsigned char  val;
48     unsigned char  pup_enb;
49     unsigned char  pup;
50     unsigned char  pdwn_enb;
51     unsigned char  pdwn;
52 };
53
54 #define AUTOTST_IOCTL_GPIO_INIT    _IOWR(AUTOTST_IOCTL_MAGIC, 0x10, struct autotst_gpio_info_t)
55 #define AUTOTST_IOCTL_GPIO_GET     _IOWR(AUTOTST_IOCTL_MAGIC, 0x11, struct autotst_gpio_info_t)
56 #define AUTOTST_IOCTL_GPIO_SET     _IOW (AUTOTST_IOCTL_MAGIC, 0x12, struct autotst_gpio_info_t)
57
58 //-----------------------------------------------------------------------------
59 //-----------------------------------------------------------------------------
60 #define AUTOTST_LCD_DATA_NUM       32
61 #define AUTOTST_IOCTL_LCD_DATA     _IOW (AUTOTST_IOCTL_MAGIC, 0x30, int)
62 #define  AUTOTST_IOCTL_LCD_MIPI_ON _IOW (AUTOTST_IOCTL_MAGIC, 0x31, int)
63 #define  AUTOTST_IOCTL_LCD_MIPI_OFF _IOW (AUTOTST_IOCTL_MAGIC, 0x32, int)
64
65 //-----------------------------------------------------------------------------
66 //-----------------------------------------------------------------------------
67 #define AUTOTST_KEY_INVALID_ROW    0xFFEE
68 #define AUTOTST_KEY_INVALID_COL    0xFFEE
69
70 struct autotst_key_info_t {
71     unsigned short val;  // key value
72     unsigned short row;  //
73     unsigned short col;
74         unsigned short gio;
75 };
76
77 #define AUTOTST_IOCTL_GET_KEYINFO  _IOWR(AUTOTST_IOCTL_MAGIC, 0x40, struct autotst_key_info_t)
78
79
80 //-----------------------------------------------------------------------------
81 #ifdef __cplusplus
82 }
83 #endif // __cplusplus
84 //-----------------------------------------------------------------------------
85
86 #endif // _AUTOTSTDRV_20130207_H__