From b4e77391c3536ccca7aefca3e461c40868b19e4b Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 7 May 2001 11:13:11 +0000 Subject: Change COM_LOCK/COM_UNLOCK to a regular mutex - still conditional on SMP being defined. --- sys/dev/digi/digi.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/dev/digi/digi.h') 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 -- cgit v1.1