Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
egalax_ts.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/input.h>
#include <linux/irq.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/bitops.h>
#include <linux/input/mt.h>
#include <linux/of_gpio.h>

Go to the source code of this file.

Data Structures

struct  egalax_ts
 

Macros

#define REPORT_MODE_MOUSE   0x1
 
#define REPORT_MODE_VENDOR   0x3
 
#define REPORT_MODE_MTTOUCH   0x4
 
#define MAX_SUPPORT_POINTS   5
 
#define EVENT_VALID_OFFSET   7
 
#define EVENT_VALID_MASK   (0x1 << EVENT_VALID_OFFSET)
 
#define EVENT_ID_OFFSET   2
 
#define EVENT_ID_MASK   (0xf << EVENT_ID_OFFSET)
 
#define EVENT_IN_RANGE   (0x1 << 1)
 
#define EVENT_DOWN_UP   (0X1 << 0)
 
#define MAX_I2C_DATA_LEN   10
 
#define EGALAX_MAX_X   32760
 
#define EGALAX_MAX_Y   32760
 
#define EGALAX_MAX_TRIES   100
 

Functions

 MODULE_DEVICE_TABLE (i2c, egalax_ts_id)
 
 module_i2c_driver (egalax_ts_driver)
 
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 
 MODULE_DESCRIPTION ("Touchscreen driver for EETI eGalax touch controller")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define EGALAX_MAX_TRIES   100

Definition at line 61 of file egalax_ts.c.

#define EGALAX_MAX_X   32760

Definition at line 59 of file egalax_ts.c.

#define EGALAX_MAX_Y   32760

Definition at line 60 of file egalax_ts.c.

#define EVENT_DOWN_UP   (0X1 << 0)

Definition at line 55 of file egalax_ts.c.

#define EVENT_ID_MASK   (0xf << EVENT_ID_OFFSET)

Definition at line 53 of file egalax_ts.c.

#define EVENT_ID_OFFSET   2

Definition at line 52 of file egalax_ts.c.

#define EVENT_IN_RANGE   (0x1 << 1)

Definition at line 54 of file egalax_ts.c.

#define EVENT_VALID_MASK   (0x1 << EVENT_VALID_OFFSET)

Definition at line 51 of file egalax_ts.c.

#define EVENT_VALID_OFFSET   7

Definition at line 50 of file egalax_ts.c.

#define MAX_I2C_DATA_LEN   10

Definition at line 57 of file egalax_ts.c.

#define MAX_SUPPORT_POINTS   5

Definition at line 48 of file egalax_ts.c.

#define REPORT_MODE_MOUSE   0x1

Definition at line 38 of file egalax_ts.c.

#define REPORT_MODE_MTTOUCH   0x4

Definition at line 46 of file egalax_ts.c.

#define REPORT_MODE_VENDOR   0x3

Definition at line 44 of file egalax_ts.c.

Function Documentation

MODULE_AUTHOR ( "Freescale  Semiconductor,
Inc."   
)
MODULE_DESCRIPTION ( "Touchscreen driver for EETI eGalax touch controller )
MODULE_DEVICE_TABLE ( i2c  ,
egalax_ts_id   
)
module_i2c_driver ( egalax_ts_driver  )
MODULE_LICENSE ( "GPL"  )