From gibbs@caspian.plutotech.com  Wed Dec 22 11:54:47 1999
Return-Path: <gibbs@caspian.plutotech.com>
Received: from caspian.plutotech.com (caspian.plutotech.com [206.168.67.80])
	by hub.freebsd.org (Postfix) with ESMTP id A733F154DB
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 Dec 1999 11:54:46 -0800 (PST)
	(envelope-from gibbs@caspian.plutotech.com)
Received: (from gibbs@localhost)
	by caspian.plutotech.com (8.9.3/8.9.1) id MAA00631;
	Wed, 22 Dec 1999 12:54:55 -0700 (MST)
	(envelope-from gibbs)
Message-Id: <199912221954.MAA00631@caspian.plutotech.com>
Date: Wed, 22 Dec 1999 12:54:55 -0700 (MST)
From: "Justin T. Gibbs" <gibbs@FreeBSD.org>
Sender: gibbs@caspian.plutotech.com
Reply-To: gibbs@FreeBSD.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Joy driver fails to attach to CS joystick port on TP770X
X-Send-Pr-Version: 3.2

>Number:         15633
>Category:       kern
>Synopsis:       Joy driver fails to attach to CS joystick port on TP770X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 22 12:00:02 PST 1999
>Closed-Date:    Thu Aug 24 12:06:07 PDT 2000
>Last-Modified:  Thu Aug 24 12:07:15 PDT 2000
>Originator:     Justin T. Gibbs
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	Thinkpad 770X with CS4610/CS4239 combo.  This probably
	applies to the TP660 as well.

>Description:

	The TP uses CSC01XX instead of CSC00XX for all of its
	CSC PnP Ids.  One piece of CS documentation seemed to
	indicate that this byte was ignored by their software
	as they expected the vendor to change it for their own
	MB.  Perhaps we need to add a mask field into the
	PnP info tables so we can generically deal with this.

>How-To-Repeat:

	Attempt to configure the joy driver on a Thinkpad 770X.

>Fix:

==== //depot/FreeBSD-current/src/sys/isa/joy.c#3 - /usr/src/sys/isa/joy.c ====
*** /tmp/tmp.315.34	Wed Dec 22 12:43:22 1999
--- /usr/src/sys/isa/joy.c	Wed Dec 22 12:36:47 1999
***************
*** 99,104 ****
--- 99,105 ----
  devclass_t joy_devclass;
  
  static struct isa_pnp_id joy_ids[] = {
+     {0x0101630e, "CSC0001 PnP Joystick"},	/* CSC0001 */
      {0x0100630e, "CSC0001 PnP Joystick"},	/* CSC0001 */
      {0x01100002, "ALS0110 PnP Joystick"},	/* @P@1001 */
      {0x01100002, "ALS0120 PnP Joystick"},	/* @P@2001 */


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Thu Aug 24 12:06:07 PDT 2000 
State-Changed-Why:  
Patch applied in rev 1.37 (while HEAD was 4-CURRENT) by peter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15633 
>Unformatted:
