Subject: port-i386/3954: Add support ESS1868 joystick in joy_isapnp.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 08/07/1997 21:13:49
>Number:         3954
>Category:       port-i386
>Synopsis:       add support ESS1868 joystick in joy_isapnp.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Aug  7 05:20:01 1997
>Last-Modified:
>Originator:     Izumi Tsutsui
>Organization:
Dream Train Internet, Japan
>Release:        current on Aug.5 1997
>Environment:

System: NetBSD mirage 1.2G NetBSD 1.2G (MIRAGE) #31: Tue Aug 5 21:23:26 JST 1997
 tsutsui@mirage:/usr/src/sys/arch/i386/compile/MIRAGE i386

>Description:
        Add support ESS1868 PnP SoundBlaster compatible card
	joystick interface.

>How-To-Repeat:
	NetBSD does not support ESS1868 joystick.
        Kernel says:

>Fix:
        Apply following patch.

*** sys/arch/i386/isa/joy_isapnp.c.orig Mon Aug  4 04:11:36 1997
--- sys/arch/i386/isa/joy_isapnp.c      Thu Aug  7 20:36:54 1997
*************** joy_isapnp_match(parent, match, aux)
*** 63,69 ****
  {
  	struct isapnp_attach_args *ipa = aux;
  
! 	return(strcmp(ipa->ipa_devcompat, "PNPB02F") == 0);
  }
  
  void
--- 63,73 ----
  {
  	struct isapnp_attach_args *ipa = aux;
  
! 	if (strcmp(ipa->ipa_devcompat, "PNPB02F") &&
! 	    strcmp(ipa->ipa_devlogic, "ESS0001"))
! 		return 0;
! 
! 	return 1;
  }
  
  void

>Audit-Trail:
>Unformatted:
>isapnp0: <ESS ES1868 Plug and Play AudioD, ESS0001, , > port 0x201/1 not config
ured