Skip to contentSkip to conversation

PS2 Mouse support

parisc-linux Thomas Marteau 1 participant 1 message May 11, 2001 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

Hi all,

I finally released my patch in order to get the PS2 mouse support. It
is working with GPM if you run STI-console with the Deller's frambuffer available at ftp://people.redhat.com/hdeller/parisc_stifb

This patch can be downloaded from our website
http://www.esiee.fr/puffin

Feedback is always appreciated, Thomas
ESIEE Team

PS: If someone want to commit it, please do!

drivers/char/hp_keyb.h +60 -0
diff -Nru linuxbf/drivers/char/hp_keyb.h linux/drivers/char/hp_keyb.h
@@ -0,0 +1,60 @@
+/*  
+ *    LASI PS/2 keyboard/psaux header for HP-PARISC workstations
+ *
+ *    Copyright 2001    Marteau Thomas <[email protected]>
+ *
+ *    This file contains all the data needed by hp_keyb.c and hp_psaux.c
+ *
+ *    2001/05/10       Try to compact the code in the two files
+ *                  
+ */
+
+/* These defines are not used! */
+#define KBD_ECHO	0xEE		/* in/out */
+#define KBD_DEFAULT	0xF6		/* out */
+#define KBD_DIAGFAIL	0xFD		/* in */
+
+/* Only in hp_keyb.c */
+#define KBD_BREAK	0xF0		/* in */
+
+/* Standard mouse behaviour parameters */
+
+#define AUX_REPLY_ACK   0xFA            /* Command byte ACK. */
+#define AUX_RECONNECT   0xAA            /* scancode when ps2 device is plugged (back) in */
+
+/* PA-RISC define */
+#define LASI_OFFSET     0x0100
+
+#define	LASI_ID		0x00
+#define LASI_RESET	0x00
+#define LASI_RCVDATA	0x04
+#define LASI_XMTDATA	0x04
+#define LASI_CONTROL	0x08
+#define LASI_STATUS	0x0C
+
+/* Control register bits */
+
+#define LASI_CTRL_ENBL		0x01	/* enable interface */
+#define LASI_CTRL_LPBXR		0x02	/* loopback operation */
+#define LASI_CTRL_DIAG		0x20	/* directly control clock/data line */
+#define	LASI_CTRL_DATDIR	0x40	/* data line direct control */
+#define	LASI_CTRL_CLKDIR	0x80	/* clock line direct control */
+
+/* Status register bits */
+
+#define LASI_STAT_RBNE		0x01
+#define LASI_STAT_TBNE		0x02
+#define LASI_STAT_TERR		0x04
+#define LASI_STAT_PERR		0x08
+#define LASI_STAT_CMPINTR	0x10
+#define LASI_STAT_DATSHD	0x40
+#define LASI_STAT_CLKSHD	0x80
+
+
+
+
+
+
+
+
+
drivers/char/hp_psaux.c +333 -64

505 lines not on this page · raw message

drivers/gsc/lasi.c +2 -1
diff -Nru linuxbf/drivers/gsc/lasi.c linux/drivers/gsc/lasi.c
@@ -48,7 +48,8 @@
 	case 0x5000:	irq = 26; break; /* RS232 */
 	case 0x6000:	irq = 22; break; /* SCSI */
 	case 0x7000:	irq = 23; break; /* LAN */
-	case 0x8000:	irq =  5; break; /* PS/2 Keyboard and Mouse */
+	case 0x8000:	irq =  5; break; /* PS/2 Keyboard */
+	case 0x8100:	irq =  5; break; /* PS/2 Mouse */
 	case 0xA000:	irq = 11; break; /* Floppy Disk Controller */
 	default: 	irq = -1; break; /* unknown */
 	}