From 4cde4dce2e42e17384aa8a9c6c8e0f7f371a7286 Mon Sep 17 00:00:00 2001 From: gibbs Date: Thu, 15 Oct 1998 23:17:35 +0000 Subject: [PATCH] Add a mechanism to send a non-tagged transaction even if a device is currently operating in a tagged mode. The SIM driver should determine if a device is in tag mode by looking at the CAM_TAG_ACTION_VALID flag in the ccb header. If the flag is set, the tag_action field is either a SCSI II tag message (simple, ordered, head) or CAM_TAG_ACTION_NONE to specify that no tagging should be performed. --- sys/cam/cam_ccb.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h index 1e80e37885ff..f2732b49a384 100644 --- a/sys/cam/cam_ccb.h +++ b/sys/cam/cam_ccb.h @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: cam_ccb.h,v 1.1 1998/09/15 06:33:23 gibbs Exp $ */ #ifndef _CAM_CAM_CCB_H @@ -474,6 +474,12 @@ struct ccb_scsiio { u_int8_t *msg_ptr; /* Pointer to the message buffer */ u_int16_t msg_len; /* Number of bytes for the Message */ u_int8_t tag_action; /* What to do for tag queueing */ + /* + * The tag action should be either the define below (to send a + * non-tagged transaction) or one of the defined scsi tag messages + * from scsi_message.h. + */ +#define CAM_TAG_ACTION_NONE 0x00 u_int8_t tag_id; /* tag id from initator (target mode) */ u_int8_t init_id; /* initiator id of who selected */ };