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.
This commit is contained in:
gibbs 1998-10-15 23:17:35 +00:00
parent ffc7c264c9
commit 4cde4dce2e

View File

@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id$ * $Id: cam_ccb.h,v 1.1 1998/09/15 06:33:23 gibbs Exp $
*/ */
#ifndef _CAM_CAM_CCB_H #ifndef _CAM_CAM_CCB_H
@ -474,6 +474,12 @@ struct ccb_scsiio {
u_int8_t *msg_ptr; /* Pointer to the message buffer */ u_int8_t *msg_ptr; /* Pointer to the message buffer */
u_int16_t msg_len; /* Number of bytes for the Message */ u_int16_t msg_len; /* Number of bytes for the Message */
u_int8_t tag_action; /* What to do for tag queueing */ 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 tag_id; /* tag id from initator (target mode) */
u_int8_t init_id; /* initiator id of who selected */ u_int8_t init_id; /* initiator id of who selected */
}; };