diff options
Diffstat (limited to 'include/scsi/scsi_tcq.h')
-rw-r--r-- | include/scsi/scsi_tcq.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/include/scsi/scsi_tcq.h b/include/scsi/scsi_tcq.h index fe4a70299419..9708b28bd2aa 100644 --- a/include/scsi/scsi_tcq.h +++ b/include/scsi/scsi_tcq.h | |||
@@ -6,46 +6,10 @@ | |||
6 | #include <scsi/scsi_device.h> | 6 | #include <scsi/scsi_device.h> |
7 | #include <scsi/scsi_host.h> | 7 | #include <scsi/scsi_host.h> |
8 | 8 | ||
9 | #define MSG_SIMPLE_TAG 0x20 | ||
10 | #define MSG_HEAD_TAG 0x21 | ||
11 | #define MSG_ORDERED_TAG 0x22 | ||
12 | #define MSG_ACA_TAG 0x24 /* unsupported */ | ||
13 | |||
14 | #define SCSI_NO_TAG (-1) /* identify no tag in use */ | 9 | #define SCSI_NO_TAG (-1) /* identify no tag in use */ |
15 | 10 | ||
16 | 11 | ||
17 | #ifdef CONFIG_BLOCK | 12 | #ifdef CONFIG_BLOCK |
18 | |||
19 | int scsi_change_queue_type(struct scsi_device *sdev, int tag_type); | ||
20 | |||
21 | /** | ||
22 | * scsi_get_tag_type - get the type of tag the device supports | ||
23 | * @sdev: the scsi device | ||
24 | */ | ||
25 | static inline int scsi_get_tag_type(struct scsi_device *sdev) | ||
26 | { | ||
27 | if (!sdev->tagged_supported) | ||
28 | return 0; | ||
29 | if (sdev->simple_tags) | ||
30 | return MSG_SIMPLE_TAG; | ||
31 | return 0; | ||
32 | } | ||
33 | |||
34 | static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag) | ||
35 | { | ||
36 | switch (tag) { | ||
37 | case MSG_ORDERED_TAG: | ||
38 | case MSG_SIMPLE_TAG: | ||
39 | sdev->simple_tags = 1; | ||
40 | break; | ||
41 | case 0: | ||
42 | /* fall through */ | ||
43 | default: | ||
44 | sdev->simple_tags = 0; | ||
45 | break; | ||
46 | } | ||
47 | } | ||
48 | |||
49 | static inline struct scsi_cmnd *scsi_mq_find_tag(struct Scsi_Host *shost, | 13 | static inline struct scsi_cmnd *scsi_mq_find_tag(struct Scsi_Host *shost, |
50 | int unique_tag) | 14 | int unique_tag) |
51 | { | 15 | { |