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
This commit is contained in:
Matt Jacob 2001-09-04 21:33:06 +00:00
parent 2505b3ed25
commit f6a3bcf86c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83025

View file

@ -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];