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

Go to the source code of this file.

Macros

#define DEBUG
 
#define ILLEGAL_XY   999999
 

Functions

 module_param (tpdebug, bool, 0644)
 
 MODULE_PARM_DESC (tpdebug,"enable debugging, dumping packets to KERN_DEBUG.")
 
 module_param (recalib_delta, int, 0644)
 
 MODULE_PARM_DESC (recalib_delta,"packets containing a delta this large will be discarded, and a ""recalibration may be scheduled.")
 
 module_param (jumpy_delay, int, 0644)
 
 MODULE_PARM_DESC (jumpy_delay,"delay (ms) before recal after jumpiness detected")
 
 module_param (spew_delay, int, 0644)
 
 MODULE_PARM_DESC (spew_delay,"delay (ms) before recal after packet spew detected")
 
 module_param (recal_guard_time, int, 0644)
 
 MODULE_PARM_DESC (recal_guard_time,"interval (ms) during which recal will be restarted if packet received")
 
 module_param (post_interrupt_delay, int, 0644)
 
 MODULE_PARM_DESC (post_interrupt_delay,"delay (ms) before recal after recal interrupt detected")
 
 module_param (autorecal, bool, 0644)
 
 MODULE_PARM_DESC (autorecal,"enable recalibration in the driver")
 
 module_param_string (hgpk_mode, hgpk_mode_name, sizeof(hgpk_mode_name), 0644)
 
 MODULE_PARM_DESC (hgpk_mode,"default hgpk mode: mouse, glidesensor or pentablet")
 
 __PSMOUSE_DEFINE_ATTR (powered, S_IWUSR|S_IRUGO, NULL, hgpk_show_powered, hgpk_set_powered, false)
 
 PSMOUSE_DEFINE_ATTR (hgpk_mode, S_IWUSR|S_IRUGO, NULL, attr_show_mode, attr_set_mode)
 
 __PSMOUSE_DEFINE_ATTR (recalibrate, S_IWUSR|S_IRUGO, NULL, hgpk_trigger_recal_show, hgpk_trigger_recal, false)
 
int hgpk_init (struct psmouse *psmouse)
 
int hgpk_detect (struct psmouse *psmouse, bool set_properties)
 
void hgpk_module_init (void)
 

Macro Definition Documentation

#define DEBUG

Definition at line 32 of file hgpk.c.

#define ILLEGAL_XY   999999

Definition at line 44 of file hgpk.c.

Function Documentation

__PSMOUSE_DEFINE_ATTR ( powered  ,
S_IWUSR S_IRUGO,
NULL  ,
hgpk_show_powered  ,
hgpk_set_powered  ,
false   
)
__PSMOUSE_DEFINE_ATTR ( recalibrate  ,
S_IWUSR S_IRUGO,
NULL  ,
hgpk_trigger_recal_show  ,
hgpk_trigger_recal  ,
false   
)
int hgpk_detect ( struct psmouse psmouse,
bool  set_properties 
)

Definition at line 1041 of file hgpk.c.

int hgpk_init ( struct psmouse psmouse)

Definition at line 983 of file hgpk.c.

void hgpk_module_init ( void  )

Definition at line 1058 of file hgpk.c.

module_param ( tpdebug  ,
bool  ,
0644   
)
module_param ( recalib_delta  ,
int  ,
0644   
)
module_param ( jumpy_delay  ,
int  ,
0644   
)
module_param ( spew_delay  ,
int  ,
0644   
)
module_param ( recal_guard_time  ,
int  ,
0644   
)
module_param ( post_interrupt_delay  ,
int  ,
0644   
)
module_param ( autorecal  ,
bool  ,
0644   
)
module_param_string ( hgpk_mode  ,
hgpk_mode_name  ,
sizeof(hgpk_mode_name)  ,
0644   
)
MODULE_PARM_DESC ( tpdebug  ,
"enable  debugging,
dumping packets to KERN_DEBUG."   
)
MODULE_PARM_DESC ( recalib_delta  ,
"packets containing a delta this large will be  discarded,
and a""recalibration may be scheduled."   
)
MODULE_PARM_DESC ( jumpy_delay  ,
"delay (ms) before recal after jumpiness detected"   
)
MODULE_PARM_DESC ( spew_delay  ,
"delay (ms) before recal after packet spew detected"   
)
MODULE_PARM_DESC ( recal_guard_time  ,
"interval (ms) during which recal will be restarted if packet received"   
)
MODULE_PARM_DESC ( post_interrupt_delay  ,
"delay (ms) before recal after recal interrupt detected"   
)
MODULE_PARM_DESC ( autorecal  ,
"enable recalibration in the driver  
)
MODULE_PARM_DESC ( hgpk_mode  ,
"default hgpk mode:  mouse,
glidesensor or pentablet"   
)
PSMOUSE_DEFINE_ATTR ( hgpk_mode  ,
S_IWUSR S_IRUGO,
NULL  ,
attr_show_mode  ,
attr_set_mode   
)