From: Tejun Heo <htejun@gmail.com>
To: jgarzik@pobox.com, alan@lxorguk.ukuu.org.uk, albertcc@tw.ibm.com,
linux-ide@vger.kernel.org
Cc: Tejun Heo <htejun@gmail.com>
Subject: [PATCH] libata: add constants and flags to be used by EH
Date: Mon, 3 Apr 2006 12:40:57 +0900 [thread overview]
Message-ID: <11440356571647-git-send-email-htejun@gmail.com> (raw)
In-Reply-To: <11440356574107-git-send-email-htejun@gmail.com>
Add constants and flags to be used by EH.
Signed-off-by: Tejun Heo <htejun@gmail.com>
---
include/linux/ata.h | 11 +++++++++++
include/linux/libata.h | 5 +++++
2 files changed, 16 insertions(+), 0 deletions(-)
4aea2da11e6a1d39b417af71e881601cbb19387f
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 c65cda9..19d3ecc 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -223,6 +223,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
next prev parent reply other threads:[~2006-04-03 3:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-03 3:40 [PATCHSET] new EH implementation Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: implement ata_ering Tejun Heo
2006-04-03 3:40 ` Tejun Heo [this message]
2006-04-03 3:40 ` [PATCH] libata: implement ata_eh_revive() Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: implement ata_eh_autopsy() Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: implement EH utility functions Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: add per-dev ata_ering Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: implement ata_eh_finish_qcs() Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: implement EH methods for BMDMA controllers Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: implement ata_eh_report() Tejun Heo
2006-04-03 3:40 ` [PATCH] libata: implement ata_eh_determine_qc() Tejun Heo
2006-04-03 3:40 ` [PATCH] ata_piix: convert to new EH Tejun Heo
2006-04-03 3:40 ` [PATCH] ahci: " Tejun Heo
2006-04-03 3:40 ` [PATCH] sata_sil: " Tejun Heo
2006-04-03 3:43 ` [PATCHSET] new EH implementation Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11440356571647-git-send-email-htejun@gmail.com \
--to=htejun@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=albertcc@tw.ibm.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).