scsi_tcq.h (4aff5e2333c9a1609662f2091f55c3f6fffdad36) scsi_tcq.h (9361401eb7619c033e2394e4f9f6d410d6719ac7)
1#ifndef _SCSI_SCSI_TCQ_H
2#define _SCSI_SCSI_TCQ_H
3
4#include <linux/blkdev.h>
5#include <scsi/scsi_cmnd.h>
6#include <scsi/scsi_device.h>
7#include <scsi/scsi_host.h>
8
1#ifndef _SCSI_SCSI_TCQ_H
2#define _SCSI_SCSI_TCQ_H
3
4#include <linux/blkdev.h>
5#include <scsi/scsi_cmnd.h>
6#include <scsi/scsi_device.h>
7#include <scsi/scsi_host.h>
8
9
10#define MSG_SIMPLE_TAG 0x20
11#define MSG_HEAD_TAG 0x21
12#define MSG_ORDERED_TAG 0x22
13
14#define SCSI_NO_TAG (-1) /* identify no tag in use */
15
16
9#define MSG_SIMPLE_TAG 0x20
10#define MSG_HEAD_TAG 0x21
11#define MSG_ORDERED_TAG 0x22
12
13#define SCSI_NO_TAG (-1) /* identify no tag in use */
14
15
16#ifdef CONFIG_BLOCK
17
18/**
19 * scsi_get_tag_type - get the type of tag the device supports
20 * @sdev: the scsi device
21 *
22 * Notes:
23 * If the drive only supports simple tags, returns MSG_SIMPLE_TAG
24 * if it supports all tag types, returns MSG_ORDERED_TAG.

--- 114 unchanged lines hidden (view full) ---

139 * @depth: the total depth of the map
140 */
141static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)
142{
143 shost->bqt = blk_init_tags(depth);
144 return shost->bqt ? 0 : -ENOMEM;
145}
146
17
18/**
19 * scsi_get_tag_type - get the type of tag the device supports
20 * @sdev: the scsi device
21 *
22 * Notes:
23 * If the drive only supports simple tags, returns MSG_SIMPLE_TAG
24 * if it supports all tag types, returns MSG_ORDERED_TAG.

--- 114 unchanged lines hidden (view full) ---

139 * @depth: the total depth of the map
140 */
141static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)
142{
143 shost->bqt = blk_init_tags(depth);
144 return shost->bqt ? 0 : -ENOMEM;
145}
146
147#endif /* CONFIG_BLOCK */
147#endif /* _SCSI_SCSI_TCQ_H */
148#endif /* _SCSI_SCSI_TCQ_H */