Go to the documentation of this file.
28 #include <linux/kernel.h>
29 #include <linux/slab.h>
30 #include <linux/input.h>
31 #include <linux/module.h>
35 #include <linux/serio.h>
46 #define IFORCE_MAX_LENGTH 16
52 #define IFORCE_EFFECTS_MAX 32
57 #define FF_MOD1_IS_USED 0
58 #define FF_MOD2_IS_USED 1
59 #define FF_CORE_IS_USED 2
60 #define FF_CORE_IS_PLAYED 3
61 #define FF_CORE_SHOULD_PLAY 4
62 #define FF_CORE_UPDATE 5
63 #define FF_MODCORE_CNT 6
72 #define FF_CMD_EFFECT 0x010e
73 #define FF_CMD_ENVELOPE 0x0208
74 #define FF_CMD_MAGNITUDE 0x0303
75 #define FF_CMD_PERIOD 0x0407
76 #define FF_CMD_CONDITION 0x050a
78 #define FF_CMD_AUTOCENTER 0x4002
79 #define FF_CMD_PLAY 0x4103
80 #define FF_CMD_ENABLE 0x4201
81 #define FF_CMD_GAIN 0x4301
83 #define FF_CMD_QUERY 0xff01
87 #define XMIT_INC(var, n) (var)+=n; (var)&= XMIT_SIZE -1
89 #define IFORCE_XMIT_RUNNING 0
90 #define IFORCE_XMIT_AGAIN 1
111 #ifdef CONFIG_JOYSTICK_IFORCE_232
116 #ifdef CONFIG_JOYSTICK_IFORCE_USB
117 struct usb_device *usbdev;
136 #define HI(a) ((unsigned char)((a) >> 8))
137 #define LO(a) ((unsigned char)((a) & 0xff))
142 #define HIFIX80(a) ((unsigned char)(((a)<0? (a)+255 : (a))>>8))
145 #define TIME_SCALE(a) (a)