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

Go to the source code of this file.

Data Structures

struct  db9_config
 
struct  db9_mode_data
 
struct  db9
 

Macros

#define DB9_MAX_PORTS   3
 
#define DB9_ARG_PARPORT   0
 
#define DB9_ARG_MODE   1
 
#define DB9_MULTI_STICK   0x01
 
#define DB9_MULTI2_STICK   0x02
 
#define DB9_GENESIS_PAD   0x03
 
#define DB9_GENESIS5_PAD   0x05
 
#define DB9_GENESIS6_PAD   0x06
 
#define DB9_SATURN_PAD   0x07
 
#define DB9_MULTI_0802   0x08
 
#define DB9_MULTI_0802_2   0x09
 
#define DB9_CD32_PAD   0x0A
 
#define DB9_SATURN_DPP   0x0B
 
#define DB9_SATURN_DPP_2   0x0C
 
#define DB9_MAX_PAD   0x0D
 
#define DB9_UP   0x01
 
#define DB9_DOWN   0x02
 
#define DB9_LEFT   0x04
 
#define DB9_RIGHT   0x08
 
#define DB9_FIRE1   0x10
 
#define DB9_FIRE2   0x20
 
#define DB9_FIRE3   0x40
 
#define DB9_FIRE4   0x80
 
#define DB9_NORMAL   0x0a
 
#define DB9_NOSELECT   0x08
 
#define DB9_GENESIS6_DELAY   14
 
#define DB9_REFRESH_TIME   HZ/100
 
#define DB9_MAX_DEVICES   2
 
#define DB9_SATURN_DELAY   300
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("Atari, Amstrad, Commodore, Amiga, Sega, etc. joystick driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param_array_named (dev, db9_cfg[0].args, int,&db9_cfg[0].nargs, 0)
 
 MODULE_PARM_DESC (dev,"Describes first attached device (<parport#>,<type>)")
 
 module_param_array_named (dev2, db9_cfg[1].args, int,&db9_cfg[1].nargs, 0)
 
 MODULE_PARM_DESC (dev2,"Describes second attached device (<parport#>,<type>)")
 
 module_param_array_named (dev3, db9_cfg[2].args, int,&db9_cfg[2].nargs, 0)
 
 MODULE_PARM_DESC (dev3,"Describes third attached device (<parport#>,<type>)")
 
 module_init (db9_init)
 
 module_exit (db9_exit)
 

Macro Definition Documentation

#define DB9_ARG_MODE   1

Definition at line 61 of file db9.c.

#define DB9_ARG_PARPORT   0

Definition at line 60 of file db9.c.

#define DB9_CD32_PAD   0x0A

Definition at line 71 of file db9.c.

#define DB9_DOWN   0x02

Definition at line 77 of file db9.c.

#define DB9_FIRE1   0x10

Definition at line 80 of file db9.c.

#define DB9_FIRE2   0x20

Definition at line 81 of file db9.c.

#define DB9_FIRE3   0x40

Definition at line 82 of file db9.c.

#define DB9_FIRE4   0x80

Definition at line 83 of file db9.c.

#define DB9_GENESIS5_PAD   0x05

Definition at line 66 of file db9.c.

#define DB9_GENESIS6_DELAY   14

Definition at line 88 of file db9.c.

#define DB9_GENESIS6_PAD   0x06

Definition at line 67 of file db9.c.

#define DB9_GENESIS_PAD   0x03

Definition at line 65 of file db9.c.

#define DB9_LEFT   0x04

Definition at line 78 of file db9.c.

#define DB9_MAX_DEVICES   2

Definition at line 91 of file db9.c.

#define DB9_MAX_PAD   0x0D

Definition at line 74 of file db9.c.

#define DB9_MAX_PORTS   3

Definition at line 50 of file db9.c.

#define DB9_MULTI2_STICK   0x02

Definition at line 64 of file db9.c.

#define DB9_MULTI_0802   0x08

Definition at line 69 of file db9.c.

#define DB9_MULTI_0802_2   0x09

Definition at line 70 of file db9.c.

#define DB9_MULTI_STICK   0x01

Definition at line 63 of file db9.c.

#define DB9_NORMAL   0x0a

Definition at line 85 of file db9.c.

#define DB9_NOSELECT   0x08

Definition at line 86 of file db9.c.

#define DB9_REFRESH_TIME   HZ/100

Definition at line 89 of file db9.c.

#define DB9_RIGHT   0x08

Definition at line 79 of file db9.c.

#define DB9_SATURN_DELAY   300

Definition at line 139 of file db9.c.

#define DB9_SATURN_DPP   0x0B

Definition at line 72 of file db9.c.

#define DB9_SATURN_DPP_2   0x0C

Definition at line 73 of file db9.c.

#define DB9_SATURN_PAD   0x07

Definition at line 68 of file db9.c.

#define DB9_UP   0x01

Definition at line 76 of file db9.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( Atari,
Amstrad  ,
Commodore  ,
Amiga  ,
Sega  ,
etc.joystick driver  
)
module_exit ( db9_exit  )
module_init ( db9_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array_named ( dev  ,
db9_cfg.  args[0],
int  ,
&db9_cfg.  nargs[0],
 
)
module_param_array_named ( dev2  ,
db9_cfg.  args[1],
int  ,
&db9_cfg.  nargs[1],
 
)
module_param_array_named ( dev3  ,
db9_cfg.  args[2],
int  ,
&db9_cfg.  nargs[2],
 
)
MODULE_PARM_DESC ( dev  ,
"Describes first attached device (<parport#>,<type>)"   
)
MODULE_PARM_DESC ( dev2  ,
"Describes second attached device (<parport#>,<type>)"   
)
MODULE_PARM_DESC ( dev3  ,
"Describes third attached device (<parport#>,<type>)"   
)