aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 5ad50163c8ef..6fe5ed8eabf5 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -155,6 +155,7 @@ enum {
155 155
156 ATA_FLAG_EH_PENDING = (1 << 16), /* EH pending */ 156 ATA_FLAG_EH_PENDING = (1 << 16), /* EH pending */
157 ATA_FLAG_FROZEN = (1 << 17), /* port is frozen */ 157 ATA_FLAG_FROZEN = (1 << 17), /* port is frozen */
158 ATA_FLAG_RECOVERED = (1 << 18), /* recovery action performed */
158 159
159 ATA_FLAG_DISABLED = (1 << 22), /* port is disabled, ignore it */ 160 ATA_FLAG_DISABLED = (1 << 22), /* port is disabled, ignore it */
160 ATA_FLAG_SUSPENDED = (1 << 23), /* port is suspended (power) */ 161 ATA_FLAG_SUSPENDED = (1 << 23), /* port is suspended (power) */
@@ -225,6 +226,13 @@ enum {
225 ATA_PORT_PRIMARY = (1 << 0), 226 ATA_PORT_PRIMARY = (1 << 0),
226 ATA_PORT_SECONDARY = (1 << 1), 227 ATA_PORT_SECONDARY = (1 << 1),
227 228
229 /* reset / recovery action types */
230 ATA_EH_REVALIDATE = (1 << 0),
231 ATA_EH_SOFTRESET = (1 << 1),
232 ATA_EH_HARDRESET = (1 << 2),
233
234 ATA_EH_RESET_MASK = ATA_EH_SOFTRESET | ATA_EH_HARDRESET,
235
228 /* max repeat if error condition is still set after ->error_handler */ 236 /* max repeat if error condition is still set after ->error_handler */
229 ATA_EH_MAX_REPEAT = 5, 237 ATA_EH_MAX_REPEAT = 5,
230 238