// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 1996-2001 Vojtech Pavlik */ /* * This is just a very simple driver that can dump the data * out of the joystick port into the syslog ... */ #include <linux/module.h> #include <linux/gameport.h> #include <linux/kernel.h> #include <linux/delay.h> #include <linux/slab.h> #define DRIVER_DESC … MODULE_AUTHOR(…) …; MODULE_DESCRIPTION(…); MODULE_LICENSE(…) …; #define BUF_SIZE … struct joydump { … }; static int joydump_connect(struct gameport *gameport, struct gameport_driver *drv) { … } static void joydump_disconnect(struct gameport *gameport) { … } static struct gameport_driver joydump_drv = …; module_gameport_driver(…) …;