Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
elantech.c File Reference
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/input.h>
#include <linux/input/mt.h>
#include <linux/serio.h>
#include <linux/libps2.h>
#include "psmouse.h"
#include "elantech.h"

Go to the source code of this file.

Data Structures

struct  elantech_attr_data
 

Macros

#define elantech_debug(fmt,...)
 
#define ELANTECH_INT_ATTR(_name, _register)
 

Functions

 ELANTECH_INT_ATTR (reg_07, 0x07)
 
 ELANTECH_INT_ATTR (reg_10, 0x10)
 
 ELANTECH_INT_ATTR (reg_11, 0x11)
 
 ELANTECH_INT_ATTR (reg_20, 0x20)
 
 ELANTECH_INT_ATTR (reg_21, 0x21)
 
 ELANTECH_INT_ATTR (reg_22, 0x22)
 
 ELANTECH_INT_ATTR (reg_23, 0x23)
 
 ELANTECH_INT_ATTR (reg_24, 0x24)
 
 ELANTECH_INT_ATTR (reg_25, 0x25)
 
 ELANTECH_INT_ATTR (reg_26, 0x26)
 
 ELANTECH_INT_ATTR (debug, 0)
 
 ELANTECH_INT_ATTR (paritycheck, 0)
 
int elantech_detect (struct psmouse *psmouse, bool set_properties)
 
int elantech_init (struct psmouse *psmouse)
 

Macro Definition Documentation

#define elantech_debug (   fmt,
  ... 
)
Value:
do { \
if (etd->debug) \
psmouse_printk(KERN_DEBUG, psmouse, \
fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 23 of file elantech.c.

#define ELANTECH_INT_ATTR (   _name,
  _register 
)
Value:
static struct elantech_attr_data elantech_attr_##_name = { \
.field_offset = offsetof(struct elantech_data, _name), \
.reg = _register, \
}; \
PSMOUSE_DEFINE_ATTR(_name, S_IWUSR | S_IRUGO, \
&elantech_attr_##_name, \
elantech_show_int_attr, \
elantech_set_int_attr)

Definition at line 1114 of file elantech.c.

Function Documentation

int elantech_detect ( struct psmouse psmouse,
bool  set_properties 
)

Definition at line 1178 of file elantech.c.

int elantech_init ( struct psmouse psmouse)

Definition at line 1321 of file elantech.c.

ELANTECH_INT_ATTR ( reg_07  ,
0x07   
)
ELANTECH_INT_ATTR ( reg_10  ,
0x10   
)
ELANTECH_INT_ATTR ( reg_11  ,
0x11   
)
ELANTECH_INT_ATTR ( reg_20  ,
0x20   
)
ELANTECH_INT_ATTR ( reg_21  ,
0x21   
)
ELANTECH_INT_ATTR ( reg_22  ,
0x22   
)
ELANTECH_INT_ATTR ( reg_23  ,
0x23   
)
ELANTECH_INT_ATTR ( reg_24  ,
0x24   
)
ELANTECH_INT_ATTR ( reg_25  ,
0x25   
)
ELANTECH_INT_ATTR ( reg_26  ,
0x26   
)
ELANTECH_INT_ATTR ( debug  ,
 
)
ELANTECH_INT_ATTR ( paritycheck  ,
 
)