NetBSD Problem Report #330

From gnats  Thu Jul  7 13:53:50 1994
Received: from yuri.CS.ORST.EDU (root@yuri.CS.ORST.EDU [128.193.164.204]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id NAA01433 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 7 Jul 1994 13:53:49 -0700
Message-Id: <199407072107.OAA00612@yuri.CS.ORST.EDU>
Date: Thu, 7 Jul 1994 14:07:12 -0700
From: "Jason R. Thorpe" <thorpej@yuri.CS.ORST.EDU>
Reply-To: thorpej@yuri.CS.ORST.EDU
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: sbreg.h does not DTRT with SoundBlaster Pro
X-Send-Pr-Version: 3.2

>Number:         330
>Category:       port-i386
>Synopsis:       sbreg.h does not DTRT with SoundBlaster Pro
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 07 14:05:09 +0000 1994
>Closed-Date:    Fri Sep 16 23:48:34 +0000 1994
>Last-Modified:  
>Originator:     Jason R. Thorpe
>Release:        NetBSD 0.9C (Jul 5 source)
>Organization:
	Oregon State University
	Department of Computer Science
>Environment:

System: NetBSD yuri 0.9C NetBSD 0.9C (YURI) #1: Thu Jul 7 13:04:05 PDT 1994 thorpej@yuri:/tmp_mnt/hurricane/NetBSD/src/sys/arch/i386/compile/YURI i386


>Description:
	The macro to check for valid IRQs on the SoundBlaster does not
	check for the right ones on a SoundBlaster Pro.  This does not 
	manifest itself unless you're running out of IRQs and need to use
	one that's not supported by the current driver.
>How-To-Repeat:
	Put your SoundBlaster Pro on IRQ 10 and watch your kernel tell
	you that IRQ 10 is invalid.
>Fix:
	I have used the following patch to /sys/arch/i386/isa/sbreg.h
	for close to 4 months now...I've just finally gotten around to
	doing the send-pr :-)

	This particular patch is based on the following version of
	sbreg.h:

	$Id: sbreg.h,v 1.2 1994/03/29 04:36:28 mycroft Exp $

	NOTE: The patch requires that you put the following in your
	kernel config file:

	options		SBPRO

*** distribution/sbreg.h	Mon Jun 20 22:41:22 1994
--- sbreg.h	Mon Jun 20 22:41:41 1994
***************
*** 139,146 ****
--- 139,151 ----
  /*
   * Macros to detect valid hardware configuration data.
   */
+ #ifdef	SBPRO
+ #define	SB_IRQ_VALID(mask)  ((mask) & 0x04a4)	/* IRQ 2,5,7,10 */
+ #define	SB_DRQ_VALID(chan)  (((chan) == 0) || ((chan) == 1) || ((chan) == 3))
+ #else	/* ! SBPRO */
  #define SB_IRQ_VALID(mask)  ((mask) & 0x00ac)	/* IRQ 2,3,5,7 */
  #define SB_DRQ_VALID(chan)  ((chan) == 1)
+ #endif	/* SBPRO */
  #define SB_BASE_VALID(base) ((base) == 0x220 || (base) == 0x240)

  #define SB_INPUT_RATE	0
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Fri Sep 16 16:48:34 PDT 1994 
State-Changed-Why:  
Done. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.