#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.
#define dbg |
( |
|
format, |
|
|
|
arg... |
|
) |
| do {} while (0) |
#define DRIVER_DESC "Gravis Grip Multiport driver" |
#define GRIP_INIT_DELAY 2000 /* 2 ms */ |
#define GRIP_MODE_RESET 1 |
#define IO_DONE 0x1000 /* Multiport is done sending packets */ |
#define IO_GOT_PACKET 0x0100 /* Got a packet */ |
#define IO_MODE_FAST 0x0200 /* Used 3 data bits per gameport read */ |
#define IO_RESET 0x8000 /* Force multiport to resend all packets */ |
#define IO_RETRY 0x4000 /* Try again later to get packet */ |
#define IO_SLOT_CHANGE 0x0800 /* Multiport physical slot status changed */ |
#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_DONE 0x02000000 /* multiport done sending */ |
#define PACKET_MP_MORE 0x04000000 /* multiport wants to send more */ |
MODULE_AUTHOR |
( |
"Brian Bonnlander" |
| ) |
|
module_gameport_driver |
( |
grip_drv |
| ) |
|