#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.
|
| 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) |
|
#define TGFX_MAX_DEVICES 7 |
#define TGFX_REFRESH_TIME HZ/100 /* 10 ms */ |
#define TGFX_TRIGGER 0x08 |
module_exit |
( |
tgfx_exit |
| ) |
|
module_init |
( |
tgfx_init |
| ) |
|
module_param_array_named |
( |
map |
, |
|
|
tgfx_cfg. |
args[0], |
|
|
int |
, |
|
|
&tgfx_cfg. |
nargs[0], |
|
|
0 |
|
|
) |
| |
module_param_array_named |
( |
map2 |
, |
|
|
tgfx_cfg. |
args[1], |
|
|
int |
, |
|
|
&tgfx_cfg. |
nargs[1], |
|
|
0 |
|
|
) |
| |
module_param_array_named |
( |
map3 |
, |
|
|
tgfx_cfg. |
args[2], |
|
|
int |
, |
|
|
&tgfx_cfg. |
nargs[2], |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
map3 |
, |
|
|
"Describes third set of devices" |
|
|
) |
| |