summaryrefslogtreecommitdiff
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2012-06-25 16:13:08 +0800
committerJeff Garzik <jgarzik@redhat.com>2012-06-29 11:38:17 -0400
commitb1354cbb5bfce28f2e1ed28d77b362dfdfca638d (patch)
tree0784fe570bc70663207f56a214f0ff529962bdc6 /include/linux/libata.h
parenta606dac368eed5696fb38e16b1394f1d049c09e9 (diff)
downloadlinux-rpi-b1354cbb5bfce28f2e1ed28d77b362dfdfca638d.tar.gz
linux-rpi-b1354cbb5bfce28f2e1ed28d77b362dfdfca638d.tar.bz2
linux-rpi-b1354cbb5bfce28f2e1ed28d77b362dfdfca638d.zip
libata: detect Device Attention support
Add a new flag ATA_DFLAG_DA to indicate that device supports "Device Attention". Acked-by: Aaron Lu <aaron.lu@amd.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 888feef3cda4..cc22b943db83 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -161,6 +161,8 @@ enum {
ATA_DFLAG_DETACH = (1 << 24),
ATA_DFLAG_DETACHED = (1 << 25),
+ ATA_DFLAG_DA = (1 << 26), /* device supports Device Attention */
+
ATA_DEV_UNKNOWN = 0, /* unknown device */
ATA_DEV_ATA = 1, /* ATA device */
ATA_DEV_ATA_UNSUP = 2, /* ATA device (unsupported) */