linux/sound/pci/au88x0/au88x0_game.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Manuel Jander.
 *
 *  Based on the work of:
 *  Vojtech Pavlik
 *  Raymond Ingles
 *
 * Should you need to contact me, the author, you can do so either by
 * e-mail - mail your message to <[email protected]>, or by paper mail:
 * Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic
 *
 * Based 90% on Vojtech Pavlik pcigame driver.
 * Merged and modified by Manuel Jander, for the OpenVortex
 * driver. (email: [email protected]).
 */

#include <linux/time.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <sound/core.h>
#include "au88x0.h"
#include <linux/gameport.h>
#include <linux/export.h>

#if IS_REACHABLE(CONFIG_GAMEPORT)

#define VORTEX_GAME_DWAIT

static unsigned char vortex_game_read(struct gameport *gameport)
{}

static void vortex_game_trigger(struct gameport *gameport)
{}

static int
vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons)
{}

static int vortex_game_open(struct gameport *gameport, int mode)
{}

static int vortex_gameport_register(vortex_t *vortex)
{}

static void vortex_gameport_unregister(vortex_t * vortex)
{}

#else
static inline int vortex_gameport_register(vortex_t * vortex) { return -ENOSYS; }
static inline void vortex_gameport_unregister(vortex_t * vortex) { }
#endif