linux/drivers/input/joystick/guillemot.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright (c) 2001 Vojtech Pavlik
 */

/*
 * Guillemot Digital Interface Protocol driver for Linux
 */

#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/gameport.h>
#include <linux/input.h>
#include <linux/jiffies.h>

#define DRIVER_DESC

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

#define GUILLEMOT_MAX_START
#define GUILLEMOT_MAX_STROBE
#define GUILLEMOT_MAX_LENGTH

static short guillemot_abs_pad[] =;

static short guillemot_btn_pad[] =;

static struct {} guillemot_hat_to_axis[16] =;

struct guillemot_type {};

struct guillemot {};

static struct guillemot_type guillemot_type[] =;

/*
 * guillemot_read_packet() reads Guillemot joystick data.
 */

static int guillemot_read_packet(struct gameport *gameport, u8 *data)
{}

/*
 * guillemot_poll() reads and analyzes Guillemot joystick data.
 */

static void guillemot_poll(struct gameport *gameport)
{}

/*
 * guillemot_open() is a callback from the input open routine.
 */

static int guillemot_open(struct input_dev *dev)
{}

/*
 * guillemot_close() is a callback from the input close routine.
 */

static void guillemot_close(struct input_dev *dev)
{}

/*
 * guillemot_connect() probes for Guillemot joysticks.
 */

static int guillemot_connect(struct gameport *gameport, struct gameport_driver *drv)
{}

static void guillemot_disconnect(struct gameport *gameport)
{}

static struct gameport_driver guillemot_drv =;

module_gameport_driver();