/drivers/input/gameport/ |
D | gameport.c | 43 static void gameport_add_port(struct gameport *gameport); 45 static void gameport_reconnect_port(struct gameport *gameport); 46 static void gameport_disconnect_port(struct gameport *gameport); 77 static int gameport_measure_speed(struct gameport *gameport) in gameport_measure_speed() argument 84 if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW)) in gameport_measure_speed() 92 for (t = 0; t < 50; t++) gameport_read(gameport); in gameport_measure_speed() 100 gameport_close(gameport); in gameport_measure_speed() 108 if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW)) in gameport_measure_speed() 116 for (t = 0; t < 50; t++) gameport_read(gameport); in gameport_measure_speed() 123 gameport_close(gameport); in gameport_measure_speed() [all …]
|
D | fm801-gp.c | 40 struct gameport *gameport; member 45 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument 49 w = inw(gameport->io + 2); in fm801_gp_cooked_read() 52 w = inw(gameport->io + 4); in fm801_gp_cooked_read() 54 w = inw(gameport->io + 6); in fm801_gp_cooked_read() 57 w = inw(gameport->io + 8); in fm801_gp_cooked_read() 59 outw(0xff, gameport->io); /* reset */ in fm801_gp_cooked_read() 65 static int fm801_gp_open(struct gameport *gameport, int mode) in fm801_gp_open() argument 84 struct gameport *port; in fm801_gp_probe() 108 gp->gameport = port; in fm801_gp_probe() [all …]
|
D | lightning.c | 54 struct gameport *gameport; member 76 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument 78 struct l4 *l4 = gameport->port_data; in l4_cooked_read() 109 static int l4_open(struct gameport *gameport, int mode) in l4_open() argument 111 struct l4 *l4 = gameport->port_data; in l4_open() 196 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) in l4_calibrate() argument 200 struct l4 *l4 = gameport->port_data; in l4_calibrate() 222 struct gameport *port; in l4_create_ports() 230 if (!(l4->gameport = port = gameport_allocate_port())) { in l4_create_ports() 233 gameport_free_port(l4->gameport); in l4_create_ports() [all …]
|
D | Kconfig | 7 Gameport support is for the standard 15-pin PC gameport. If you 8 have a joystick, gamepad, gameport card, a soundcard with a gameport 9 or anything else that uses the gameport, say Y or M here and also to 13 S3 SonicVibes, Trident 4DWave, SiS7018, and ALi 5451 gameport 20 module will be called gameport. 25 tristate "Classic ISA and PnP gameport support" 27 Say Y here if you have an ISA or PnP gameport. 43 tristate "SB Live and Audigy gameport support" 47 Audigy card and want to use its gameport. 53 tristate "ForteMedia FM801 gameport support" [all …]
|
D | ns558.c | 52 struct gameport *gameport; member 69 struct gameport *port; in ns558_isa_probe() 154 ns558->gameport = port; in ns558_isa_probe() 201 struct gameport *port; in ns558_pnp_probe() 226 ns558->gameport = port; in ns558_pnp_probe() 277 gameport_unregister_port(ns558->gameport); in ns558_exit()
|
D | emu10k1-gp.c | 44 struct gameport *gameport; member 63 struct gameport *port; in emu_probe() 82 emu->gameport = port; in emu_probe() 114 gameport_unregister_port(emu->gameport); in emu_remove()
|
D | Makefile | 7 obj-$(CONFIG_GAMEPORT) += gameport.o
|
/drivers/input/joystick/ |
D | a3d.c | 56 struct gameport *gameport; member 57 struct gameport *adc; 72 static int a3d_read_packet(struct gameport *gameport, int length, char *data) in a3d_read_packet() argument 80 t = gameport_time(gameport, A3D_MAX_START); in a3d_read_packet() 81 s = gameport_time(gameport, A3D_MAX_STROBE); in a3d_read_packet() 84 gameport_trigger(gameport); in a3d_read_packet() 85 v = gameport_read(gameport); in a3d_read_packet() 89 u = v; v = gameport_read(gameport); in a3d_read_packet() 179 static void a3d_poll(struct gameport *gameport) in a3d_poll() argument 181 struct a3d *a3d = gameport_get_drvdata(gameport); in a3d_poll() [all …]
|
D | grip_mp.c | 52 struct gameport *gameport; member 134 static inline int poll_until(u8 onbits, u8 offbits, int u_sec, struct gameport* gp, u8 *data) in poll_until() 164 static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) in mp_io() argument 176 raw_data = gameport_read(gameport); in mp_io() 181 raw_data = gameport_read(gameport); in mp_io() 186 raw_data = gameport_read(gameport); in mp_io() 191 gameport_trigger(gameport); in mp_io() 193 if (!poll_until(0x10, 0, 308, gameport, &raw_data)) in mp_io() 217 if (!poll_until(0, 0x10, 77, gameport, &raw_data)) in mp_io() 225 if (!poll_until(0x10, 0, 77, gameport, &raw_data)) in mp_io() [all …]
|
D | gf2k.c | 82 struct gameport *gameport; member 95 static int gf2k_read_packet(struct gameport *gameport, int length, char *data) in gf2k_read_packet() argument 102 t = gameport_time(gameport, GF2K_START); in gf2k_read_packet() 103 p = gameport_time(gameport, GF2K_STROBE); in gf2k_read_packet() 109 gameport_trigger(gameport); in gf2k_read_packet() 110 v = gameport_read(gameport); in gf2k_read_packet() 114 v = gameport_read(gameport); in gf2k_read_packet() 131 static void gf2k_trigger_seq(struct gameport *gameport, short *seq) in gf2k_trigger_seq() argument 141 gameport_trigger(gameport); in gf2k_trigger_seq() 142 t = gameport_time(gameport, GF2K_TIMEOUT * 1000); in gf2k_trigger_seq() [all …]
|
D | guillemot.c | 68 struct gameport *gameport; member 85 static int guillemot_read_packet(struct gameport *gameport, u8 *data) in guillemot_read_packet() argument 96 t = gameport_time(gameport, GUILLEMOT_MAX_START); in guillemot_read_packet() 97 s = gameport_time(gameport, GUILLEMOT_MAX_STROBE); in guillemot_read_packet() 100 gameport_trigger(gameport); in guillemot_read_packet() 101 v = gameport_read(gameport); in guillemot_read_packet() 105 u = v; v = gameport_read(gameport); in guillemot_read_packet() 122 static void guillemot_poll(struct gameport *gameport) in guillemot_poll() argument 124 struct guillemot *guillemot = gameport_get_drvdata(gameport); in guillemot_poll() 131 if (guillemot_read_packet(guillemot->gameport, data) != GUILLEMOT_MAX_LENGTH * 8 || in guillemot_poll() [all …]
|
D | interact.c | 55 struct gameport *gameport; member 92 static int interact_read_packet(struct gameport *gameport, int length, u32 *data) in interact_read_packet() argument 101 t = gameport_time(gameport, INTERACT_MAX_START); in interact_read_packet() 102 s = gameport_time(gameport, INTERACT_MAX_STROBE); in interact_read_packet() 105 gameport_trigger(gameport); in interact_read_packet() 106 v = gameport_read(gameport); in interact_read_packet() 110 u = v; v = gameport_read(gameport); in interact_read_packet() 129 static void interact_poll(struct gameport *gameport) in interact_poll() argument 131 struct interact *interact = gameport_get_drvdata(gameport); in interact_poll() 138 if (interact_read_packet(interact->gameport, interact->length, data) < interact->length) { in interact_poll() [all …]
|
D | cobra.c | 49 struct gameport *gameport; member 57 static unsigned char cobra_read_packet(struct gameport *gameport, unsigned int *data) in cobra_read_packet() argument 65 int strobe = gameport_time(gameport, COBRA_MAX_STROBE); in cobra_read_packet() 74 u = gameport_read(gameport); in cobra_read_packet() 78 v = gameport_read(gameport); in cobra_read_packet() 111 static void cobra_poll(struct gameport *gameport) in cobra_poll() argument 113 struct cobra *cobra = gameport_get_drvdata(gameport); in cobra_poll() 120 if ((r = cobra_read_packet(gameport, data)) != cobra->exists) { in cobra_poll() 145 gameport_start_polling(cobra->gameport); in cobra_open() 153 gameport_stop_polling(cobra->gameport); in cobra_close() [all …]
|
D | sidewinder.c | 116 struct gameport *gameport; member 136 static int sw_read_packet(struct gameport *gameport, unsigned char *buf, int length, int id) in sw_read_packet() argument 143 …timeout = id ? gameport_time(gameport, SW_TIMEOUT * 1000) : 0; /* Set up global timeout for ID pac… in sw_read_packet() 144 kick = id ? gameport_time(gameport, SW_KICK) : 0; /* Set up kick timeout for ID packet */ in sw_read_packet() 145 start = gameport_time(gameport, SW_START); in sw_read_packet() 146 strobe = gameport_time(gameport, SW_STROBE); in sw_read_packet() 153 gameport_trigger(gameport); /* Trigger */ in sw_read_packet() 154 v = gameport_read(gameport); in sw_read_packet() 159 v = gameport_read(gameport); in sw_read_packet() 172 v = gameport_read(gameport); in sw_read_packet() [all …]
|
D | grip.c | 56 struct gameport *gameport; member 85 static int grip_gpp_read_packet(struct gameport *gameport, int shift, unsigned int *data) in grip_gpp_read_packet() argument 92 int strobe = gameport_time(gameport, GRIP_STROBE_GPP); in grip_gpp_read_packet() 100 v = gameport_read(gameport) >> shift; in grip_gpp_read_packet() 104 u = v; v = (gameport_read(gameport) >> shift) & 3; in grip_gpp_read_packet() 125 static int grip_xt_read_packet(struct gameport *gameport, int shift, unsigned int *data) in grip_xt_read_packet() argument 133 int strobe = gameport_time(gameport, GRIP_STROBE_XT); in grip_xt_read_packet() 141 v = w = (gameport_read(gameport) >> shift) & 3; in grip_xt_read_packet() 145 u = (gameport_read(gameport) >> shift) & 3; in grip_xt_read_packet() 183 static void grip_poll(struct gameport *gameport) in grip_poll() argument [all …]
|
D | analog.c | 117 struct gameport *gameport; member 232 struct gameport *gameport = port->gameport; in analog_cooked_read() local 242 gameport_trigger(gameport); in analog_cooked_read() 255 this = gameport_read(gameport) & port->mask; in analog_cooked_read() 283 int strobe = gameport_time(port->gameport, ANALOG_SAITEK_TIME); in analog_button_read() 285 u = gameport_read(port->gameport); in analog_button_read() 299 gameport_trigger(port->gameport); in analog_button_read() 300 while (((u = gameport_read(port->gameport)) & port->mask) && t) t--; in analog_button_read() 311 static void analog_poll(struct gameport *gameport) in analog_poll() argument 313 struct analog_port *port = gameport_get_drvdata(gameport); in analog_poll() [all …]
|
D | tmdc.c | 125 struct gameport *gameport; member 147 static int tmdc_read_packet(struct gameport *gameport, unsigned char data[2][TMDC_MAX_LENGTH]) in tmdc_read_packet() argument 153 p = gameport_time(gameport, TMDC_MAX_STROBE); in tmdc_read_packet() 156 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet() 161 gameport_trigger(gameport); in tmdc_read_packet() 163 w = gameport_read(gameport) >> 4; in tmdc_read_packet() 167 w = gameport_read(gameport) >> 4; in tmdc_read_packet() 240 static void tmdc_poll(struct gameport *gameport) in tmdc_poll() argument 243 struct tmdc *tmdc = gameport_get_drvdata(gameport); in tmdc_poll() 249 if ((r = tmdc_read_packet(tmdc->gameport, data)) != tmdc->exists) in tmdc_poll() [all …]
|
D | joydump.c | 50 static int joydump_connect(struct gameport *gameport, struct gameport_driver *drv) in joydump_connect() argument 60 printk(KERN_INFO "joydump: | Dumping: %30s |\n", gameport->phys); in joydump_connect() 61 printk(KERN_INFO "joydump: | Speed: %28d kHz |\n", gameport->speed); in joydump_connect() 63 if (gameport_open(gameport, drv, GAMEPORT_MODE_RAW)) { in joydump_connect() 67 if (gameport_open(gameport, drv, GAMEPORT_MODE_COOKED)) { in joydump_connect() 74 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect() 82 timeout = gameport_time(gameport, 10000); /* 10 ms */ in joydump_connect() 95 u = gameport_read(gameport); in joydump_connect() 101 gameport_trigger(gameport); in joydump_connect() 105 dump->data = gameport_read(gameport); in joydump_connect() [all …]
|
D | adi.c | 129 struct gameport *gameport; member 142 struct gameport *gameport = port->gameport; in adi_read_packet() local 149 t[i] = gameport_time(gameport, ADI_MAX_START); in adi_read_packet() 155 gameport_trigger(gameport); in adi_read_packet() 156 v = z = gameport_read(gameport); in adi_read_packet() 160 w = u ^ (v = x = gameport_read(gameport)); in adi_read_packet() 166 t[i] = gameport_time(gameport, ADI_MAX_STROBE); in adi_read_packet() 279 static void adi_poll(struct gameport *gameport) in adi_poll() argument 281 struct adi_port *port = gameport_get_drvdata(gameport); in adi_poll() 295 gameport_start_polling(port->gameport); in adi_open() [all …]
|
D | Kconfig | 22 gameport. In addition to the usual PC analog joystick, this driver 39 A3D protocol over the PC gameport. 49 protocol over the PC gameport. 78 over the PC gameport. 88 that connects to the gameport and you connect gamepads to it. 98 protocol over the PC gameport. 107 Say Y here if you have an InterAct gameport or joystick 108 communicating digitally over the gameport. 118 Overdrive protocol over PC gameport. 128 DirectConnect (BSP) protocol over the PC gameport.
|
/drivers/ |
D | Makefile | 78 obj-$(CONFIG_GAMEPORT) += input/gameport/
|
/drivers/input/ |
D | Kconfig | 197 source "drivers/input/gameport/Kconfig"
|