Subject: port-hpcmips/23652: Add MobilePro 880 (MC/R730A) to stylus calibration table
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tv@duh.org>
List: netbsd-bugs
Date: 12/04/2003 10:28:29
>Number:         23652
>Category:       port-hpcmips
>Synopsis:       Add MobilePro 880 (MC/R730A) to stylus calibration table
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 04 15:31:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Todd Vierling
>Release:        NetBSD 1.6.2_RC3
>Organization:
	DUH.ORG:  Pointing out the obvious since 1994.
>Environment:
>Description:

MobilePro 880 (MC/R730A) doesn't have an entry in the vrpiu.c calibration
list.  This causes the stylus to be completely wrong (calibrated for HVGA
rather than 800x600).

>How-To-Repeat:

Run X on MobilePro 880; try to use stylus.

>Fix:

Tested on -current and 1.6, so should request pullup to 1.6 after adding:

Index: sys/arch/hpcmips/vr/vrpiu.c
===================================================================
RCS file: /cvsroot/src/sys/arch/hpcmips/vr/vrpiu.c,v
retrieving revision 1.23
diff -u -r1.23 vrpiu.c
--- sys/arch/hpcmips/vr/vrpiu.c	2002/03/17 19:40:41	1.23
+++ sys/arch/hpcmips/vr/vrpiu.c	2003/12/04 15:25:50
@@ -253,6 +253,13 @@
 			      { 115, 966,   0, 599 },
 			      { 912,  80, 799,   0 },
 			      { 912, 966, 799, 599 } } } },
+			{ &platid_mask_MACH_NEC_MCR_730A,
+			  { 0, 0, 799, 599,
+			    4,
+			    { { 115,  80,   0,   0 },
+			      { 115, 966,   0, 599 },
+			      { 912,  80, 799,   0 },
+			      { 912, 966, 799, 599 } } } },
 			{ NULL,		/* samples got on my MC-R500 */
 			  { 0, 0, 639, 239,
 			    5,
>Release-Note:
>Audit-Trail:
>Unformatted: