1 #ifndef _SCSI_SCSI_TCQ_H
2 #define _SCSI_SCSI_TCQ_H
9 #define MSG_SIMPLE_TAG 0x20
10 #define MSG_HEAD_TAG 0x21
11 #define MSG_ORDERED_TAG 0x22
12 #define MSG_ACA_TAG 0x24
14 #define SCSI_NO_TAG (-1)
27 static inline int scsi_get_tag_type(
struct scsi_device *sdev)
38 static inline void scsi_set_tag_type(
struct scsi_device *sdev,
int tag)
81 static inline void scsi_deactivate_tcq(
struct scsi_device *sdev,
int depth)
98 static inline int scsi_populate_tag_msg(
struct scsi_cmnd *
cmd,
char *
msg)
102 if (blk_rq_tagged(req)) {
138 static inline int scsi_init_shared_tag_map(
struct Scsi_Host *
shost,
int depth)
168 req = blk_map_queue_find_tag(shost->
bqt, tag);