#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/bitops.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/gameport.h>
#include <linux/jiffies.h>
#include <linux/timex.h>
Go to the source code of this file.
#define ANALOG_ANY_CHF 0x10700 |
#define ANALOG_AXES_STD 0x0000f |
#define ANALOG_AXIS_TIME 2 /* 2 * refresh */ |
#define ANALOG_BTN_TL 0x01000 |
#define ANALOG_BTN_TL2 0x04000 |
#define ANALOG_BTN_TR 0x02000 |
#define ANALOG_BTN_TR2 0x08000 |
#define ANALOG_BTNS_CHF 0x00100 |
#define ANALOG_BTNS_GAMEPAD 0x0f000 |
#define ANALOG_BTNS_STD 0x000f0 |
#define ANALOG_BTNS_TLR 0x03000 |
#define ANALOG_BTNS_TLR2 0x0c000 |
#define ANALOG_EXTENSIONS 0x7ff00 |
#define ANALOG_FUZZ_BITS 2 /* 2 bit more */ |
#define ANALOG_FUZZ_MAGIC 36 /* 36 u*ms/loop */ |
#define ANALOG_GAMEPAD 0x80000 |
#define ANALOG_HAT1_CHF 0x00200 |
#define ANALOG_HAT2_CHF 0x00400 |
#define ANALOG_HAT_FCS 0x00800 |
#define ANALOG_HATS_ALL 0x00e00 |
#define ANALOG_HBTN_CHF 0x10000 |
#define ANALOG_INIT_RETRIES 8 /* 8 times */ |
#define ANALOG_LOOP_TIME 2000 /* 2 * loop */ |
#define ANALOG_MAX_NAME_LENGTH 128 |
#define ANALOG_MAX_PHYS_LENGTH 32 |
#define ANALOG_MAX_TIME 3 /* 3 ms */ |
#define ANALOG_RUDDER 0x00004 |
#define ANALOG_SAITEK 0x20000 |
#define ANALOG_SAITEK_DELAY 200 /* 200 us */ |
#define ANALOG_SAITEK_TIME 2000 /* 2000 us */ |
#define ANALOG_THROTTLE 0x00008 |
#define DELTA |
( |
|
x, |
|
|
|
y |
|
) |
| ((y)-(x)) |
#define DRIVER_DESC "Analog joystick and gamepad driver" |
#define GET_TIME |
( |
|
x | ) |
do { x = analog_faketime++; } while(0) |
#define TIME_NAME "Unreliable" |
module_exit |
( |
analog_exit |
| ) |
|
module_init |
( |
analog_init |
| ) |
|
module_param_array_named |
( |
map |
, |
|
|
js |
, |
|
|
charp |
, |
|
|
& |
js_nargs, |
|
|
0 |
|
|
) |
| |