Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Synchronise with <ftp://ftp.t10.org/t10/draft...



details:   https://anonhg.NetBSD.org/src/rev/0823157320ce
branches:  trunk
changeset: 555893:0823157320ce
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Wed Dec 03 23:20:53 2003 +0000

description:
Synchronise with <ftp://ftp.t10.org/t10/drafts/spc3/asc-num.txt>:

SCSI ASC/ASCQ Assignments
Numeric Sorted Listing
as of  9/12/03

diffstat:

 sys/dev/scsipi/scsipi_verbose.c |  350 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 337 insertions(+), 13 deletions(-)

diffs (truncated from 530 to 300 lines):

diff -r a756fd7d6797 -r 0823157320ce sys/dev/scsipi/scsipi_verbose.c
--- a/sys/dev/scsipi/scsipi_verbose.c   Wed Dec 03 22:25:46 2003 +0000
+++ b/sys/dev/scsipi/scsipi_verbose.c   Wed Dec 03 23:20:53 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipi_verbose.c,v 1.17 2003/10/22 00:35:41 mycroft Exp $      */
+/*     $NetBSD: scsipi_verbose.c,v 1.18 2003/12/03 23:20:53 bjh21 Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsipi_verbose.c,v 1.17 2003/10/22 00:35:41 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsipi_verbose.c,v 1.18 2003/12/03 23:20:53 bjh21 Exp $");
 
 #include <sys/param.h>
 #include <sys/time.h>
@@ -74,6 +74,11 @@
        "Reserved"
 };
 
+/*
+ * The current version of this list can be obtained from
+ * <ftp://ftp.t10.org/t10/drafts/spc3/asc-num.txt>
+ */
+
 static const struct {
        unsigned char asc;
        unsigned char ascq;
@@ -91,6 +96,13 @@
 { 0x00, 0x13, "Audio Play Operation Successfully Completed" },
 { 0x00, 0x14, "Audio Play Operation Stopped Due to Error" },
 { 0x00, 0x15, "No Current Audio Status To Return" },
+{ 0x00, 0x16, "Operation In Progress" },
+{ 0x00, 0x17, "Cleaning Requested" },
+{ 0x00, 0x18, "Erase Operation In Progress" },
+{ 0x00, 0x19, "Locate Operation In Progress" },
+{ 0x00, 0x1A, "Rewind Operation In Progress" },
+{ 0x00, 0x1B, "Set Capacity Operation In Progess" },
+{ 0x00, 0x1C, "Verify Operation In Progress" },
 { 0x01, 0x00, "No Index/Sector Signal" },
 { 0x02, 0x00, "No Seek Complete" },
 { 0x03, 0x00, "Peripheral Device Write Fault" },
@@ -101,6 +113,17 @@
 { 0x04, 0x02, "Logical Unit Not Ready, Initialization Command Required" },
 { 0x04, 0x03, "Logical Unit Not Ready, Manual Intervention Required" },
 { 0x04, 0x04, "Logical Unit Not Ready, Format In Progress" },
+{ 0x04, 0x05, "Logical Unit Not Ready, Rebuild In Progress" },
+{ 0x04, 0x06, "Logical Unit Not Ready, Recalculation In Progress" },
+{ 0x04, 0x07, "Logical Unit Not Ready, Operation In Progress" },
+{ 0x04, 0x08, "Logical Unit Not Ready, Long Write In Progress" },
+{ 0x04, 0x09, "Logical Unit Not Ready, Self-Test In Progress" },
+{ 0x04, 0x0A, "Logical Unit Not Accessible, Asymmetric Access State "
+                                                               "Transition" },
+{ 0x04, 0x0B, "Logical Unit Not Accessible, Target Port In Standby State" },
+{ 0x04, 0x0C, "Logical Unit Not Accessible, Target Port In Unavailable State" },
+{ 0x04, 0x10, "Logical Unit Not Ready, Auxiliary Memory Not Accessible" },
+{ 0x04, 0x11, "Logical Unit Not Ready, Notify (Enable_Spinup) Required" },
 { 0x05, 0x00, "Logical Unit Does Not Respond To Selection" },
 { 0x06, 0x00, "No Reference Position Found" },
 { 0x07, 0x00, "Multiple Peripheral Devices Selected" },
@@ -108,28 +131,60 @@
 { 0x08, 0x01, "Logical Unit Communication Timeout" },
 { 0x08, 0x02, "Logical Unit Communication Parity Error" },
 { 0x08, 0x03, "Logical Unit Communication CRC Error" },
+{ 0x08, 0x04, "Unreachable Copy Target" },
 { 0x09, 0x00, "Track Following Error" },
 { 0x09, 0x01, "Tracking Servo Failure" },
 { 0x09, 0x02, "Focus Servo Failure" },
 { 0x09, 0x03, "Spindle Servo Failure" },
+{ 0x09, 0x04, "Head Select Fault" },
 { 0x0A, 0x00, "Error Log Overflow" },
+{ 0x0B, 0x00, "Warning" },
+{ 0x0B, 0x01, "Warning - Specified Temperature Exceeded" },
+{ 0x0B, 0x02, "Warning - Enclosure Degraded" },
 { 0x0C, 0x00, "Write Error" },
-{ 0x0C, 0x01, "Write Error Recovered with Auto Reallocation" },
+{ 0x0C, 0x01, "Write Error - Recovered with Auto Reallocation" },
 { 0x0C, 0x02, "Write Error - Auto Reallocate Failed" },
+{ 0x0C, 0x03, "Write Error - Recommend Reassignment" },
+{ 0x0C, 0x04, "Compression Check Miscompare Error" },
+{ 0x0C, 0x05, "Data Expansion Occurred During Compression" },
+{ 0x0C, 0x06, "Block Not Compressible" },
+{ 0x0C, 0x07, "Write Error - Recovery Needed" },
+{ 0x0C, 0x08, "Write Error - Recovery Failed" },
+{ 0x0C, 0x09, "Write Error - Loss Of Streaming" },
+{ 0x0C, 0x0A, "Write Error - Padding Blocks Added" },
+{ 0x0C, 0x0B, "Auxiliary Memory Write Error" },
+{ 0x0C, 0x0C, "Write Error - Unexpected Unsolicited Data" },
+{ 0x0C, 0x0D, "Write Error - Not Enough Unsolicited Data" },
+{ 0x0D, 0x00, "Error Detected By Third Party Temporary Initiator" },
+{ 0x0D, 0x01, "Third Party Device Failure" },
+{ 0x0D, 0x02, "Copy Target Device Not Reachable" },
+{ 0x0D, 0x03, "Incorrect Copy Target Device Type" },
+{ 0x0D, 0x04, "Copy Target Device Data Underrun" },
+{ 0x0D, 0x05, "Copy Target Device Data Overrun" },
+{ 0x0E, 0x00, "Invalid Information Unit" },
+{ 0x0E, 0x01, "Information Unit Too Short" },
+{ 0x0E, 0x02, "Information Unit Too Long" },
 { 0x10, 0x00, "ID CRC Or ECC Error" },
 { 0x11, 0x00, "Unrecovered Read Error" },
-{ 0x11, 0x01, "Read Retried Exhausted" },
+{ 0x11, 0x01, "Read Retries Exhausted" },
 { 0x11, 0x02, "Error Too Long To Correct" },
 { 0x11, 0x03, "Multiple Read Errors" },
 { 0x11, 0x04, "Unrecovered Read Error - Auto Reallocate Failed" },
 { 0x11, 0x05, "L-EC Uncorrectable Error" },
 { 0x11, 0x06, "CIRC Unrecovered Error" },
-{ 0x11, 0x07, "Data Resynchronization Error" },
-{ 0x11, 0x08, "Incomplete Block Found" },
+{ 0x11, 0x07, "Data Re-synchronization Error" },
+{ 0x11, 0x08, "Incomplete Block Read" },
 { 0x11, 0x09, "No Gap Found" },
 { 0x11, 0x0A, "Miscorrected Error" },
 { 0x11, 0x0B, "Uncorrected Read Error - Recommend Reassignment" },
 { 0x11, 0x0C, "Uncorrected Read Error - Recommend Rewrite the Data" },
+{ 0x11, 0x0D, "De-Compression CRC Error" },
+{ 0x11, 0x0E, "Cannot Decompress Using Declared Algorithm" },
+{ 0x11, 0x0F, "Error Reading UPC/EAN Number" },
+{ 0x11, 0x10, "Error Reading ISRC Number" },
+{ 0x11, 0x11, "Read Error - Loss Of Streaming" },
+{ 0x11, 0x12, "Auxiliary Memory Read Error" },
+{ 0x11, 0x13, "Read Error - Failed Retransmission Request" },
 { 0x12, 0x00, "Address Mark Not Found for ID Field" },
 { 0x13, 0x00, "Address Mark Not Found for Data Field" },
 { 0x14, 0x00, "Recorded Entity Not Found" },
@@ -137,10 +192,17 @@
 { 0x14, 0x02, "Filemark or Setmark Not Found" },
 { 0x14, 0x03, "End-Of-Data Not Found" },
 { 0x14, 0x04, "Block Sequence Error" },
+{ 0x14, 0x05, "Record Not Found - Recommend Reassignment" },
+{ 0x14, 0x06, "Record Not Found - Data Auto-Reallocated" },
+{ 0x14, 0x07, "Locate Operation Failure" },
 { 0x15, 0x00, "Random Positioning Error" },
 { 0x15, 0x01, "Mechanical Positioning Error" },
 { 0x15, 0x02, "Positioning Error Detected By Read of Medium" },
 { 0x16, 0x00, "Data Synchronization Mark Error" },
+{ 0x16, 0x01, "Data Sync Error - Data Rewritten" },
+{ 0x16, 0x02, "Data Sync Error - Recommend Rewrite" },
+{ 0x16, 0x03, "Data Sync Error - Data Auto-Reallocated" },
+{ 0x16, 0x04, "Data Sync Error - Recommend Reassignment" },
 { 0x17, 0x00, "Recovered Data With No Error Correction Applied" },
 { 0x17, 0x01, "Recovered Data With Retries" },
 { 0x17, 0x02, "Recovered Data With Positive Head Offset" },
@@ -150,6 +212,7 @@
 { 0x17, 0x06, "Recovered Data Without ECC - Data Auto-Reallocated" },
 { 0x17, 0x07, "Recovered Data Without ECC - Recommend Reassignment" },
 { 0x17, 0x08, "Recovered Data Without ECC - Recommend Rewrite" },
+{ 0x17, 0x09, "Recovered Data Without ECC - Data Rewritten" },
 { 0x18, 0x00, "Recovered Data With Error Correction Applied" },
 { 0x18, 0x01, "Recovered Data With Error Correction & Retries Applied" },
 { 0x18, 0x02, "Recovered Data - Data Auto-Reallocated" },
@@ -157,6 +220,8 @@
 { 0x18, 0x04, "Recovered Data With LEC" },
 { 0x18, 0x05, "Recovered Data - Recommend Reassignment" },
 { 0x18, 0x06, "Recovered Data - Recommend Rewrite" },
+{ 0x18, 0x07, "Recovered Data With ECC - Data Rewritten" },
+{ 0x18, 0x08, "Recovered Data With Linking" },
 { 0x19, 0x00, "Defect List Error" },
 { 0x19, 0x01, "Defect List Not Available" },
 { 0x19, 0x02, "Defect List Error in Primary List" },
@@ -167,48 +232,122 @@
 { 0x1C, 0x01, "Primary Defect List Not Found" },
 { 0x1C, 0x02, "Grown Defect List Not Found" },
 { 0x1D, 0x00, "Miscompare During Verify Operation" },
-{ 0x1E, 0x00, "Recovered ID with ECC" },
+{ 0x1E, 0x00, "Recovered ID with ECC Correction" },
+{ 0x1F, 0x00, "Partial Defect List Transfer" },
 { 0x20, 0x00, "Invalid Command Operation Code" },
+{ 0x20, 0x01, "Access Denied - Initiator Pending-Enrolled" },
+{ 0x20, 0x02, "Access Denied - No Access Rights" },
+{ 0x20, 0x03, "Access Denied - Invalid Mgmt ID Key" },
+{ 0x20, 0x04, "Illegal Command While In Write Capable State" },
+{ 0x20, 0x06, "Illegal Command While In Explicit Address Mode" },
+{ 0x20, 0x07, "Illegal Command While In Implicit Address Mode" },
+{ 0x20, 0x08, "Access Denied - Enrollment Conflict" },
+{ 0x20, 0x09, "Access Denied - Invalid LU Identifer" },
+{ 0x20, 0x0A, "Access Denied - Invalid Proxy Token" },
+{ 0x20, 0x0B, "Access Denied - ACL LUN Conflict" },
 { 0x21, 0x00, "Logical Block Address Out of Range" },
 { 0x21, 0x01, "Invalid Element Address" },
-{ 0x22, 0x00, "Illegal Function (Should 20 00, 24 00, or 26 00)" },
+{ 0x21, 0x02, "Invalid Address For Write" },
+{ 0x22, 0x00, "Illegal Function (Use 20 00, 24 00, or 26 00)" },
 { 0x24, 0x00, "Illegal Field in CDB" },
+{ 0x24, 0x01, "CDB Decryption Error" },
+{ 0x24, 0x04, "Security Audit Value Frozen" },
+{ 0x24, 0x05, "Security Working Key Frozen" },
+{ 0x24, 0x06, "Nonce Not Unique" },
+{ 0x24, 0x07, "Nonce Timestamp Out Of Range" },
 { 0x25, 0x00, "Logical Unit Not Supported" },
 { 0x26, 0x00, "Invalid Field In Parameter List" },
 { 0x26, 0x01, "Parameter Not Supported" },
 { 0x26, 0x02, "Parameter Value Invalid" },
 { 0x26, 0x03, "Threshold Parameters Not Supported" },
+{ 0x26, 0x04, "Invalid Release Of Persistent Reservation" },
+{ 0x26, 0x05, "Data Decryption Error" },
+{ 0x26, 0x06, "Too Many Target Descriptors" },
+{ 0x26, 0x07, "Unsupported Target Descriptor Type Code" },
+{ 0x26, 0x08, "Too Many Segment Descriptors" },
+{ 0x26, 0x09, "Unsupported Segment Descriptor Type Code" },
+{ 0x26, 0x0A, "Unexpected Inexact Segment" },
+{ 0x26, 0x0B, "Inline Data Length Exceeded" },
+{ 0x26, 0x0C, "Invalid Operation For Copy Source Or Destination" },
+{ 0x26, 0x0D, "Copy Segment Granularity Violation" },
+{ 0x26, 0x0E, "Invalid Parameter While Port Is Enabled" },
 { 0x27, 0x00, "Write Protected" },
+{ 0x27, 0x01, "Hardware Write Protected" },
+{ 0x27, 0x02, "Logical Unit Software Write Protected" },
+{ 0x27, 0x03, "Associated Write Protect" },
+{ 0x27, 0x04, "Persistent Write Protect" },
+{ 0x27, 0x05, "Permanent Write Protect" },
+{ 0x27, 0x06, "Conditional Write Protect" },
 { 0x28, 0x00, "Not Ready To Ready Transition (Medium May Have Changed)" },
 { 0x28, 0x01, "Import Or Export Element Accessed" },
 { 0x29, 0x00, "Power On, Reset, or Bus Device Reset Occurred" },
+{ 0x29, 0x01, "Power On Occurred" },
+{ 0x29, 0x02, "SCSI Bus Reset Occurred" },
+{ 0x29, 0x03, "Bus Device Reset Function Occurred" },
+{ 0x29, 0x04, "Device Internal Reset" },
+{ 0x29, 0x05, "Transceiver Mode Changed To Single-Ended" },
+{ 0x29, 0x06, "Transceiver Mode Changed To LVD" },
+{ 0x29, 0x07, "I_T Nexus Loss Occurred" },
 { 0x2A, 0x00, "Parameters Changed" },
 { 0x2A, 0x01, "Mode Parameters Changed" },
 { 0x2A, 0x02, "Log Parameters Changed" },
+{ 0x2A, 0x03, "Reservations Preempted" },
+{ 0x2A, 0x04, "Reservations Released" },
+{ 0x2A, 0x05, "Registrations Preempted" },
+{ 0x2A, 0x06, "Asymmetric Access State Changed" },
+{ 0x2A, 0x07, "Implicit Asymmetric Access State Transition Failed" },
 { 0x2B, 0x00, "Copy Cannot Execute Since Host Cannot Disconnect" },
 { 0x2C, 0x00, "Command Sequence Error" },
 { 0x2C, 0x01, "Too Many Windows Specified" },
 { 0x2C, 0x02, "Invalid Combination of Windows Specified" },
+{ 0x2C, 0x03, "Current Program Area Is Not Empty" },
+{ 0x2C, 0x04, "Current Program Area Is Empty" },
+{ 0x2C, 0x05, "Illegal Power Condition Request" },
+{ 0x2C, 0x06, "Persistent Prevent Conflict" },
+{ 0x2C, 0x07, "Previous Busy Status" },
+{ 0x2C, 0x08, "Previous Task Set Full Status" },
+{ 0x2C, 0x09, "Previous Reservation Conflict Status" },
+{ 0x2C, 0x0A, "Partition or Collection Contains User Objects" },
 { 0x2D, 0x00, "Overwrite Error On Update In Place" },
+{ 0x2E, 0x00, "Insufficient Time For Operation" },
 { 0x2F, 0x00, "Commands Cleared By Another Initiator" },
 { 0x30, 0x00, "Incompatible Medium Installed" },
 { 0x30, 0x01, "Cannot Read Medium - Unknown Format" },
 { 0x30, 0x02, "Cannot Read Medium - Incompatible Format" },
 { 0x30, 0x03, "Cleaning Cartridge Installed" },
+{ 0x30, 0x04, "Cannot Write Medium - Unknown Format" },
+{ 0x30, 0x05, "Cannot Write Medium - Incompatible Format" },
+{ 0x30, 0x06, "Cannot Format Medium - Incompatible Medium" },
+{ 0x30, 0x07, "Cleaning Failure" },
+{ 0x30, 0x08, "Cannot Write - Application Code Mismatch" },
+{ 0x30, 0x09, "Current Session Not Fixated For Append" },
+{ 0x30, 0x0A, "Cleaning Request Rejected" },
+{ 0x30, 0x10, "Medium Not Formatted" },
 { 0x31, 0x00, "Medium Format Corrupted" },
 { 0x31, 0x01, "Format Command Failed" },
+{ 0x31, 0x02, "Zoned Formatting Failed Due To Spare Linking" },
 { 0x32, 0x00, "No Defect Spare Location Available" },
 { 0x32, 0x01, "Defect List Update Failure" },
 { 0x33, 0x00, "Tape Length Error" },
+{ 0x34, 0x00, "Enclosure Failure" },
+{ 0x35, 0x00, "Enclosure Services Failure" },
+{ 0x35, 0x01, "Unsupported Enclosure Function" },
+{ 0x35, 0x02, "Enclosure Services Unavailable" },
+{ 0x35, 0x03, "Enclosure Services Transfer Failed" },
+{ 0x35, 0x04, "Enclosure Services Transfer Refused" },
 { 0x36, 0x00, "Ribbon, Ink, or Toner Failure" },
 { 0x37, 0x00, "Rounded Parameter" },
+{ 0x38, 0x00, "Event Status Notification" },
+{ 0x38, 0x02, "ESN - Power Management Class Event" },
+{ 0x38, 0x04, "ESN - Media Class Event" },
+{ 0x38, 0x06, "ESN - Device Busy Class Event" },
 { 0x39, 0x00, "Saving Parameters Not Supported" },
 { 0x3A, 0x00, "Medium Not Present" },
 { 0x3A, 0x01, "Medium Not Present - Tray Closed" },
 { 0x3A, 0x02, "Medium Not Present - Tray Open" },
 { 0x3A, 0x03, "Medium Not Present - Loadable" },
 { 0x3A, 0x04, "Medium Not Present - Medium Auxilliary Memory Accessible" },
-{ 0x3B, 0x00, "Positioning Error" },
+{ 0x3B, 0x00, "Sequential Positioning Error" },
 { 0x3B, 0x01, "Tape Position Error At Beginning-of-Medium" },
 { 0x3B, 0x02, "Tape Position Error At End-of-Medium" },
 { 0x3B, 0x03, "Tape or Electronic Vertical Forms Unit Not Ready" },
@@ -223,12 +362,37 @@
 { 0x3B, 0x0C, "Position Past Beginning Of Medium" },
 { 0x3B, 0x0D, "Medium Destination Element Full" },
 { 0x3B, 0x0E, "Medium Source Element Empty" },
+{ 0x3B, 0x0F, "End Of Medium Reached" },
+{ 0x3B, 0x11, "Medium Magazine Not Accessible" },
+{ 0x3B, 0x12, "Medium Magazine Removed" },
+{ 0x3B, 0x13, "Medium Magazine Inserted" },
+{ 0x3B, 0x14, "Medium Magazine Locked" },
+{ 0x3B, 0x15, "Medium Magazine Unlocked" },
+{ 0x3B, 0x16, "Mechanical Positioning Or Changer Error" },
 { 0x3D, 0x00, "Invalid Bits In IDENTIFY Message" },



Home | Main Index | Thread Index | Old Index