aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ata.h')
-rw-r--r--include/linux/ata.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 03fff6239b3c..cf4ef6d915ac 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -222,6 +222,13 @@ enum {
222 ATA_CMD_PMP_WRITE = 0xE8, 222 ATA_CMD_PMP_WRITE = 0xE8,
223 ATA_CMD_CONF_OVERLAY = 0xB1, 223 ATA_CMD_CONF_OVERLAY = 0xB1,
224 ATA_CMD_SEC_FREEZE_LOCK = 0xF5, 224 ATA_CMD_SEC_FREEZE_LOCK = 0xF5,
225 ATA_CMD_SMART = 0xB0,
226 ATA_CMD_MEDIA_LOCK = 0xDE,
227 ATA_CMD_MEDIA_UNLOCK = 0xDF,
228 /* marked obsolete in the ATA/ATAPI-7 spec */
229 ATA_CMD_RESTORE = 0x10,
230 /* EXABYTE specific */
231 ATA_EXABYTE_ENABLE_NEST = 0xF0,
225 232
226 /* READ_LOG_EXT pages */ 233 /* READ_LOG_EXT pages */
227 ATA_LOG_SATA_NCQ = 0x10, 234 ATA_LOG_SATA_NCQ = 0x10,
@@ -262,6 +269,10 @@ enum {
262 SETFEATURES_WC_ON = 0x02, /* Enable write cache */ 269 SETFEATURES_WC_ON = 0x02, /* Enable write cache */
263 SETFEATURES_WC_OFF = 0x82, /* Disable write cache */ 270 SETFEATURES_WC_OFF = 0x82, /* Disable write cache */
264 271
272 /* Enable/Disable Automatic Acoustic Management */
273 SETFEATURES_AAM_ON = 0x42,
274 SETFEATURES_AAM_OFF = 0xC2,
275
265 SETFEATURES_SPINUP = 0x07, /* Spin-up drive */ 276 SETFEATURES_SPINUP = 0x07, /* Spin-up drive */
266 277
267 SETFEATURES_SATA_ENABLE = 0x10, /* Enable use of SATA feature */ 278 SETFEATURES_SATA_ENABLE = 0x10, /* Enable use of SATA feature */
@@ -284,6 +295,15 @@ enum {
284 ATA_DCO_IDENTIFY = 0xC2, 295 ATA_DCO_IDENTIFY = 0xC2,
285 ATA_DCO_SET = 0xC3, 296 ATA_DCO_SET = 0xC3,
286 297
298 /* feature values for SMART */
299 ATA_SMART_ENABLE = 0xD8,
300 ATA_SMART_READ_VALUES = 0xD0,
301 ATA_SMART_READ_THRESHOLDS = 0xD1,
302
303 /* password used in LBA Mid / LBA High for executing SMART commands */
304 ATA_SMART_LBAM_PASS = 0x4F,
305 ATA_SMART_LBAH_PASS = 0xC2,
306
287 /* ATAPI stuff */ 307 /* ATAPI stuff */
288 ATAPI_PKT_DMA = (1 << 0), 308 ATAPI_PKT_DMA = (1 << 0),
289 ATAPI_DMADIR = (1 << 2), /* ATAPI data dir: 309 ATAPI_DMADIR = (1 << 2), /* ATAPI data dir: