#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[] = …;
static int guillemot_read_packet(struct gameport *gameport, u8 *data)
{ … }
static void guillemot_poll(struct gameport *gameport)
{ … }
static int guillemot_open(struct input_dev *dev)
{ … }
static void guillemot_close(struct input_dev *dev)
{ … }
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(…) …;