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

Go to the source code of this file.

Data Structures

struct  adi
 
struct  adi_port
 

Macros

#define DRIVER_DESC   "Logitech ADI joystick family driver"
 
#define ADI_MAX_START   200 /* Trigger to packet timeout [200us] */
 
#define ADI_MAX_STROBE   40 /* Single bit timeout [40us] */
 
#define ADI_INIT_DELAY   10 /* Delay after init packet [10ms] */
 
#define ADI_DATA_DELAY   4 /* Delay after data packet [4ms] */
 
#define ADI_MAX_LENGTH   256
 
#define ADI_MIN_LENGTH   8
 
#define ADI_MIN_LEN_LENGTH   10
 
#define ADI_MIN_ID_LENGTH   66
 
#define ADI_MAX_NAME_LENGTH   64
 
#define ADI_MAX_CNAME_LENGTH   16
 
#define ADI_MAX_PHYS_LENGTH   64
 
#define ADI_FLAG_HAT   0x04
 
#define ADI_FLAG_10BIT   0x08
 
#define ADI_ID_TPD   0x01
 
#define ADI_ID_WGP   0x06
 
#define ADI_ID_WGPE   0x08
 
#define ADI_ID_MAX   0x0a
 

Functions

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

Macro Definition Documentation

#define ADI_DATA_DELAY   4 /* Delay after data packet [4ms] */

Definition at line 52 of file adi.c.

#define ADI_FLAG_10BIT   0x08

Definition at line 63 of file adi.c.

#define ADI_FLAG_HAT   0x04

Definition at line 62 of file adi.c.

#define ADI_ID_MAX   0x0a

Definition at line 68 of file adi.c.

#define ADI_ID_TPD   0x01

Definition at line 65 of file adi.c.

#define ADI_ID_WGP   0x06

Definition at line 66 of file adi.c.

#define ADI_ID_WGPE   0x08

Definition at line 67 of file adi.c.

#define ADI_INIT_DELAY   10 /* Delay after init packet [10ms] */

Definition at line 51 of file adi.c.

#define ADI_MAX_CNAME_LENGTH   16

Definition at line 59 of file adi.c.

#define ADI_MAX_LENGTH   256

Definition at line 54 of file adi.c.

#define ADI_MAX_NAME_LENGTH   64

Definition at line 58 of file adi.c.

#define ADI_MAX_PHYS_LENGTH   64

Definition at line 60 of file adi.c.

#define ADI_MAX_START   200 /* Trigger to packet timeout [200us] */

Definition at line 49 of file adi.c.

#define ADI_MAX_STROBE   40 /* Single bit timeout [40us] */

Definition at line 50 of file adi.c.

#define ADI_MIN_ID_LENGTH   66

Definition at line 57 of file adi.c.

#define ADI_MIN_LEN_LENGTH   10

Definition at line 56 of file adi.c.

#define ADI_MIN_LENGTH   8

Definition at line 55 of file adi.c.

#define DRIVER_DESC   "Logitech ADI joystick family driver"

Definition at line 39 of file adi.c.

Function Documentation

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

Variable Documentation

int x

Definition at line 101 of file adi.c.

int y

Definition at line 102 of file adi.c.