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

Go to the source code of this file.

Data Structures

struct  trackpoint_attr_data
 

Macros

#define TRACKPOINT_INT_ATTR(_name, _command)
 
#define TRACKPOINT_BIT_ATTR(_name, _command, _mask, _inv)
 

Functions

 TRACKPOINT_INT_ATTR (sensitivity, TP_SENS)
 
 TRACKPOINT_INT_ATTR (speed, TP_SPEED)
 
 TRACKPOINT_INT_ATTR (inertia, TP_INERTIA)
 
 TRACKPOINT_INT_ATTR (reach, TP_REACH)
 
 TRACKPOINT_INT_ATTR (draghys, TP_DRAGHYS)
 
 TRACKPOINT_INT_ATTR (mindrag, TP_MINDRAG)
 
 TRACKPOINT_INT_ATTR (thresh, TP_THRESH)
 
 TRACKPOINT_INT_ATTR (upthresh, TP_UP_THRESH)
 
 TRACKPOINT_INT_ATTR (ztime, TP_Z_TIME)
 
 TRACKPOINT_INT_ATTR (jenks, TP_JENKS_CURV)
 
 TRACKPOINT_BIT_ATTR (press_to_select, TP_TOGGLE_PTSON, TP_MASK_PTSON, 0)
 
 TRACKPOINT_BIT_ATTR (skipback, TP_TOGGLE_SKIPBACK, TP_MASK_SKIPBACK, 0)
 
 TRACKPOINT_BIT_ATTR (ext_dev, TP_TOGGLE_EXT_DEV, TP_MASK_EXT_DEV, 1)
 
int trackpoint_detect (struct psmouse *psmouse, bool set_properties)
 

Macro Definition Documentation

#define TRACKPOINT_BIT_ATTR (   _name,
  _command,
  _mask,
  _inv 
)
Value:
static struct trackpoint_attr_data trackpoint_attr_##_name = { \
.field_offset = offsetof(struct trackpoint_data, _name), \
.command = _command, \
.mask = _mask, \
.inverted = _inv, \
}; \
PSMOUSE_DEFINE_ATTR(_name, S_IWUSR | S_IRUGO, \
&trackpoint_attr_##_name, \
trackpoint_show_int_attr, trackpoint_set_bit_attr)

Definition at line 142 of file trackpoint.c.

#define TRACKPOINT_INT_ATTR (   _name,
  _command 
)
Value:
static struct trackpoint_attr_data trackpoint_attr_##_name = { \
.field_offset = offsetof(struct trackpoint_data, _name), \
.command = _command, \
}; \
PSMOUSE_DEFINE_ATTR(_name, S_IWUSR | S_IRUGO, \
&trackpoint_attr_##_name, \
trackpoint_show_int_attr, trackpoint_set_int_attr)

Definition at line 105 of file trackpoint.c.

Function Documentation

TRACKPOINT_BIT_ATTR ( press_to_select  ,
TP_TOGGLE_PTSON  ,
TP_MASK_PTSON  ,
 
)
TRACKPOINT_BIT_ATTR ( skipback  ,
TP_TOGGLE_SKIPBACK  ,
TP_MASK_SKIPBACK  ,
 
)
TRACKPOINT_BIT_ATTR ( ext_dev  ,
TP_TOGGLE_EXT_DEV  ,
TP_MASK_EXT_DEV  ,
 
)
int trackpoint_detect ( struct psmouse psmouse,
bool  set_properties 
)

Definition at line 293 of file trackpoint.c.

TRACKPOINT_INT_ATTR ( sensitivity  ,
TP_SENS   
)
TRACKPOINT_INT_ATTR ( speed  ,
TP_SPEED   
)
TRACKPOINT_INT_ATTR ( inertia  ,
TP_INERTIA   
)
TRACKPOINT_INT_ATTR ( reach  ,
TP_REACH   
)
TRACKPOINT_INT_ATTR ( draghys  ,
TP_DRAGHYS   
)
TRACKPOINT_INT_ATTR ( mindrag  ,
TP_MINDRAG   
)
TRACKPOINT_INT_ATTR ( thresh  ,
TP_THRESH   
)
TRACKPOINT_INT_ATTR ( upthresh  ,
TP_UP_THRESH   
)
TRACKPOINT_INT_ATTR ( ztime  ,
TP_Z_TIME   
)
TRACKPOINT_INT_ATTR ( jenks  ,
TP_JENKS_CURV   
)