Subject: patch for soundblaster pro
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Jason Thorpe <thorpej@cs.orst.edu>
List: current-users
Date: 04/13/1994 15:46:30
This is a patch to allow additional DRQ and IRQ channels when using a
SoundBlaster Pro.
Later...
-----------------------------------------------------------------------------
Jason R. Thorpe thorpej@cs.orst.edu 737-9533
OSU CS Support CSWest Room 12 737-5567
'These are my opinions and not necessarily those of anyone else.'
NetBSD/Symmetry - Coming soon to a Sequent near you!
*** sbreg.h.orig Wed Apr 13 15:33:48 1994
--- sbreg.h Wed Apr 13 15:32:32 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(base) ((base) == 0x220 || (base) == 0x240)
#define SB_INPUT_RATE 0
------------------------------------------------------------------------------