summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1993-10-23 22:13:42 +0000
committerjkh <jkh@FreeBSD.org>1993-10-23 22:13:42 +0000
commitabc78b356586ad54b3a01f70ffc87b2b64388399 (patch)
tree17f4f4bd20cfb3a5b9eda41b2557fa0c1671c944
parentefbf1dafe47cc462344b19474b5825fdd09702ab (diff)
downloadFreeBSD-src-abc78b356586ad54b3a01f70ffc87b2b64388399.zip
FreeBSD-src-abc78b356586ad54b3a01f70ffc87b2b64388399.tar.gz
Fixed up to at least compile (can't test) properly for FreeBSD
-rw-r--r--sys/i386/isa/sound/mpu401.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/i386/isa/sound/mpu401.c b/sys/i386/isa/sound/mpu401.c
index 152abf2..f948510 100644
--- a/sys/i386/isa/sound/mpu401.c
+++ b/sys/i386/isa/sound/mpu401.c
@@ -76,13 +76,21 @@ mpuintr (int unit)
* polling.
*/
+/* XXX WARNING: FreeBSD doesn't seem to have timer_lists like this,
+ * so until I figure out how to do the analogous thing in FreeBSD, I'm
+ * not all that sure WHAT this driver will do! It might work, depending
+ * on the condition taken, but then again it might not! -jkh
+ * XXX WARNING
+ */
static void
poll_mpu401 (unsigned long dummy)
{
unsigned long flags;
+#ifdef linux
static struct timer_list mpu401_timer =
{NULL, 0, 0, poll_mpu401};
+#endif
if (!(mpu401_opened & OPEN_READ))
return; /* No longer required */
@@ -92,8 +100,10 @@ poll_mpu401 (unsigned long dummy)
if (input_avail ())
mpu401_input_loop ();
+#ifdef linux
mpu401_timer.expires = 1;
add_timer (&mpu401_timer); /* Come back later */
+#endif
RESTORE_INTR (flags);
}
@@ -264,7 +274,9 @@ attach_mpu401 (long mem_start, struct address_info *hw_config)
printk ("snd5: <Roland MPU-401>");
my_dev = num_midis;
+#ifdef linux
mpu401_dev = num_midis;
+#endif
midi_devs[num_midis++] = &mpu401_operations;
return mem_start;
}
OpenPOWER on IntegriCloud