diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2006-01-17 10:29:06 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-17 10:29:06 -0500 |
commit | ea9b395fe20ac74be788f415af2622ac8f0c35c7 (patch) | |
tree | d1653e1a4cbe360aa7132ea4e29ab92a02038224 /include/linux/ata.h | |
parent | 61420e147a706ee7c7a902008045547fb2a2a330 (diff) | |
parent | 1bc4ccfff8675adc3d96f91245eb7e2dc0043ca9 (diff) |
Merge branch 'upstream'
Diffstat (limited to 'include/linux/ata.h')
-rw-r--r-- | include/linux/ata.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h index f512104a1a3f..29fa99bde2be 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h | |||
@@ -129,6 +129,7 @@ enum { | |||
129 | ATA_CMD_READ_EXT = 0x25, | 129 | ATA_CMD_READ_EXT = 0x25, |
130 | ATA_CMD_WRITE = 0xCA, | 130 | ATA_CMD_WRITE = 0xCA, |
131 | ATA_CMD_WRITE_EXT = 0x35, | 131 | ATA_CMD_WRITE_EXT = 0x35, |
132 | ATA_CMD_WRITE_FUA_EXT = 0x3D, | ||
132 | ATA_CMD_PIO_READ = 0x20, | 133 | ATA_CMD_PIO_READ = 0x20, |
133 | ATA_CMD_PIO_READ_EXT = 0x24, | 134 | ATA_CMD_PIO_READ_EXT = 0x24, |
134 | ATA_CMD_PIO_WRITE = 0x30, | 135 | ATA_CMD_PIO_WRITE = 0x30, |
@@ -137,10 +138,13 @@ enum { | |||
137 | ATA_CMD_READ_MULTI_EXT = 0x29, | 138 | ATA_CMD_READ_MULTI_EXT = 0x29, |
138 | ATA_CMD_WRITE_MULTI = 0xC5, | 139 | ATA_CMD_WRITE_MULTI = 0xC5, |
139 | ATA_CMD_WRITE_MULTI_EXT = 0x39, | 140 | ATA_CMD_WRITE_MULTI_EXT = 0x39, |
141 | ATA_CMD_WRITE_MULTI_FUA_EXT = 0xCE, | ||
140 | ATA_CMD_SET_FEATURES = 0xEF, | 142 | ATA_CMD_SET_FEATURES = 0xEF, |
141 | ATA_CMD_PACKET = 0xA0, | 143 | ATA_CMD_PACKET = 0xA0, |
142 | ATA_CMD_VERIFY = 0x40, | 144 | ATA_CMD_VERIFY = 0x40, |
143 | ATA_CMD_VERIFY_EXT = 0x42, | 145 | ATA_CMD_VERIFY_EXT = 0x42, |
146 | ATA_CMD_STANDBYNOW1 = 0xE0, | ||
147 | ATA_CMD_IDLEIMMEDIATE = 0xE1, | ||
144 | ATA_CMD_INIT_DEV_PARAMS = 0x91, | 148 | ATA_CMD_INIT_DEV_PARAMS = 0x91, |
145 | 149 | ||
146 | /* SETFEATURES stuff */ | 150 | /* SETFEATURES stuff */ |
@@ -192,7 +196,8 @@ enum { | |||
192 | ATA_TFLAG_DEVICE = (1 << 2), /* enable r/w to device reg */ | 196 | ATA_TFLAG_DEVICE = (1 << 2), /* enable r/w to device reg */ |
193 | ATA_TFLAG_WRITE = (1 << 3), /* data dir: host->dev==1 (write) */ | 197 | ATA_TFLAG_WRITE = (1 << 3), /* data dir: host->dev==1 (write) */ |
194 | ATA_TFLAG_LBA = (1 << 4), /* enable LBA */ | 198 | ATA_TFLAG_LBA = (1 << 4), /* enable LBA */ |
195 | ATA_TFLAG_POLLING = (1 << 5), /* set nIEN to 1 and use polling */ | 199 | ATA_TFLAG_FUA = (1 << 5), /* enable FUA */ |
200 | ATA_TFLAG_POLLING = (1 << 6), /* set nIEN to 1 and use polling */ | ||
196 | }; | 201 | }; |
197 | 202 | ||
198 | enum ata_tf_protocols { | 203 | enum ata_tf_protocols { |
@@ -246,7 +251,8 @@ struct ata_taskfile { | |||
246 | #define ata_id_is_sata(id) ((id)[93] == 0) | 251 | #define ata_id_is_sata(id) ((id)[93] == 0) |
247 | #define ata_id_rahead_enabled(id) ((id)[85] & (1 << 6)) | 252 | #define ata_id_rahead_enabled(id) ((id)[85] & (1 << 6)) |
248 | #define ata_id_wcache_enabled(id) ((id)[85] & (1 << 5)) | 253 | #define ata_id_wcache_enabled(id) ((id)[85] & (1 << 5)) |
249 | #define ata_id_has_flush(id) ((id)[83] & (1 << 12)) | 254 | #define ata_id_has_fua(id) ((id)[84] & (1 << 6)) |
255 | #define ata_id_has_flush(id) ((id)[83] & (1 << 12)) | ||
250 | #define ata_id_has_flush_ext(id) ((id)[83] & (1 << 13)) | 256 | #define ata_id_has_flush_ext(id) ((id)[83] & (1 << 13)) |
251 | #define ata_id_has_lba48(id) ((id)[83] & (1 << 10)) | 257 | #define ata_id_has_lba48(id) ((id)[83] & (1 << 10)) |
252 | #define ata_id_has_wcache(id) ((id)[82] & (1 << 5)) | 258 | #define ata_id_has_wcache(id) ((id)[82] & (1 << 5)) |