Subject: SoundBlaster Pro patch
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Jason R. Thorpe <thorpej@cs.orst.edu>
List: current-users
Date: 03/12/1994 17:48:04
Here is a patch to support irq 10 (eliminate irq3) and support dma 0 and 
3 for a SoundBlaster Pro.

Y'know...It sure is easy to run out of IRQ's!  :-)

*** sbreg.h.orig	Sat Mar 12 17:35:22 1994
--- sbreg.h	Sat Mar 12 17:48:40 1994
***************
*** 139,146 ****
--- 139,154 ----
  /*
   * Macros to detect valid hardware configuration data.
   */
+ #ifdef	SBPRO
+ #define SB_IRQ_VALID(mask)  ((mask) & 0x04a4)	/* IRQ 2,5,7,10 */
+ #else
  #define SB_IRQ_VALID(mask)  ((mask) & 0x00ac)	/* IRQ 2,3,5,7 */
+ #endif
+ #ifdef	SBPRO
+ #define SB_DRQ_VALID(chan)  (((chan) == 0 || ((chan) == 1) || ((chan) == 3))
+ #else
  #define SB_DRQ_VALID(chan)  ((chan) == 1)
+ #endif
  #define SB_BASE_VALID(chan) ((base) == 0x220 || (base) == 0x240)
  
  #define SB_INPUT_RATE	0


Later...

-----------------------------------------------------------------------------
Jason R. Thorpe                thorpej@cs.orst.edu                   737-9533
OSU CS Support                    CSWest Room 12                     737-2552
      'These are my opinions and not necessarily those of anyone else.'


------------------------------------------------------------------------------