diff options
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index e5d6d7f8e6dc..5a403e434ff8 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -108,7 +108,9 @@ enum { | |||
108 | LIBATA_MAX_PRD = ATA_MAX_PRD / 2, | 108 | LIBATA_MAX_PRD = ATA_MAX_PRD / 2, |
109 | ATA_MAX_PORTS = 8, | 109 | ATA_MAX_PORTS = 8, |
110 | ATA_DEF_QUEUE = 1, | 110 | ATA_DEF_QUEUE = 1, |
111 | ATA_MAX_QUEUE = 1, | 111 | /* tag ATA_MAX_QUEUE - 1 is reserved for internal commands */ |
112 | ATA_MAX_QUEUE = 2, | ||
113 | ATA_TAG_INTERNAL = ATA_MAX_QUEUE - 1, | ||
112 | ATA_MAX_SECTORS = 200, /* FIXME */ | 114 | ATA_MAX_SECTORS = 200, /* FIXME */ |
113 | ATA_MAX_BUS = 2, | 115 | ATA_MAX_BUS = 2, |
114 | ATA_DEF_BUSY_WAIT = 10000, | 116 | ATA_DEF_BUSY_WAIT = 10000, |
@@ -717,6 +719,11 @@ static inline unsigned int ata_tag_valid(unsigned int tag) | |||
717 | return (tag < ATA_MAX_QUEUE) ? 1 : 0; | 719 | return (tag < ATA_MAX_QUEUE) ? 1 : 0; |
718 | } | 720 | } |
719 | 721 | ||
722 | static inline unsigned int ata_tag_internal(unsigned int tag) | ||
723 | { | ||
724 | return tag == ATA_MAX_QUEUE - 1; | ||
725 | } | ||
726 | |||
720 | static inline unsigned int ata_class_enabled(unsigned int class) | 727 | static inline unsigned int ata_class_enabled(unsigned int class) |
721 | { | 728 | { |
722 | return class == ATA_DEV_ATA || class == ATA_DEV_ATAPI; | 729 | return class == ATA_DEV_ATA || class == ATA_DEV_ATAPI; |