Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mousedev.c File Reference
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/random.h>
#include <linux/major.h>
#include <linux/device.h>
#include <linux/cdev.h>
#include <linux/kernel.h>

Go to the source code of this file.

Data Structures

struct  mousedev_hw_data
 
struct  mousedev
 
struct  mousedev_motion
 
struct  mousedev_client
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MOUSEDEV_MINOR_BASE   32
 
#define MOUSEDEV_MINORS   31
 
#define MOUSEDEV_MIX   63
 
#define CONFIG_INPUT_MOUSEDEV_SCREEN_X   1024
 
#define CONFIG_INPUT_MOUSEDEV_SCREEN_Y   768
 
#define PACKET_QUEUE_LEN   16
 
#define MOUSEDEV_SEQ_LEN   6
 
#define fx(i)   (mousedev->old_x[(mousedev->pkt_count - (i)) & 03])
 
#define fy(i)   (mousedev->old_y[(mousedev->pkt_count - (i)) & 03])
 

Enumerations

enum  mousedev_emul { MOUSEDEV_EMUL_PS2, MOUSEDEV_EMUL_IMPS, MOUSEDEV_EMUL_EXPS }
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("Mouse (ExplorerPS/2) device interfaces")
 
 MODULE_LICENSE ("GPL")
 
 module_param (xres, uint, 0644)
 
 MODULE_PARM_DESC (xres,"Horizontal screen resolution")
 
 module_param (yres, uint, 0644)
 
 MODULE_PARM_DESC (yres,"Vertical screen resolution")
 
 module_param (tap_time, uint, 0644)
 
 MODULE_PARM_DESC (tap_time,"Tap time for touchpads in absolute mode (msecs)")
 
 MODULE_DEVICE_TABLE (input, mousedev_ids)
 
 module_init (mousedev_init)
 
 module_exit (mousedev_exit)
 

Macro Definition Documentation

#define CONFIG_INPUT_MOUSEDEV_SCREEN_X   1024

Definition at line 35 of file mousedev.c.

#define CONFIG_INPUT_MOUSEDEV_SCREEN_Y   768

Definition at line 38 of file mousedev.c.

#define fx (   i)    (mousedev->old_x[(mousedev->pkt_count - (i)) & 03])

Definition at line 122 of file mousedev.c.

#define fy (   i)    (mousedev->old_y[(mousedev->pkt_count - (i)) & 03])

Definition at line 123 of file mousedev.c.

#define MOUSEDEV_MINOR_BASE   32

Definition at line 14 of file mousedev.c.

#define MOUSEDEV_MINORS   31

Definition at line 15 of file mousedev.c.

#define MOUSEDEV_MIX   63

Definition at line 16 of file mousedev.c.

#define MOUSEDEV_SEQ_LEN   6

Definition at line 111 of file mousedev.c.

#define PACKET_QUEUE_LEN   16

Definition at line 93 of file mousedev.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 12 of file mousedev.c.

Enumeration Type Documentation

Enumerator:
MOUSEDEV_EMUL_PS2 
MOUSEDEV_EMUL_IMPS 
MOUSEDEV_EMUL_EXPS 

Definition at line 82 of file mousedev.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( "Mouse (ExplorerPS/2) device interfaces"  )
MODULE_DEVICE_TABLE ( input  ,
mousedev_ids   
)
module_exit ( mousedev_exit  )
module_init ( mousedev_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( xres  ,
uint  ,
0644   
)
module_param ( yres  ,
uint  ,
0644   
)
module_param ( tap_time  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( xres  ,
"Horizontal screen resolution"   
)
MODULE_PARM_DESC ( yres  ,
"Vertical screen resolution"   
)
MODULE_PARM_DESC ( tap_time  ,
"Tap time for touchpads in absolute mode (msecs)"   
)