Skip to contentSkip to conversation

VSXXX-AA mouse and LK[24]01 keyboard

PATCH New Jan-Benedict Glaw 1 participant 1 message Feb 25, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VSXXX-AA mouse and LK[24]01 keyboard

Hi!

This is my current patchset adding in-kernel drivers (based on serio and Input API).

I'm currently using the keyboard driver to write this email (with an adaptor on my PeeCee). I've not yet build an adaptor for the mouse, but it emits bytes off the generic PS2 mouse interface on a VAX so it can't be all that wrong :)

While this is the first Input API driver for the VSXXX-AA mouse, there already exists a LK driver. Please choose which one you like better.

Of course, comments are highly welcome!

MfG, JBG

Signature · 4 lines
   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Index: include/linux/serio.h
===================================================================
RCS file: /home/ftp/pub/mirror/CVS/ftp.linux-mips.org/linux/include/linux/serio.h,v retrieving revision 1.14

include/linux/serio.h +2 -0
diff -u -r1.14 serio.h
@@ -117,6 +117,7 @@
 #define SERIO_MZ	0x05
 #define SERIO_MZP	0x06
 #define SERIO_MZPP	0x07
+#define SERIO_VSXXXAA	0x08
 #define SERIO_SUNKBD	0x10
 #define SERIO_WARRIOR	0x18
 #define SERIO_SPACEORB	0x19
@@ -134,6 +135,7 @@
 #define SERIO_HIL	0x25
 #define SERIO_SNES232	0x26
 #define SERIO_SEMTECH	0x27
+#define SERIO_LKKBD	0x28
 
 #define SERIO_ID	0xff00UL
 #define SERIO_EXTRA	0xff0000UL

Index: drivers/input/keyboard/Makefile
===================================================================
RCS file: /home/ftp/pub/mirror/CVS/ftp.linux-mips.org/linux/drivers/input/keyboard/Makefile,v retrieving revision 1.5

drivers/input/keyboard/Makefile +1 -0
diff -u -r1.5 Makefile
@@ -7,6 +7,7 @@
 obj-$(CONFIG_KEYBOARD_ATKBD)		+= atkbd.o
 obj-$(CONFIG_KEYBOARD_MAPLE)		+= maple_keyb.o
 obj-$(CONFIG_KEYBOARD_SUNKBD)		+= sunkbd.o
+obj-$(CONFIG_KEYBOARD_LKKBD)		+= lkkbd.o
 obj-$(CONFIG_KEYBOARD_XTKBD)		+= xtkbd.o
 obj-$(CONFIG_KEYBOARD_AMIGA)		+= amikbd.o
 obj-$(CONFIG_KEYBOARD_NEWTON)		+= newtonkbd.o

Index: drivers/input/keyboard/Kconfig
===================================================================
RCS file: /home/ftp/pub/mirror/CVS/ftp.linux-mips.org/linux/drivers/input/keyboard/Kconfig,v retrieving revision 1.7

drivers/input/keyboard/Kconfig +12 -0
diff -u -r1.7 Kconfig
@@ -40,6 +40,18 @@
 	  To compile this driver as a module, choose M here: the
 	  module will be called sunkbd.
 
+config KEYBOARD_LKKBD
+	tristate "DECstation / VAXstation LK keyboard support"
+	depends on INPUT && INPUT_KEYBOARD
+	select SERIO
+	help
+	  Say Y here if you want to use a LK201 or LK401 style serial
+	  keyboard. This keyboard is also useable on PCs if you attach
+	  it with the inputattach program.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called lkkbd.
+
 config KEYBOARD_XTKBD
 	tristate "XT Keyboard support"
 	depends on INPUT && INPUT_KEYBOARD

Index: drivers/input/mouse/Makefile
===================================================================
RCS file: /home/ftp/pub/mirror/CVS/ftp.linux-mips.org/linux/drivers/input/mouse/Makefile,v retrieving revision 1.6

drivers/input/mouse/Makefile +1 -0
diff -u -r1.6 Makefile
@@ -13,5 +13,6 @@
 obj-$(CONFIG_MOUSE_PC9800)	+= 98busmouse.o
 obj-$(CONFIG_MOUSE_PS2)		+= psmouse.o
 obj-$(CONFIG_MOUSE_SERIAL)	+= sermouse.o
+obj-$(CONFIG_MOUSE_VSXXXAA)	+= vsxxxaa.o
 
 psmouse-objs  := psmouse-base.o logips2pp.o synaptics.o

Index: drivers/input/mouse/Kconfig
===================================================================
RCS file: /home/ftp/pub/mirror/CVS/ftp.linux-mips.org/linux/drivers/input/mouse/Kconfig,v retrieving revision 1.12

drivers/input/mouse/Kconfig +12 -0
diff -u -r1.12 Kconfig
@@ -117,6 +117,18 @@
 	  To compile this driver as a module, choose M here: the
 	  module will be called rpcmouse.
 
+config MOUSE_VSXXXAA
+	tristate "DEC VSXXX-AA/GA mouse and tablet"
+	depends on INPUT && INPUT_MOUSE
+	select SERIO
+	help
+	  Say Y (or M) if you want to use a DEC VSXXX-AA (hockey
+	  puck) or a VSXXX-GA (rectangular) mouse. Theses mice are
+	  typically used on DECstations or VAXstations, but can also
+	  be used on any box capable of RS232 (with some adaptor
+	  described in the source file). This driver should, in theory,
+	  also work with the tablet DEC produced...
+
 config MOUSE_PC9800
 	tristate "NEC PC-9800 busmouse"
 	depends on X86_PC9800 && INPUT && INPUT_MOUSE && ISA
drivers/input/keyboard/lkkbd.c new file +532 -0

532 lines not on this page · raw message

drivers/input/mouse/vsxxxaa.c new file +550 -0

550 lines not on this page · raw message