Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lightning.c File Reference
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/gameport.h>

Go to the source code of this file.

Data Structures

struct  l4
 

Macros

#define L4_PORT   0x201
 
#define L4_SELECT_ANALOG   0xa4
 
#define L4_SELECT_DIGITAL   0xa5
 
#define L4_SELECT_SECONDARY   0xa6
 
#define L4_CMD_ID   0x80
 
#define L4_CMD_GETCAL   0x92
 
#define L4_CMD_SETCAL   0x93
 
#define L4_ID   0x04
 
#define L4_BUSY   0x01
 
#define L4_TIMEOUT   80 /* 80 us */
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("PDPI Lightning 4 gamecard driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (l4_init)
 
 module_exit (l4_exit)
 

Macro Definition Documentation

#define L4_BUSY   0x01

Definition at line 46 of file lightning.c.

#define L4_CMD_GETCAL   0x92

Definition at line 43 of file lightning.c.

#define L4_CMD_ID   0x80

Definition at line 42 of file lightning.c.

#define L4_CMD_SETCAL   0x93

Definition at line 44 of file lightning.c.

#define L4_ID   0x04

Definition at line 45 of file lightning.c.

#define L4_PORT   0x201

Definition at line 38 of file lightning.c.

#define L4_SELECT_ANALOG   0xa4

Definition at line 39 of file lightning.c.

#define L4_SELECT_DIGITAL   0xa5

Definition at line 40 of file lightning.c.

#define L4_SELECT_SECONDARY   0xa6

Definition at line 41 of file lightning.c.

#define L4_TIMEOUT   80 /* 80 us */

Definition at line 47 of file lightning.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( "PDPI Lightning 4 gamecard driver )
module_exit ( l4_exit  )
module_init ( l4_init  )
MODULE_LICENSE ( "GPL"  )