From ffb17d43e7e39a0a323a261bae0124012ae83709 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 16 May 2004 16:21:15 -0400 Subject: [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 --- include/linux/ata.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') 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)) -- cgit v1.2.3