From f6a3bcf86c605cf6ebc5bdd5a4b6a42ad7ec4153 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Tue, 4 Sep 2001 21:33:06 +0000 Subject: [PATCH] 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 --- sys/dev/isp/isp_freebsd.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h index b3110ce5ff1..91b837d6073 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];