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

Go to the source code of this file.

Macros

#define FSP_CMD_TIMEOUT   200
 
#define FSP_CMD_TIMEOUT2   30
 
#define GET_ABS_X(packet)   ((packet[1] << 2) | ((packet[3] >> 2) & 0x03))
 
#define GET_ABS_Y(packet)   ((packet[2] << 2) | (packet[3] & 0x03))
 

Functions

 PSMOUSE_DEFINE_WO_ATTR (setreg, S_IWUSR, NULL, fsp_attr_set_setreg)
 
 PSMOUSE_DEFINE_ATTR (getreg, S_IWUSR|S_IRUGO, NULL, fsp_attr_show_getreg, fsp_attr_set_getreg)
 
 PSMOUSE_DEFINE_ATTR (page, S_IWUSR|S_IRUGO, NULL, fsp_attr_show_pagereg, fsp_attr_set_pagereg)
 
 PSMOUSE_DEFINE_ATTR (vscroll, S_IWUSR|S_IRUGO, NULL, fsp_attr_show_vscroll, fsp_attr_set_vscroll)
 
 PSMOUSE_DEFINE_ATTR (hscroll, S_IWUSR|S_IRUGO, NULL, fsp_attr_show_hscroll, fsp_attr_set_hscroll)
 
 PSMOUSE_DEFINE_ATTR (flags, S_IWUSR|S_IRUGO, NULL, fsp_attr_show_flags, fsp_attr_set_flags)
 
 PSMOUSE_DEFINE_RO_ATTR (ver, S_IRUGO, NULL, fsp_attr_show_ver)
 
int fsp_detect (struct psmouse *psmouse, bool set_properties)
 
int fsp_init (struct psmouse *psmouse)
 

Macro Definition Documentation

#define FSP_CMD_TIMEOUT   200

Definition at line 37 of file sentelic.c.

#define FSP_CMD_TIMEOUT2   30

Definition at line 38 of file sentelic.c.

#define GET_ABS_X (   packet)    ((packet[1] << 2) | ((packet[3] >> 2) & 0x03))

Definition at line 40 of file sentelic.c.

#define GET_ABS_Y (   packet)    ((packet[2] << 2) | (packet[3] & 0x03))

Definition at line 41 of file sentelic.c.

Function Documentation

int fsp_detect ( struct psmouse psmouse,
bool  set_properties 
)

Definition at line 982 of file sentelic.c.

int fsp_init ( struct psmouse psmouse)

Definition at line 1032 of file sentelic.c.

PSMOUSE_DEFINE_ATTR ( getreg  ,
S_IWUSR S_IRUGO,
NULL  ,
fsp_attr_show_getreg  ,
fsp_attr_set_getreg   
)
PSMOUSE_DEFINE_ATTR ( page  ,
S_IWUSR S_IRUGO,
NULL  ,
fsp_attr_show_pagereg  ,
fsp_attr_set_pagereg   
)
PSMOUSE_DEFINE_ATTR ( vscroll  ,
S_IWUSR S_IRUGO,
NULL  ,
fsp_attr_show_vscroll  ,
fsp_attr_set_vscroll   
)
PSMOUSE_DEFINE_ATTR ( hscroll  ,
S_IWUSR S_IRUGO,
NULL  ,
fsp_attr_show_hscroll  ,
fsp_attr_set_hscroll   
)
PSMOUSE_DEFINE_ATTR ( flags  ,
S_IWUSR S_IRUGO,
NULL  ,
fsp_attr_show_flags  ,
fsp_attr_set_flags   
)
PSMOUSE_DEFINE_RO_ATTR ( ver  ,
S_IRUGO  ,
NULL  ,
fsp_attr_show_ver   
)
PSMOUSE_DEFINE_WO_ATTR ( setreg  ,
S_IWUSR  ,
NULL  ,
fsp_attr_set_setreg   
)