Re: 2.1.118 Joystick problems

Vojtech Pavlik (vojtech@twilight.ucw.cz)
Thu, 27 Aug 1998 20:47:28 +0200


On Thu, Aug 27, 1998 at 10:49:03AM -0500, Robert Hamilton wrote:

> Oh boy I get to post somethng useful . Looks like the new flush didn't
> get added - see if this helps
>
> --- linux/drivers/char/joystick.c.orig Thu Aug 27 10:32:16 1998
> +++ linux/drivers/char/joystick.c Thu Aug 27 10:34:03 1998
> @@ -771,6 +771,7 @@
> js_ioctl, /* js_ioctl */
> NULL, /* js_mmap */
> js_open, /* js_open */
> + NULL, /* js_flush */
> js_release, /* js_release */
> NULL /* js_sync */
> };

Okay, this already is in joystick-1.2.10, and I'm also releasing
joystick-1.0.11 with this little change. Patch from 1.0.9 to
1.0.11 is included. Please apply this to the kernel.

Vojtech

---------------------------------------

diff -urN linux-2.1.118-joystick-1.0.9/Documentation/joystick.txt linux-2.1.118-joystick-1.0.11/Documentation/joystick.txt
--- linux-2.1.118-joystick-1.0.9/Documentation/joystick.txt Sat May 9 08:07:44 1998
+++ linux-2.1.118-joystick-1.0.11/Documentation/joystick.txt Thu Aug 27 20:36:02 1998
@@ -1,5 +1,5 @@
- PC Joystick driver v1.0.9
- (c) 1997 Vojtech Pavlik <vojtech@atrey.karlin.mff.cuni.cz>
+ PC Joystick driver v1.0.11
+ (c) 1997 Vojtech Pavlik <vojtech@atrey.karlin.mff.cuni.cz>
----------------------------------------------------------------------------

1. Intro
@@ -93,7 +93,7 @@
0.8 Hal Maney <maney@norden.com>
0.8 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
0.9 Alan Cox <alan@lxorguk.ukuu.org.uk>
- 0.9.0-1.0.9 Vojtech Pavlik <vojtech@atrey.karlin.mff.cuni.cz>
+ 0.9.0-1.0.11 Vojtech Pavlik <vojtech@atrey.karlin.mff.cuni.cz>

6. Change Log
~~~~~~~~~~~~~
@@ -197,17 +197,9 @@
Removed various trailing spaces
Version 1.0.9 Fix for compatibility mode - don't do correction
Fix max number of module parameters
+Version 1.0.10 A couple of very minor (mainly doc) fixes
+Version 1.0.11 Added js_flush NULL pointer for kernel 2.1.118

7. To do
~~~~~~~~
- Sooner or later I'll get to these:
-
- Make an optional read routine using Pentium timers for better precision (*)
- Support for hats and more buttons ala CH Flightstick (*)
- Support for hats ala TM FCS (*)
- Include support for MS SideWinder digital mode (*)
- Create patches for most common programs using joystick
- Support for cards with HW speed compensation
- Support for more than one joystick port
-
- (*) - Already in the development 1.1 version.
+ Make the 1.2 joystick driver series stable and replace this
diff -urN linux-2.1.118-joystick-1.0.9/drivers/char/joystick.c linux-2.1.118-joystick-1.0.11/drivers/char/joystick.c
--- linux-2.1.118-joystick-1.0.9/drivers/char/joystick.c Sat May 9 08:07:44 1998
+++ linux-2.1.118-joystick-1.0.11/drivers/char/joystick.c Thu Aug 27 20:40:19 1998
@@ -1,5 +1,5 @@
/*
- * linux/drivers/char/joystick.c Version 1.0.9
+ * linux/drivers/char/joystick.c Version 1.0.11
* Copyright (C) 1996-1998 Vojtech Pavlik
*/

@@ -771,6 +771,7 @@
js_ioctl, /* js_ioctl */
NULL, /* js_mmap */
js_open, /* js_open */
+ NULL, /* js_flush */
js_release, /* js_release */
NULL /* js_sync */
};
diff -urN linux-2.1.118-joystick-1.0.9/include/linux/joystick.h linux-2.1.118-joystick-1.0.11/include/linux/joystick.h
--- linux-2.1.118-joystick-1.0.9/include/linux/joystick.h Sat May 9 08:07:44 1998
+++ linux-2.1.118-joystick-1.0.11/include/linux/joystick.h Thu Aug 27 20:28:12 1998
@@ -2,7 +2,7 @@
#define _LINUX_JOYSTICK_H

/*
- * /usr/include/linux/joystick.h Version 1.0.9
+ * /usr/include/linux/joystick.h Version 1.0.11
*
* Copyright (C) 1996-1998 Vojtech Pavlik
*/
@@ -13,7 +13,7 @@
* Version
*/

-#define JS_VERSION 0x00010008L
+#define JS_VERSION 0x01000b

/*
* IOCTL commands for joystick driver

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html