diff options
Diffstat (limited to 'sys/dev/digi/digi.h')
-rw-r--r-- | sys/dev/digi/digi.h | 9 |
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 |