summaryrefslogtreecommitdiff
path: root/sys/dev/ic/cissvar.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-09-07 04:00:17 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-09-07 04:00:17 +0000
commit71c6d11d65a48949a4c41fe3d0534386a5140f9a (patch)
treed6e9ce8b7161d41ad37acccd949ac511a2641821 /sys/dev/ic/cissvar.h
parentfc3dadbd35889f5b099cc246b5f16ee24d9ff745 (diff)
sync on shutdown
Diffstat (limited to 'sys/dev/ic/cissvar.h')
-rw-r--r--sys/dev/ic/cissvar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/cissvar.h b/sys/dev/ic/cissvar.h
index 85ba61730a8..c2299e8aabc 100644
--- a/sys/dev/ic/cissvar.h
+++ b/sys/dev/ic/cissvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cissvar.h,v 1.1 2005/07/06 01:52:13 mickey Exp $ */
+/* $OpenBSD: cissvar.h,v 1.2 2005/09/07 04:00:16 mickey Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -25,6 +25,7 @@ struct ciss_softc {
void *sc_ih;
void *sc_sh;
struct proc *sc_thread;
+ int sc_flush;
u_int sc_flags;
int ccblen, maxcmd, maxsg, nbus, ndrives, maxunits;
@@ -50,9 +51,11 @@ struct ciss_rawsoftc {
u_int8_t sc_channel;
};
-/* XXX These have to become spinlocks in case of SMP */
+/* XXX These have to become spinlocks in case of fine SMP */
#define CISS_LOCK(sc) splbio()
#define CISS_UNLOCK(sc, lock) splx(lock)
+#define CISS_LOCK_SCRATCH(sc) splbio()
+#define CISS_UNLOCK_SCRATCH(sc, lock) splx(lock)
typedef int ciss_lock_t;
int ciss_attach(struct ciss_softc *sc);