Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isa This hopefully completes the audiomp conversion ...
details: https://anonhg.NetBSD.org/src/rev/3e1e179b5d57
branches: trunk
changeset: 771538:3e1e179b5d57
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Nov 24 16:11:02 2011 +0000
description:
This hopefully completes the audiomp conversion of cms(4).
diffstat:
sys/dev/isa/cms.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 9f24fa3a7651 -r 3e1e179b5d57 sys/dev/isa/cms.c
--- a/sys/dev/isa/cms.c Thu Nov 24 16:07:28 2011 +0000
+++ b/sys/dev/isa/cms.c Thu Nov 24 16:11:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cms.c,v 1.19 2011/11/23 23:07:32 jmcneill Exp $ */
+/* $NetBSD: cms.c,v 1.20 2011/11/24 16:11:02 jakllsch Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.19 2011/11/23 23:07:32 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cms.c,v 1.20 2011/11/24 16:11:02 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,6 +60,8 @@
struct cms_softc {
struct midi_softc sc_mididev;
+ kmutex_t sc_lock;
+
bus_space_tag_t sc_iot;
bus_space_handle_t sc_ioh;
@@ -166,6 +168,7 @@
struct audio_attach_args arg;
sc->sc_mididev.dev = self;
+ mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_AUDIO);
aprint_normal("\n");
Home |
Main Index |
Thread Index |
Old Index