Linux Kernel
3.7.1
|
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.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 | sw |
Macros | |
#define | DRIVER_DESC "Microsoft SideWinder joystick family driver" |
#define | SW_START 600 /* The time we wait for the first bit [600 us] */ |
#define | SW_STROBE 60 /* Max time per bit [60 us] */ |
#define | SW_TIMEOUT 6 /* Wait for everything to settle [6 ms] */ |
#define | SW_KICK 45 /* Wait after A0 fall till kick [45 us] */ |
#define | SW_END 8 /* Number of bits before end of packet to kick */ |
#define | SW_FAIL 16 /* Number of packet read errors to fail and reinitialize */ |
#define | SW_BAD 2 /* Number of packet read errors to switch off 3d Pro optimization */ |
#define | SW_OK 64 /* Number of packet read successes to switch optimization back on */ |
#define | SW_LENGTH 512 /* Max number of bits in a packet */ |
#define | dbg(format, arg...) do {} while (0) |
#define | SW_ID_3DP 0 |
#define | SW_ID_GP 1 |
#define | SW_ID_PP 2 |
#define | SW_ID_FFP 3 |
#define | SW_ID_FSP 4 |
#define | SW_ID_FFW 5 |
#define | GB(pos, num) sw_get_bits(buf, pos, num, sw->bits) |
Functions | |
MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>") | |
MODULE_DESCRIPTION (DRIVER_DESC) | |
MODULE_LICENSE ("GPL") | |
module_gameport_driver (sw_drv) | |
#define dbg | ( | format, | |
arg... | |||
) | do {} while (0) |
Definition at line 65 of file sidewinder.c.
Definition at line 38 of file sidewinder.c.
Definition at line 216 of file sidewinder.c.
Definition at line 58 of file sidewinder.c.
Definition at line 56 of file sidewinder.c.
Definition at line 57 of file sidewinder.c.
#define SW_ID_3DP 0 |
Definition at line 72 of file sidewinder.c.
#define SW_ID_FFP 3 |
Definition at line 75 of file sidewinder.c.
#define SW_ID_FFW 5 |
Definition at line 77 of file sidewinder.c.
#define SW_ID_FSP 4 |
Definition at line 76 of file sidewinder.c.
#define SW_ID_GP 1 |
Definition at line 73 of file sidewinder.c.
#define SW_ID_PP 2 |
Definition at line 74 of file sidewinder.c.
Definition at line 55 of file sidewinder.c.
Definition at line 60 of file sidewinder.c.
Definition at line 59 of file sidewinder.c.
Definition at line 52 of file sidewinder.c.
Definition at line 53 of file sidewinder.c.
Definition at line 54 of file sidewinder.c.
MODULE_AUTHOR | ( | "Vojtech Pavlik <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
module_gameport_driver | ( | sw_drv | ) |
MODULE_LICENSE | ( | "GPL" | ) |
int x |
Definition at line 111 of file sidewinder.c.
int y |
Definition at line 112 of file sidewinder.c.