Lines Matching defs:gameport
54 #include <linux/gameport.h>
2513 * gameport interface
2518 static void snd_cs46xx_gameport_trigger(struct gameport *gameport)
2520 struct snd_cs46xx *chip = gameport_get_port_data(gameport);
2524 snd_cs46xx_pokeBA0(chip, BA0_JSPT, 0xFF); //outb(gameport->io, 0xFF);
2527 static unsigned char snd_cs46xx_gameport_read(struct gameport *gameport)
2529 struct snd_cs46xx *chip = gameport_get_port_data(gameport);
2533 return snd_cs46xx_peekBA0(chip, BA0_JSPT); //inb(gameport->io);
2536 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
2538 struct snd_cs46xx *chip = gameport_get_port_data(gameport);
2560 static int snd_cs46xx_gameport_open(struct gameport *gameport, int mode)
2575 struct gameport *gp;
2577 chip->gameport = gp = gameport_allocate_port();
2579 printk(KERN_ERR "cs46xx: cannot allocate memory for gameport\n");
2603 if (chip->gameport) {
2604 gameport_unregister_port(chip->gameport);
2605 chip->gameport = NULL;