summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-09-04 21:33:06 +0000
committermjacob <mjacob@FreeBSD.org>2001-09-04 21:33:06 +0000
commitb3abf4db3b10a00e457a2daa4efed67a6d201dde (patch)
treeb0c73e298222e2325425fc000b1edf4e23354d60 /sys
parentc516d85954afe1aa395f00ff5e9aa3e0ffa952e3 (diff)
downloadFreeBSD-src-b3abf4db3b10a00e457a2daa4efed67a6d201dde.zip
FreeBSD-src-b3abf4db3b10a00e457a2daa4efed67a6d201dde.tar.gz
I don't know what I was thinking- if I have two separate busses on on
SIM (as is true for the 1280 and the 12160), then I have to have separate flags && status for *both* busses. *Whap*. Implement condition variables for coordination with some target mode events. It's nice to use these and not panic in obscure little places in the kernel like 'propagate_priority' just because we went to sleep holding a mutex, or some other absurd thing. MFC after: 4 weeks
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp_freebsd.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index b3110ce..91b837d 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -103,10 +103,12 @@ struct isposinfo {
#ifdef ISP_TARGET_MODE
#define TM_WANTED 0x80
#define TM_BUSY 0x40
-#define TM_WILDCARD_ENABLED 0x20
-#define TM_TMODE_ENABLED 0x03
- u_int8_t tmflags;
- u_int8_t rstatus;
+#define TM_WILDCARD_ENABLED 0x02
+#define TM_TMODE_ENABLED 0x01
+ struct cv tgtcv0[2]; /* two busses */
+ struct cv tgtcv1[2]; /* two busses */
+ u_int8_t tmflags[2]; /* two busses */
+ u_int8_t rstatus[2]; /* two bussed */
u_int16_t rollinfo;
tstate_t tsdflt[2]; /* two busses */
tstate_t *lun_hash[LUN_HASH_SIZE];
OpenPOWER on IntegriCloud