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

Go to the source code of this file.

Data Structures

struct  grip_port
 
struct  grip_mp
 

Macros

#define DRIVER_DESC   "Gravis Grip Multiport driver"
 
#define dbg(format, arg...)   do {} while (0)
 
#define GRIP_MAX_PORTS   4
 
#define PACKET_FULL   0x80000000 /* packet is full */
 
#define PACKET_IO_FAST   0x40000000 /* 3 bits per gameport read */
 
#define PACKET_IO_SLOW   0x20000000 /* 1 bit per gameport read */
 
#define PACKET_MP_MORE   0x04000000 /* multiport wants to send more */
 
#define PACKET_MP_DONE   0x02000000 /* multiport done sending */
 
#define IO_GOT_PACKET   0x0100 /* Got a packet */
 
#define IO_MODE_FAST   0x0200 /* Used 3 data bits per gameport read */
 
#define IO_SLOT_CHANGE   0x0800 /* Multiport physical slot status changed */
 
#define IO_DONE   0x1000 /* Multiport is done sending packets */
 
#define IO_RETRY   0x4000 /* Try again later to get packet */
 
#define IO_RESET   0x8000 /* Force multiport to resend all packets */
 
#define GRIP_INIT_DELAY   2000 /* 2 ms */
 
#define GRIP_MODE_NONE   0
 
#define GRIP_MODE_RESET   1
 
#define GRIP_MODE_GP   2
 
#define GRIP_MODE_C64   3
 

Functions

 MODULE_AUTHOR ("Brian Bonnlander")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 module_gameport_driver (grip_drv)
 

Macro Definition Documentation

#define dbg (   format,
  arg... 
)    do {} while (0)

Definition at line 31 of file grip_mp.c.

#define DRIVER_DESC   "Gravis Grip Multiport driver"

Definition at line 22 of file grip_mp.c.

#define GRIP_INIT_DELAY   2000 /* 2 ms */

Definition at line 85 of file grip_mp.c.

#define GRIP_MAX_PORTS   4

Definition at line 34 of file grip_mp.c.

#define GRIP_MODE_C64   3

Definition at line 90 of file grip_mp.c.

#define GRIP_MODE_GP   2

Definition at line 89 of file grip_mp.c.

#define GRIP_MODE_NONE   0

Definition at line 87 of file grip_mp.c.

#define GRIP_MODE_RESET   1

Definition at line 88 of file grip_mp.c.

#define IO_DONE   0x1000 /* Multiport is done sending packets */

Definition at line 75 of file grip_mp.c.

#define IO_GOT_PACKET   0x0100 /* Got a packet */

Definition at line 72 of file grip_mp.c.

#define IO_MODE_FAST   0x0200 /* Used 3 data bits per gameport read */

Definition at line 73 of file grip_mp.c.

#define IO_RESET   0x8000 /* Force multiport to resend all packets */

Definition at line 77 of file grip_mp.c.

#define IO_RETRY   0x4000 /* Try again later to get packet */

Definition at line 76 of file grip_mp.c.

#define IO_SLOT_CHANGE   0x0800 /* Multiport physical slot status changed */

Definition at line 74 of file grip_mp.c.

#define PACKET_FULL   0x80000000 /* packet is full */

Definition at line 62 of file grip_mp.c.

#define PACKET_IO_FAST   0x40000000 /* 3 bits per gameport read */

Definition at line 63 of file grip_mp.c.

#define PACKET_IO_SLOW   0x20000000 /* 1 bit per gameport read */

Definition at line 64 of file grip_mp.c.

#define PACKET_MP_DONE   0x02000000 /* multiport done sending */

Definition at line 66 of file grip_mp.c.

#define PACKET_MP_MORE   0x04000000 /* multiport wants to send more */

Definition at line 65 of file grip_mp.c.

Function Documentation

MODULE_AUTHOR ( "Brian Bonnlander"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_gameport_driver ( grip_drv  )
MODULE_LICENSE ( "GPL"  )