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

Go to the source code of this file.

Data Structures

struct  gf2k
 

Macros

#define DRIVER_DESC   "Genius Flight 2000 joystick driver"
 
#define GF2K_START   400 /* The time we wait for the first bit [400 us] */
 
#define GF2K_STROBE   40 /* The time we wait for the first bit [40 us] */
 
#define GF2K_TIMEOUT   4 /* Wait for everything to settle [4 ms] */
 
#define GF2K_LENGTH   80 /* Max number of triplets in a packet */
 
#define GF2K_ID_G09   1
 
#define GF2K_ID_F30D   2
 
#define GF2K_ID_F30   3
 
#define GF2K_ID_F31D   4
 
#define GF2K_ID_F305   5
 
#define GF2K_ID_F23P   6
 
#define GF2K_ID_F31   7
 
#define GF2K_ID_MAX   7
 
#define GB(p, n, s)   gf2k_get_bits(data, p, n, s)
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 module_gameport_driver (gf2k_drv)
 

Macro Definition Documentation

#define DRIVER_DESC   "Genius Flight 2000 joystick driver"

Definition at line 38 of file gf2k.c.

#define GB (   p,
  n,
  s 
)    gf2k_get_bits(data, p, n, s)

Definition at line 159 of file gf2k.c.

#define GF2K_ID_F23P   6

Definition at line 58 of file gf2k.c.

#define GF2K_ID_F30   3

Definition at line 55 of file gf2k.c.

#define GF2K_ID_F305   5

Definition at line 57 of file gf2k.c.

#define GF2K_ID_F30D   2

Definition at line 54 of file gf2k.c.

#define GF2K_ID_F31   7

Definition at line 59 of file gf2k.c.

#define GF2K_ID_F31D   4

Definition at line 56 of file gf2k.c.

#define GF2K_ID_G09   1

Definition at line 53 of file gf2k.c.

#define GF2K_ID_MAX   7

Definition at line 60 of file gf2k.c.

#define GF2K_LENGTH   80 /* Max number of triplets in a packet */

Definition at line 47 of file gf2k.c.

#define GF2K_START   400 /* The time we wait for the first bit [400 us] */

Definition at line 44 of file gf2k.c.

#define GF2K_STROBE   40 /* The time we wait for the first bit [40 us] */

Definition at line 45 of file gf2k.c.

#define GF2K_TIMEOUT   4 /* Wait for everything to settle [4 ms] */

Definition at line 46 of file gf2k.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_gameport_driver ( gf2k_drv  )
MODULE_LICENSE ( "GPL"  )