summaryrefslogtreecommitdiff
path: root/include/linux/ata.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@redhat.com>2004-05-16 16:21:15 -0400
committerJeff Garzik <jgarzik@redhat.com>2004-05-16 16:21:15 -0400
commitffb17d43e7e39a0a323a261bae0124012ae83709 (patch)
treeabcc98ed71ddf79e6b94f60ec05781133bcfcecd /include/linux/ata.h
parenta163af74bf0a7dc9906c31f05a687cf2253fbff7 (diff)
[libata] scsi simulator improvements: MODE SENSE, SEEK(6,10), REZERO_UNIT
* SEEK(6), SEEK(10), and REZERO_UNIT are no-ops. Unconditionally complete these commands with success. * MODE SENSE caching page work: * correct page length * set bit, if read-ahead is disabled * set bit, if writeback caching is enabled (previously, this bit was never set, even if writeback caching was enabled) * add MODE SENSE r/w error recovery page
Diffstat (limited to 'include/linux/ata.h')
-rw-r--r--include/linux/ata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 45c2b4670739..919509f32327 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -202,6 +202,7 @@ struct ata_taskfile {
};
#define ata_id_is_ata(dev) (((dev)->id[0] & (1 << 15)) == 0)
+#define ata_id_rahead_enabled(dev) ((dev)->id[85] & (1 << 6))
#define ata_id_wcache_enabled(dev) ((dev)->id[85] & (1 << 5))
#define ata_id_has_lba48(dev) ((dev)->id[83] & (1 << 10))
#define ata_id_has_wcache(dev) ((dev)->id[82] & (1 << 5))