Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tmdc.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/gameport.h>
#include <linux/input.h>
#include <linux/jiffies.h>

Go to the source code of this file.

Data Structures

struct  tmdc_model
 
struct  tmdc_port
 
struct  tmdc
 

Macros

#define DRIVER_DESC   "ThrustMaster DirectConnect joystick driver"
 
#define TMDC_MAX_START   600 /* 600 us */
 
#define TMDC_MAX_STROBE   60 /* 60 us */
 
#define TMDC_MAX_LENGTH   13
 
#define TMDC_MODE_M3DI   1
 
#define TMDC_MODE_3DRP   3
 
#define TMDC_MODE_AT   4
 
#define TMDC_MODE_FM   8
 
#define TMDC_MODE_FGP   163
 
#define TMDC_BYTE_ID   10
 
#define TMDC_BYTE_REV   11
 
#define TMDC_BYTE_DEF   12
 
#define TMDC_ABS   7
 
#define TMDC_ABS_HAT   4
 
#define TMDC_BTN   16
 

Functions

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

Macro Definition Documentation

#define DRIVER_DESC   "ThrustMaster DirectConnect joystick driver"

Definition at line 41 of file tmdc.c.

#define TMDC_ABS   7

Definition at line 61 of file tmdc.c.

#define TMDC_ABS_HAT   4

Definition at line 62 of file tmdc.c.

#define TMDC_BTN   16

Definition at line 63 of file tmdc.c.

#define TMDC_BYTE_DEF   12

Definition at line 59 of file tmdc.c.

#define TMDC_BYTE_ID   10

Definition at line 57 of file tmdc.c.

#define TMDC_BYTE_REV   11

Definition at line 58 of file tmdc.c.

#define TMDC_MAX_LENGTH   13

Definition at line 49 of file tmdc.c.

#define TMDC_MAX_START   600 /* 600 us */

Definition at line 47 of file tmdc.c.

#define TMDC_MAX_STROBE   60 /* 60 us */

Definition at line 48 of file tmdc.c.

#define TMDC_MODE_3DRP   3

Definition at line 52 of file tmdc.c.

#define TMDC_MODE_AT   4

Definition at line 53 of file tmdc.c.

#define TMDC_MODE_FGP   163

Definition at line 55 of file tmdc.c.

#define TMDC_MODE_FM   8

Definition at line 54 of file tmdc.c.

#define TMDC_MODE_M3DI   1

Definition at line 51 of file tmdc.c.

Function Documentation

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

Variable Documentation

int x

Definition at line 89 of file tmdc.c.

int y

Definition at line 90 of file tmdc.c.