aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2025-10-21 13:35:32 +0000
committerWarner Losh <imp@FreeBSD.org>2025-10-21 13:36:55 +0000
commite29f81c2adc1fbe970fa5da8cc3dd6d300c76d7b (patch)
tree8d9dd06a5e12b4f13f8f09b73001f953ddbf29b2
parent37ad1beaf516854d5e59b90a9706b09d02cc2a81 (diff)
ata: Add error bits
Add notes for other bits that we don't use in the code for error status. We report these when there's an error, and this allows people decoding it to not have to chase down these bits from the standard. Sponsored by: Netflix
-rw-r--r--sys/sys/ata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/ata.h b/sys/sys/ata.h
index 5e9c2bcb9aa0..9ce822214f6d 100644
--- a/sys/sys/ata.h
+++ b/sys/sys/ata.h
@@ -347,8 +347,11 @@ struct ata_params {
#define ATA_STATUS_BUSY 0x80
/* ATA Error Register */
+/* COMMAND TIMEOUT 0x01 */
#define ATA_ERROR_ABORT 0x04
#define ATA_ERROR_ID_NOT_FOUND 0x10
+/* UNCORRECTABLE ERROR 0x40 */
+/* INTERFACE CRC 0x80 */
/* ATA HPA Features */
#define ATA_HPA_FEAT_MAX_ADDR 0x00