Add constants and flags to be used by EH. Signed-off-by: Tejun Heo <htejun@xxxxxxxxx> --- include/linux/ata.h | 11 +++++++++++ include/linux/libata.h | 5 +++++ 2 files changed, 16 insertions(+), 0 deletions(-) 27f8a9a882a40d389aaeea10e03594e8c41911d6 diff --git a/include/linux/ata.h b/include/linux/ata.h index 312a2c0..283138f 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -97,6 +97,9 @@ enum { ATA_DRQ = (1 << 3), /* data request i/o */ ATA_ERR = (1 << 0), /* have an error */ ATA_SRST = (1 << 2), /* software reset */ + ATA_ICRC = (1 << 7), /* interface CRC error */ + ATA_UNC = (1 << 6), /* uncorrectable media error */ + ATA_IDNF = (1 << 4), /* ID not found */ ATA_ABORTED = (1 << 2), /* command aborted */ /* ATA command block registers */ @@ -192,6 +195,14 @@ enum { SCR_ACTIVE = 3, SCR_NOTIFICATION = 4, + /* SError bits */ + SERR_DATA_RECOVERED = (1 << 0), /* recovered data error */ + SERR_COMM_RECOVERED = (1 << 1), /* recovered comm failure */ + SERR_DATA = (1 << 8), /* unrecovered data error */ + SERR_PERSISTENT = (1 << 9), /* persistent data/comm error */ + SERR_PROTOCOL = (1 << 10), /* protocol violation */ + SERR_INTERNAL = (1 << 11), /* host internal error */ + /* struct ata_taskfile flags */ ATA_TFLAG_LBA48 = (1 << 0), /* enable 48-bit LBA and "HOB" */ ATA_TFLAG_ISADDR = (1 << 1), /* enable r/w to nsect/lba regs */ diff --git a/include/linux/libata.h b/include/linux/libata.h index 0ac5214..58ad515 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -222,6 +222,11 @@ enum { ATA_PORT_PRIMARY = (1 << 0), ATA_PORT_SECONDARY = (1 << 1), + /* reset / recovery action types */ + ATA_PORT_REVALIDATE = (1 << 0), + ATA_PORT_SOFTRESET = (1 << 1), + ATA_PORT_HARDRESET = (1 << 2), + /* flags for ata_eh_shduled_port */ ATA_EH_ABORT = (1 << 0), /* abort all active commands */ ATA_EH_FREEZE = (1 << 1), /* freeze port (implies ABORT) */ -- 1.2.4 - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html