Subject: Proposed change to sys/dev/midi_if.h
To: None <tech-kern@netbsd.org>
From: Bill Studenmund <wrstuden@zembu.com>
List: tech-kern
Date: 07/06/2000 11:29:03
This file makes sure that there is an splaudio defined on the platform
before proceeding. If the port didn't define one, it makes splaudio equal
to splbio.

The problem is that it does this based on machine type. macppc isn't in
that list, even though it defines both splaudio and IPL_AUDIO. So macppc
looses.

Obviously I can just add macppc to the list, but that strikes me as still
wrong. So does this look ok?

Index: midi_if.h
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/midi_if.h,v
retrieving revision 1.8
diff -u -r1.8 midi_if.h
--- midi_if.h   2000/03/21 18:05:55     1.8
+++ midi_if.h   2000/07/06 18:04:18
@@ -67,7 +67,7 @@
 void   midi_getinfo __P((dev_t, struct midi_info *));
 int    midi_writebytes __P((int, u_char *, int));
 
-#if !defined(__i386__) && !defined(__arm32__) && !defined(prep)
+#if !defined(IPL_AUDIO)
 #define splaudio splbio                /* XXX */
 #define IPL_AUDIO IPL_BIO      /* XXX */
 #endif