diff options
| author | Jeff Garzik <jgarzik@redhat.com> | 2004-05-10 13:51:40 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-10 13:51:40 -0400 |
| commit | 8962c3151a145b5c60af3f9642e1fa072dae1a59 (patch) | |
| tree | 62b3b11c9b3ea78cf68621e19b080df1ece6b4fd /include | |
| parent | 7fb76946991955b25cda94323c7cbc343936253e (diff) | |
[libata] preparation for writeback caching support
* bug fix: make sure 'nsect' member of struct ata_queued_cmd is
initialized each time a cmd is re-used. Only affects PIO data xfers,
which nobody uses.
* slightly change the way a device's flags are printed out. currently
the only flag is 'lba48', but soon 'wcache' will appear also.
* add WB-cache-related constants and macros to linux/ata.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h index 33074a08f490..7275d89ace21 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -104,6 +104,8 @@ enum { /* ATA device commands */ ATA_CMD_EDD = 0x90, /* execute device diagnostic */ + ATA_CMD_FLUSH = 0xE7, + ATA_CMD_FLUSH_EXT = 0xEA, ATA_CMD_ID_ATA = 0xEC, ATA_CMD_ID_ATAPI = 0xA1, ATA_CMD_READ = 0xC8, @@ -196,7 +198,9 @@ struct ata_taskfile { }; #define ata_id_is_ata(dev) (((dev)->id[0] & (1 << 15)) == 0) +#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)) #define ata_id_has_lba(dev) ((dev)->id[49] & (1 << 8)) #define ata_id_has_dma(dev) ((dev)->id[49] & (1 << 9)) #define ata_id_u32(dev,n) \ |
