Lines Matching defs:gameport
40 #include <linux/gameport.h>
2686 * gameport interface
2691 static void snd_cs46xx_gameport_trigger(struct gameport *gameport)
2693 struct snd_cs46xx *chip = gameport_get_port_data(gameport);
2697 snd_cs46xx_pokeBA0(chip, BA0_JSPT, 0xFF); //outb(gameport->io, 0xFF);
2700 static unsigned char snd_cs46xx_gameport_read(struct gameport *gameport)
2702 struct snd_cs46xx *chip = gameport_get_port_data(gameport);
2706 return snd_cs46xx_peekBA0(chip, BA0_JSPT); //inb(gameport->io);
2709 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
2711 struct snd_cs46xx *chip = gameport_get_port_data(gameport);
2733 static int snd_cs46xx_gameport_open(struct gameport *gameport, int mode)
2748 struct gameport *gp;
2750 chip->gameport = gp = gameport_allocate_port();
2753 "cannot allocate memory for gameport\n");
2777 if (chip->gameport) {
2778 gameport_unregister_port(chip->gameport);
2779 chip->gameport = NULL;