summaryrefslogtreecommitdiffstats
path: root/sys/dev/digi/digi.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-05-07 11:13:11 +0000
committerbrian <brian@FreeBSD.org>2001-05-07 11:13:11 +0000
commitb4e77391c3536ccca7aefca3e461c40868b19e4b (patch)
treec7d39edab6352934c4f07c09001bee997dcc07ff /sys/dev/digi/digi.h
parent92ef63e056362d78915ae984627804545c04afa8 (diff)
downloadFreeBSD-src-b4e77391c3536ccca7aefca3e461c40868b19e4b.zip
FreeBSD-src-b4e77391c3536ccca7aefca3e461c40868b19e4b.tar.gz
Change COM_LOCK/COM_UNLOCK to a regular mutex - still conditional on
SMP being defined.
Diffstat (limited to 'sys/dev/digi/digi.h')
-rw-r--r--sys/dev/digi/digi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/digi/digi.h b/sys/dev/digi/digi.h
index baa03eb..f59f2af 100644
--- a/sys/dev/digi/digi.h
+++ b/sys/dev/digi/digi.h
@@ -37,6 +37,12 @@
#define CE_NTYPES 3
#define CE_RECORD(com, errnum) (++(com)->delta_error_counts[errnum])
+#ifdef SMP
+#define DIGI_LOCK_INTR
+#endif
+
+/*#define DIGI_INTERRUPT*/
+
#ifndef DEBUG
#define DEBUG
#endif
@@ -190,6 +196,9 @@ struct digi_softc {
u_char *(*setwin)(struct digi_softc *_sc, unsigned _addr);
void (*hidewin)(struct digi_softc *_sc);
void (*towin)(struct digi_softc *_sc, int _win);
+#ifdef DIGI_LOCK_INTR
+ struct mtx intr_mutex[1];
+#endif
#ifdef DEBUG
int intr_count;
#endif
OpenPOWER on IntegriCloud