Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
turbografx.c File Reference
#include <linux/kernel.h>
#include <linux/parport.h>
#include <linux/input.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  tgfx_config
 
struct  tgfx
 

Macros

#define TGFX_MAX_PORTS   3
 
#define TGFX_MAX_DEVICES   7
 
#define TGFX_REFRESH_TIME   HZ/100 /* 10 ms */
 
#define TGFX_TRIGGER   0x08
 
#define TGFX_UP   0x10
 
#define TGFX_DOWN   0x20
 
#define TGFX_LEFT   0x40
 
#define TGFX_RIGHT   0x80
 
#define TGFX_THUMB   0x02
 
#define TGFX_THUMB2   0x04
 
#define TGFX_TOP   0x01
 
#define TGFX_TOP2   0x08
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("TurboGraFX parallel port interface driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param_array_named (map, tgfx_cfg[0].args, int,&tgfx_cfg[0].nargs, 0)
 
 MODULE_PARM_DESC (map,"Describes first set of devices (<parport#>,<js1>,<js2>,..<js7>")
 
 module_param_array_named (map2, tgfx_cfg[1].args, int,&tgfx_cfg[1].nargs, 0)
 
 MODULE_PARM_DESC (map2,"Describes second set of devices")
 
 module_param_array_named (map3, tgfx_cfg[2].args, int,&tgfx_cfg[2].nargs, 0)
 
 MODULE_PARM_DESC (map3,"Describes third set of devices")
 
 module_init (tgfx_init)
 
 module_exit (tgfx_exit)
 

Macro Definition Documentation

#define TGFX_DOWN   0x20

Definition at line 65 of file turbografx.c.

#define TGFX_LEFT   0x40

Definition at line 66 of file turbografx.c.

#define TGFX_MAX_DEVICES   7

Definition at line 45 of file turbografx.c.

#define TGFX_MAX_PORTS   3

Definition at line 44 of file turbografx.c.

#define TGFX_REFRESH_TIME   HZ/100 /* 10 ms */

Definition at line 61 of file turbografx.c.

#define TGFX_RIGHT   0x80

Definition at line 67 of file turbografx.c.

#define TGFX_THUMB   0x02

Definition at line 69 of file turbografx.c.

#define TGFX_THUMB2   0x04

Definition at line 70 of file turbografx.c.

#define TGFX_TOP   0x01

Definition at line 71 of file turbografx.c.

#define TGFX_TOP2   0x08

Definition at line 72 of file turbografx.c.

#define TGFX_TRIGGER   0x08

Definition at line 63 of file turbografx.c.

#define TGFX_UP   0x10

Definition at line 64 of file turbografx.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( "TurboGraFX parallel port interface driver )
module_exit ( tgfx_exit  )
module_init ( tgfx_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array_named ( map  ,
tgfx_cfg.  args[0],
int  ,
&tgfx_cfg.  nargs[0],
 
)
module_param_array_named ( map2  ,
tgfx_cfg.  args[1],
int  ,
&tgfx_cfg.  nargs[1],
 
)
module_param_array_named ( map3  ,
tgfx_cfg.  args[2],
int  ,
&tgfx_cfg.  nargs[2],
 
)
MODULE_PARM_DESC ( map  )
MODULE_PARM_DESC ( map2  ,
"Describes second set of devices  
)
MODULE_PARM_DESC ( map3  ,
"Describes third set of devices  
)