📄 scsidefs.h
字号:
#define DTYPE_SEQD 0x01 // Tape Device
#define DTYPE_PRNT 0x02 // Printer
#define DTYPE_PROC 0x03 // Processor
#define DTYPE_WORM 0x04 // Write-once read-multiple
#define DTYPE_CROM 0x05 // CD-ROM device
#define DTYPE_SCAN 0x06 // Scanner device
#define DTYPE_OPTI 0x07 // Optical memory device
#define DTYPE_JUKE 0x08 // Medium Changer device
#define DTYPE_COMM 0x09 // Communications device
#define DTYPE_RESL 0x0A // Reserved (low)
#define DTYPE_RESH 0x1E // Reserved (high)
#define DTYPE_UNKNOWN 0x1F // Unknown or no device type
//***************************************************************************
// %%% ANSI APPROVED VERSION DEFINITIONS %%%
//***************************************************************************
#define ANSI_MAYBE 0x0 // Device may or may not be ANSI approved stand
#define ANSI_SCSI1 0x1 // Device complies to ANSI X3.131-1986 (SCSI-1)
#define ANSI_SCSI2 0x2 // Device complies to SCSI-2
#define ANSI_RESLO 0x3 // Reserved (low)
#define ANSI_RESHI 0x7 // Reserved (high)
//***************************************************************************
// %%% ADDITIONAL SENSE CODE & ADDITIONAL SENSE CODE QUALIFIER %%%
//***************************************************************************
#define ASC_NOINFO 0x00 //No information available
#define ASQ_NOINFO 0x00 //
#define ASC_FILMRK 0x00 //Filemark detected
#define ASQ_FILMRK 0x01 //
#define ASC_EOM 0x00 //End Of Medium
#define ASQ_EOM 0x02 //
#define ASC_SETMRK 0x00 //Setmark detected
#define ASQ_SETMRK 0x03 //
#define ASC_BOM 0x00 //Begin Of Medium
#define ASQ_BOM 0x04 //
#define ASC_EOD 0x00 //End Of Data
#define ASQ_EOD 0x05 //
#define ASC_IOTERM 0x00 //I/O-Process Terminated
#define ASQ_IOTERM 0x06 //
#define ASC_PWRTFLT 0x03 //Peripheral Write Fault
#define ASQ_PWRTFLT 0x00 //
#define ASC_NOWRT 0x03 //No Write Current
#define ASQ_NOWRT 0x01 //
#define ASC_EWRTERR 0x03 //Excessive Write Errors
#define ASQ_EWRTERR 0x02 //
#define ASC_LUNNRDNC 0x04 //LUN not Ready, cause not reportable
#define ASQ_LUNNRDNC 0x00 //
#define ASC_LUNBRD 0x04 //LUN is becoming Ready
#define ASQ_LUNBRD 0x01 //
#define ASC_LUNNRDIR 0x04 //LUN not Ready, Init required
#define ASQ_LUNNRDIR 0x02 //
#define ASC_LUNNRDMI 0x04 //LUN not Ready, manual Intervention required
#define ASQ_LUNNRDMI 0x03 //
#define ASC_LUNNRDFP 0x04 //LUN not Ready, Format in progress
#define ASQ_LUNNRDFP 0x04 //
#define ASC_LUNNSEL 0x05 //LUN does not respond to Select
#define ASQ_LUNNSEL 0x00 //
#define ASC_MULTSEL 0x07 //Multiple Peripheral Devices selected
#define ASQ_MULTSEL 0x00 //
#define ASC_LUNCFAIL 0x08 //LUN Communication Failure
#define ASQ_LUNCFAIL 0x00 //
#define ASC_LUNCTIME 0x08 //LUN Communication Timeout
#define ASQ_LUNCTIME 0x01 //
#define ASC_LUNCPAR 0x08 //LUN Communication Parity Error
#define ASQ_LUNCPAR 0x02 //
#define ASC_TRKFOLOW 0x09 //Track following Error
#define ASQ_TRKFOLOW 0x00 //
#define ASC_LOGOVER 0x0A //Error Log Overflow
#define ASQ_LOGOVER 0x00 //
#define ASC_WRITE 0x0C //Write Error
#define ASQ_WRITE 0x00 //
#define ASC_URREAD 0x11 //Unrecovered Read Error
#define ASQ_URREAD 0x00 //
#define ASC_RDRETRY 0x11 //Read Retries Exhausted
#define ASQ_RDRETRY 0x01 //
#define ASC_TOOLONG 0x11 //Error too long to correct
#define ASQ_TOOLONG 0x02 //
#define ASC_MULREAD 0x11 //Multiple Read Errors
#define ASQ_MULREAD 0x03 //
#define ASC_IBLKRD 0x11 //Incomplete Block Read
#define ASQ_IBLKRD 0x08 //
#define ASC_NOGAP 0x11 //No Gap Found
#define ASQ_NOGAP 0x09 //
#define ASC_MISCORR 0x11 //Miscorrected Error
#define ASQ_MISCORR 0x0A //
#define ASC_RECENTI 0x14 //Recorded Entity not found
#define ASQ_RECENTI 0x00 //
#define ASC_RECORD 0x14 //Record not found
#define ASQ_RECORD 0x01 //
#define ASC_FILESET 0x14 //File- or SetMark not found
#define ASQ_FILESET 0x02 //
#define ASC_NOEOD 0x14 //End Of Data not found
#define ASQ_NOEOD 0x03 //
#define ASC_BLKSEQ 0x14 //Block Sequence Error
#define ASQ_BLKSEQ 0x04 //
#define ASC_RNDPOS 0x15 //Random Positioning Error
#define ASQ_RNDPOS 0x00 //
#define ASC_MECHPOS 0x15 //Mechanical Positioning Error
#define ASQ_MECHPOS 0x01 //
#define ASC_RDPOSE 0x15 //Positioning Error detected by Read
#define ASQ_RDPOSE 0x02 //
#define ASC_RECDNEC 0x17 //Recovered Data With No Error Correction Applied
#define ASQ_RECDNEC 0x00 //
#define ASC_RECDRET 0x17 //Recovered Data With Retries
#define ASQ_RECDRET 0x01 //
#define ASC_RECDPHO 0x17 //Recovered Data With Positive Head Offset
#define ASQ_RECDPHO 0x02 //
#define ASC_RECDNHO 0x17 //Recovered Data With Negative Head Offset
#define ASQ_RECDNHO 0x03 //
#define ASC_RECDWEC 0x18 //Recovered Data With Error Correction Applied
#define ASQ_RECDWEC 0x00 //
#define ASC_PARLLEN 0x1A //Parameter List Length Error
#define ASQ_PARLLEN 0x00 //
#define ASC_SYNCERR 0x1B //Synchronous Data Transfer Error
#define ASQ_SYNCERR 0x00 //
#define ASC_INVCOC 0x20 //Invalid Command Operation Code
#define ASQ_INVCOC 0x00 //
#define ASC_LBARNG 0x21 //Logical Block Address Out Of Range
#define ASQ_LBARNG 0x00 //
#define ASC_INVFCDB 0x24 //Invalid Field In Cdb
#define ASQ_INVFCDB 0x00 //
#define ASC_NOLOGUN 0x25 //Logical Unit Not Supported
#define ASQ_NOLOGUN 0x00 //
#define ASC_INVFPL 0x26 //Invalid Field In Parameter List
#define ASQ_INVFPL 0x00 //
#define ASC_PARNSUP 0x26 //Parameter Not Supported
#define ASQ_PARNSUP 0x01 //
#define ASC_PARVINV 0x26 //Parameter Value Invalid
#define ASQ_PARVINV 0x02 //
#define ASC_NTHRPAR 0x26 //Threshold Parameters Not Supported
#define ASQ_NTHRPAR 0x03 //
#define ASC_WRTPROT 0x27 //Write Protected
#define ASQ_WRTPROT 0x00 //
#define ASC_NRDYRDY 0x28 //Not Ready To Ready Transition(Medium May Have Changed)
#define ASQ_NRDYRDY 0x00 //
#define ASC_POWRON 0x29 //Power On, Reset, Or Bus Device Reset Occurred
#define ASQ_POWRON 0x00 //
#define ASC_PARCHN 0x2A //Parameters Changed
#define ASQ_PARCHN 0x00 //
#define ASC_MPARCHN 0x2A //Mode Parameters Changed
#define ASQ_MPARCHN 0x01 //
#define ASC_LPARCHN 0x2A //Log Parameters Changed
#define ASQ_LPARCHN 0x02 //
#define ASC_NCPYDIS 0x2B //Copy Cannot Execute Since Host Cannot Disconnect
#define ASQ_NCPYDIS 0x00 //
#define ASC_CMDSEQ 0x2C //Command Sequence Error
#define ASQ_CMDSEQ 0x00 //
#define ASC_CMDCLR 0x2F //Commands Cleared By Another Initiator
#define ASQ_CMDCLR 0x00 //
#define ASC_INCPMED 0x30 //Incompatible Medium Installed
#define ASQ_INCPMED 0x00 //
#define ASC_CANTRDU 0x30 //Cannot Read Medium - Unknown Format
#define ASQ_CANTRDU 0x01 //
#define ASC_CANTRDI 0x30 //Cannot Read Medium - Incompatible Format
#define ASQ_CANTRDI 0x02 //
#define ASC_CLNCARD 0x30 //Cleaning Cartridge Installed
#define ASQ_CLNCARD 0x03 //
#define ASC_MFRMCRP 0x31 //Medium Format Corrupted
#define ASQ_MFRMCRP 0x00 //
#define ASC_TAPELEN 0x33 //Tape Length Error
#define ASQ_TAPELEN 0x00 //
#define ASC_RNDPAR 0x37 //Rounded Parameter
#define ASQ_RNDPAR 0x00 //
#define ASC_SAVPAR 0x39 //Saving Parameters Not Supported
#define ASQ_SAVPAR 0x00 //
#define ASC_NOTAPE 0x3A //No Tape In Drive
#define ASQ_NOTAPE 0x00 //
#define ASC_SEQPOS 0x3B //Sequential Positioning Error
#define ASQ_SEQPOS 0x00 //
#define ASC_POSBOM 0x3B //Tape Position Error At Beginning-of-medium
#define ASQ_POSBOM 0x01 //
#define ASC_POSEOM 0x3B //Tape Position Error At End-of-medium
#define ASQ_POSEOM 0x02 //
#define ASC_REPOS 0x3B //Reposition Error
#define ASQ_REPOS 0x08 //
#define ASC_INVBITS 0x3D //Invalid Bits In Identify Message
#define ASQ_INVBITS 0x00 //
#define ASC_LUNSCFG 0x3E //Logical Unit Has Not Self-configured Yet
#define ASQ_LUNSCFG 0x00 //
#define ASC_TRGOCHG 0x3F //Target Operating Conditions Have Changed
#define ASQ_TRGOCHG 0x00 //
#define ASC_CHGUC 0x3F //Microcode Has Been Changed
#define ASQ_CHGUC 0x01 //
#define ASC_CHGOD 0x3F //Changed Operating Definition
#define ASQ_CHGOD 0x02 //
#define ASC_CHGINQ 0x3F //Inquiry Data Has Changed
#define ASQ_CHGINQ 0x03 //
#define ASC_DGFAIL 0x40 //Diagnostic Failure On Component Nn (80h-ffh)
#define ASQ_DGFAIL 0x80 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#define ASC_MSGERR 0x43 //Message Error
#define ASQ_MSGERR 0x00 //
#define ASC_INTTRGF 0x44 //Internal Target Failure
#define ASQ_INTTRGF 0x00 //
#define ASC_SELRESF 0x45 //Select Or Reselect Failure
#define ASQ_SELRESF 0x00 //
#define ASC_SFTRSTF 0x46 //Unsuccessful Soft Reset
#define ASQ_SFTRSTF 0x00 //
#define ASC_PARITY 0x47 //Scsi Parity Error
#define ASQ_PARITY 0x00 //
#define ASC_INDEMSG 0x48 //Initiator Detected Error Message Received
#define ASQ_INDEMSG 0x00 //
#define ASC_INVMSGE 0x49 //Invalid Message Error
#define ASQ_INVMSGE 0x00 //
#define ASC_CMDPHSE 0x4A //Command Phase Error
#define ASQ_CMDPHSE 0x00 //
#define ASC_DATPHSE 0x4B //Data Phase Error
#define ASQ_DATPHSE 0x00 //
#define ASC_LGUFSLF 0x4C //Logical Unit Failed Self-configuration
#define ASQ_LGUFSLF 0x00 //
#define ASC_OVRCMD 0x4E //Overlapped Commands Attempted
#define ASQ_OVRCMD 0x00 //
#define ASC_WRTAPE 0x50 //Write Append Error
#define ASQ_WRTAPE 0x00 //
#define ASC_WRTAPSE 0x50 //Write Append Position Error
#define ASQ_WRTAPSE 0x01 //
#define ASC_POSETIM 0x50 //Position Error Related To Timing
#define ASQ_POSETIM 0x02 //
#define ASC_ERSFAIL 0x51 //Erase Failure
#define ASQ_ERSFAIL 0x00 //
#define ASC_CRDFAIL 0x52 //Cartridge Fault
#define ASQ_CRDFAIL 0x00 //
#define ASC_MDLFAIL 0x53 //Media Load Or Eject Failed
#define ASQ_MDLFAIL 0x00 //
#define ASC_UNTAPF 0x53 //Unload Tape Failure
#define ASQ_UNTAPF 0x01 //
#define ASC_MDRMPRV 0x53 //Medium Removal Prevented
#define ASQ_MDRMPRV 0x02 //
#define ASC_OPERREQ 0x5A //Operator Request Or State Change Input (Unspecified)
#define ASQ_OPERREQ 0x00 //
#define ASC_OPERMRR 0x5A //Operator Medium Removal Request
#define ASQ_OPERMRR 0x01 //
#define ASC_OPERSWP 0x5A //Operator Selected Write Protect
#define ASQ_OPERSWP 0x02 //
#define ASC_OPERSWE 0x5A //Operator Selected Write Permit
#define ASQ_OPERSWE 0x03 //
#define ASC_LOGTRAP 0x5B //Log Exception
#define ASQ_LOGTRAP 0x00 //
#define ASC_THRCND 0x5B //Threshold Condition Met
#define ASQ_THRCND 0x01 //
#define ASC_LGCNTMX 0x5B //Log Counter At Maximum
#define ASQ_LGCNTMX 0x02 //
#define ASC_LGLSCDE 0x5B //Log List Codes Exhausted
#define ASQ_LGLSCDE 0x03 //
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -