Subject: port-i386/3550: pms.c changes to support glide point tapping
To: None <gnats-bugs@gnats.netbsd.org>
From: None <koji@math.human.nagoya-u.ac.jp>
List: netbsd-bugs
Date: 04/28/1997 08:59:16
>Number:         3550
>Category:       port-i386
>Synopsis:       pms.c changes to support glide point tapping
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 27 17:05:01 1997
>Last-Modified:
>Originator:     Koji Imada - je4owb/2
>Organization:
Mathematics Group of Graduate School of Human
	Infomatics, Nagoya University, Japan.
>Release:        970423
>Environment:
	
System: NetBSD bimota 1.2D NetBSD 1.2D (BIMOTA) #20: Mon Apr 28 08:10:53 JST 1997 koji@ducati:/mnt2/NetBSD/work/src-ufs-mod/sys/arch/i386/compile/BIMOTA i386


>Description:
	New glide point send special packet for tapping. This patch
	supports glidepoint tapping features.
>How-To-Repeat:
	Just connect 3 button glidepoint and try tapping.
>Fix:
	apply following diffs

Index: sys/arch/i386/isa/pms.c
===================================================================
RCS file: /mnt2/NetBSD/cvsroot/netbsd/sys/arch/i386/isa/pms.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 pms.c
*** pms.c	1997/04/01 07:22:29	1.1.1.2
--- pms.c	1997/04/27 23:48:57
***************
*** 390,395 ****
--- 390,396 ----
  #define PS2LBUTMASK 0x01
  #define PS2RBUTMASK 0x02
  #define PS2MBUTMASK 0x04
+ #define PS2BUTMASK 0x0f
  
  int
  pmsintr(arg)
***************
*** 412,417 ****
--- 413,420 ----
  
  	case 0:
  		buttons = inb(PMS_DATA);
+ 		if ((buttons & PS2BUTMASK) == 0)
+ 			buttons |= PS2LBUTMASK;
  		if ((buttons & 0xc0) == 0)
  			++state;
  		break;

>Audit-Trail:
>Unformatted: