aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/mediatek/MZ_FT5346/focaltech_ctl.h
blob: ce94751c81b486592c72dfb2c79985802ec86698 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __FOCALTECH_CTL_H__
#define __FOCALTECH_CTL_H__
/*****************************************************************************/
#define FT_RW_IIC_DRV                  "ft_rw_iic_drv"
#define FT_RW_IIC_DRV_MAJOR            210 /*Ô¤ÉèµÄft_rw_iic_drvµÄÖ÷É豸ºÅ*/

#define FT_I2C_RDWR_MAX_QUEUE          36
#define FT_I2C_SLAVEADDR               11
#define FT_I2C_RW                      12
#define FT_RESET_TP				       13
#define FT_ENABLE_IRQ			       14

typedef struct ft_rw_i2c
{
    u8 *buf;    
    u8 flag;                            /*0-write 1-read*/
    __u16 length;                       /*the length of data*/
}*pft_rw_i2c;

typedef struct ft_rw_i2c_queue
{
    struct ft_rw_i2c __user *i2c_queue;
    int queuenum;   
}*pft_rw_i2c_queue;

int ft_rw_iic_drv_init(struct i2c_client *client);
void  ft_rw_iic_drv_exit(void);
/*****************************************************************************/
#endif