git: e29f81c2adc1 - main - ata: Add error bits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Oct 2025 13:44:29 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=e29f81c2adc1fbe970fa5da8cc3dd6d300c76d7b
commit e29f81c2adc1fbe970fa5da8cc3dd6d300c76d7b
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-10-21 13:35:32 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-10-21 13:36:55 +0000
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
---
sys/sys/ata.h | 3 +++
1 file changed, 3 insertions(+)
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