⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scsi_all.c

📁 基于组件方式开发操作系统的OSKIT源代码
💻 C
📖 第 1 页 / 共 5 页
字号:
			"Spindle servo failure") },/* DT  WR O     */{SST(0x09, 0x04, SS_DEF,			"Head select fault") },/* DTLPWRSOMCAE */{SST(0x0A, 0x00, SS_NEDEF|ENOSPC,			"Error log overflow") },/* DTLPWRSOMCAE */{SST(0x0B, 0x00, SS_DEF,			"Warning") },/* DTLPWRSOMCAE */{SST(0x0B, 0x01, SS_DEF,			"Specified temperature exceeded") },/* DTLPWRSOMCAE */{SST(0x0B, 0x02, SS_DEF,			"Enclosure degraded") },/*  T   RS      */{SST(0x0C, 0x00, SS_DEF,			"Write error") },/* D   W  O     */{SST(0x0C, 0x01, SS_NEDEF,			"Write error - recovered with auto reallocation") },/* D   W  O     */{SST(0x0C, 0x02, SS_DEF,			"Write error - auto reallocation failed") },/* D   W  O     */{SST(0x0C, 0x03, SS_DEF,			"Write error - recommend reassignment") },/* DT  W  O     */{SST(0x0C, 0x04, SS_NEPDEF,			"Compression check miscompare error") },/* DT  W  O     */{SST(0x0C, 0x05, SS_DEF,			"Data expansion occurred during compression") },/* DT  W  O     */{SST(0x0C, 0x06, SS_DEF,			"Block not compressible") },/*      R       */{SST(0x0C, 0x07, SS_DEF,			"Write error - recovery needed") },/*      R       */{SST(0x0C, 0x08, SS_DEF,			"Write error - recovery failed") },/*      R       */{SST(0x0C, 0x09, SS_DEF,			"Write error - loss of streaming") },/*      R       */{SST(0x0C, 0x0A, SS_DEF,			"Write error - padding blocks added") },/* D   W  O     */{SST(0x10, 0x00, SS_DEF,			"ID CRC or ECC error") },/* DT  WRSO     */{SST(0x11, 0x00, SS_DEF,			"Unrecovered read error") },/* DT  W SO     */{SST(0x11, 0x01, SS_DEF,			"Read retries exhausted") },/* DT  W SO     */{SST(0x11, 0x02, SS_DEF,			"Error too long to correct") },/* DT  W SO     */{SST(0x11, 0x03, SS_DEF,			"Multiple read errors") },/* D   W  O     */{SST(0x11, 0x04, SS_DEF,			"Unrecovered read error - auto reallocate failed") },/*     WR O     */{SST(0x11, 0x05, SS_DEF,			"L-EC uncorrectable error") },/*     WR O     */{SST(0x11, 0x06, SS_DEF,			"CIRC unrecovered error") },/*     W  O     */{SST(0x11, 0x07, SS_DEF,			"Data re-synchronization error") },/*  T           */{SST(0x11, 0x08, SS_DEF,			"Incomplete block read") },/*  T           */{SST(0x11, 0x09, SS_DEF,			"No gap found") },/* DT     O     */{SST(0x11, 0x0A, SS_DEF,			"Miscorrected error") },/* D   W  O     */{SST(0x11, 0x0B, SS_DEF,			"Unrecovered read error - recommend reassignment") },/* D   W  O     */{SST(0x11, 0x0C, SS_DEF,			"Unrecovered read error - recommend rewrite the data")},/* DT  WR O     */{SST(0x11, 0x0D, SS_DEF,			"De-compression CRC error") },/* DT  WR O     */{SST(0x11, 0x0E, SS_DEF,			"Cannot decompress using declared algorithm") },/*      R       */{SST(0x11, 0x0F, SS_DEF,			"Error reading UPC/EAN number") },/*      R       */{SST(0x11, 0x10, SS_DEF,			"Error reading ISRC number") },/*      R       */{SST(0x11, 0x11, SS_DEF,			"Read error - loss of streaming") },/* D   W  O     */{SST(0x12, 0x00, SS_DEF,			"Address mark not found for id field") },/* D   W  O     */{SST(0x13, 0x00, SS_DEF,			"Address mark not found for data field") },/* DTL WRSO     */{SST(0x14, 0x00, SS_DEF,			"Recorded entity not found") },/* DT  WR O     */{SST(0x14, 0x01, SS_DEF,			"Record not found") },/*  T           */{SST(0x14, 0x02, SS_DEF,			"Filemark or setmark not found") },/*  T           */{SST(0x14, 0x03, SS_DEF,			"End-of-data not found") },/*  T           */{SST(0x14, 0x04, SS_DEF,			"Block sequence error") },/* DT  W  O     */{SST(0x14, 0x05, SS_DEF,			"Record not found - recommend reassignment") },/* DT  W  O     */{SST(0x14, 0x06, SS_DEF,			"Record not found - data auto-reallocated") },/* DTL WRSOM    */{SST(0x15, 0x00, SS_DEF,			"Random positioning error") },/* DTL WRSOM    */{SST(0x15, 0x01, SS_DEF,			"Mechanical positioning error") },/* DT  WR O     */{SST(0x15, 0x02, SS_DEF,			"Positioning error detected by read of medium") },/* D   W  O     */{SST(0x16, 0x00, SS_DEF,			"Data synchronization mark error") },/* D   W  O     */{SST(0x16, 0x01, SS_DEF,			"Data sync error - data rewritten") },/* D   W  O     */{SST(0x16, 0x02, SS_DEF,			"Data sync error - recommend rewrite") },/* D   W  O     */{SST(0x16, 0x03, SS_NEDEF,			"Data sync error - data auto-reallocated") },/* D   W  O     */{SST(0x16, 0x04, SS_DEF,			"Data sync error - recommend reassignment") },/* DT  WRSO     */{SST(0x17, 0x00, SS_NEDEF,			"Recovered data with no error correction applied") },/* DT  WRSO     */{SST(0x17, 0x01, SS_NEDEF,			"Recovered data with retries") },/* DT  WR O     */{SST(0x17, 0x02, SS_NEDEF,			"Recovered data with positive head offset") },/* DT  WR O     */{SST(0x17, 0x03, SS_NEDEF,			"Recovered data with negative head offset") },/*     WR O     */{SST(0x17, 0x04, SS_NEDEF,			"Recovered data with retries and/or CIRC applied") },/* D   WR O     */{SST(0x17, 0x05, SS_NEDEF,			"Recovered data using previous sector id") },/* D   W  O     */{SST(0x17, 0x06, SS_NEDEF,			"Recovered data without ECC - data auto-reallocated") },/* D   W  O     */{SST(0x17, 0x07, SS_NEDEF,			"Recovered data without ECC - recommend reassignment")},/* D   W  O     */{SST(0x17, 0x08, SS_NEDEF,			"Recovered data without ECC - recommend rewrite") },/* D   W  O     */{SST(0x17, 0x09, SS_NEDEF,			"Recovered data without ECC - data rewritten") },/* D   W  O     */{SST(0x18, 0x00, SS_NEDEF,			"Recovered data with error correction applied") },/* D   WR O     */{SST(0x18, 0x01, SS_NEDEF,			"Recovered data with error corr. & retries applied") },/* D   WR O     */{SST(0x18, 0x02, SS_NEDEF,			"Recovered data - data auto-reallocated") },/*      R       */{SST(0x18, 0x03, SS_NEDEF,			"Recovered data with CIRC") },/*      R       */{SST(0x18, 0x04, SS_NEDEF,			"Recovered data with L-EC") },/* D   WR O     */{SST(0x18, 0x05, SS_NEDEF,			"Recovered data - recommend reassignment") },/* D   WR O     */{SST(0x18, 0x06, SS_NEDEF,			"Recovered data - recommend rewrite") },/* D   W  O     */{SST(0x18, 0x07, SS_NEDEF,			"Recovered data with ECC - data rewritten") },/* D      O     */{SST(0x19, 0x00, SS_DEF,			"Defect list error") },/* D      O     */{SST(0x19, 0x01, SS_DEF,			"Defect list not available") },/* D      O     */{SST(0x19, 0x02, SS_DEF,			"Defect list error in primary list") },/* D      O     */{SST(0x19, 0x03, SS_DEF,			"Defect list error in grown list") },/* DTLPWRSOMCAE */{SST(0x1A, 0x00, SS_DEF,			"Parameter list length error") },/* DTLPWRSOMCAE */{SST(0x1B, 0x00, SS_DEF,			"Synchronous data transfer error") },/* D      O     */{SST(0x1C, 0x00, SS_DEF,			"Defect list not found") },/* D      O     */{SST(0x1C, 0x01, SS_DEF,			"Primary defect list not found") },/* D      O     */{SST(0x1C, 0x02, SS_DEF,			"Grown defect list not found") },/* D   W  O     */{SST(0x1D, 0x00, SS_NEPDEF,			"Miscompare during verify operation" )},/* D   W  O     */{SST(0x1E, 0x00, SS_NEDEF,			"Recovered id with ecc correction") },/* D      O     */{SST(0x1F, 0x00, SS_DEF,			"Partial defect list transfer") },/* DTLPWRSOMCAE */{SST(0x20, 0x00, SS_DEF,			"Invalid command operation code") },/* DT  WR OM    */{SST(0x21, 0x00, SS_DEF,			"Logical block address out of range" )},/* DT  WR OM    */{SST(0x21, 0x01, SS_DEF,			"Invalid element address") },/* D            */{SST(0x22, 0x00, SS_DEF,			"Illegal function") }, /* Deprecated. Use 20 00, 24 00, or 26 00 instead *//* DTLPWRSOMCAE */{SST(0x24, 0x00, SS_NEDEF|EINVAL,			"Invalid field in CDB") },/* DTLPWRSOMCAE */{SST(0x25, 0x00, SS_NEDEF|ENXIO,			"Logical unit not supported") },/* DTLPWRSOMCAE */{SST(0x26, 0x00, SS_NEDEF|EINVAL,			"Invalid field in parameter list") },/* DTLPWRSOMCAE */{SST(0x26, 0x01, SS_NEDEF|EINVAL,			"Parameter not supported") },/* DTLPWRSOMCAE */{SST(0x26, 0x02, SS_NEDEF|EINVAL,			"Parameter value invalid") },/* DTLPWRSOMCAE */{SST(0x26, 0x03, SS_DEF,			"Threshold parameters not supported") },/* DTLPWRSOMCAE */{SST(0x26, 0x04, SS_DEF,			"Invalid release of active persistent reservation") },/* DT  W  O     */{SST(0x27, 0x00, SS_NEDEF|EACCES,			"Write protected") },/* DT  W  O     */{SST(0x27, 0x01, SS_NEDEF|EACCES,			"Hardware write protected") },/* DT  W  O     */{SST(0x27, 0x02, SS_NEDEF|EACCES,			"Logical unit software write protected") },/*  T           */{SST(0x27, 0x03, SS_NEDEF|EACCES,			"Associated write protect") },/*  T           */{SST(0x27, 0x04, SS_NEDEF|EACCES,			"Persistent write protect") },/*  T           */{SST(0x27, 0x05, SS_NEDEF|EACCES,			"Permanent write protect") },/* DTLPWRSOMCAE */{SST(0x28, 0x00, SS_NEDEF|ENXIO,			"Not ready to ready change, medium may have changed") },/* DT  WR OM    */{SST(0x28, 0x01, SS_DEF,			"Import or export element accessed") },/* DTLPWRSOMCAE */{SST(0x29, 0x00, SS_NEDEF|ENXIO,			"Power on, reset, or bus device reset occurred") },/* DTLPWRSOMCAE */{SST(0x29, 0x01, SS_DEF,			"Power on occurred") },/* DTLPWRSOMCAE */{SST(0x29, 0x02, SS_DEF,			"Scsi bus reset occurred") },/* DTLPWRSOMCAE */{SST(0x29, 0x03, SS_DEF,			"Bus device reset function occurred") },/* DTLPWRSOMCAE */{SST(0x29, 0x04, SS_DEF,			"Device internal reset") },/* DTLPWRSOMCAE */{SST(0x29, 0x05, SS_DEF,			"Transceiver mode changed to single-ended") },/* DTLPWRSOMCAE */{SST(0x29, 0x06, SS_DEF,			"Transceiver mode changed to LVD") },/* DTL WRSOMCAE */{SST(0x2A, 0x00, SS_DEF,			"Parameters changed") },/* DTL WRSOMCAE */{SST(0x2A, 0x01, SS_DEF,			"Mode parameters changed") },/* DTL WRSOMCAE */{SST(0x2A, 0x02, SS_DEF,			"Log parameters changed") },/* DTLPWRSOMCAE */{SST(0x2A, 0x03, SS_DEF,			"Reservations preempted") },/* DTLPWRSO C   */{SST(0x2B, 0x00, SS_DEF,			"Copy cannot execute since host cannot disconnect") },/* DTLPWRSOMCAE */{SST(0x2C, 0x00, SS_DEF,			"Command sequence error") },/*       S      */{SST(0x2C, 0x01, SS_DEF,			"Too many windows specified") },/*       S      */{SST(0x2C, 0x02, SS_DEF,			"Invalid combination of windows specified") },/*      R       */{SST(0x2C, 0x03, SS_DEF,			"Current program area is not empty") },/*      R       */{SST(0x2C, 0x04, SS_DEF,			"Current program area is empty") },/*  T           */{SST(0x2D, 0x00, SS_DEF,			"Overwrite error on update in place") },/* DTLPWRSOMCAE */{SST(0x2F, 0x00, SS_DEF,			"Commands cleared by another initiator") },/* DT  WR OM    */{SST(0x30, 0x00, SS_DEF,			"Incompatible medium installed") },/* DT  WR O     */{SST(0x30, 0x01, SS_DEF,			"Cannot read medium - unknown format") },/* DT  WR O     */{SST(0x30, 0x02, SS_DEF,			"Cannot read medium - incompatible format") },/* DT           */{SST(0x30, 0x03, SS_DEF,			"Cleaning cartridge installed") },/* DT  WR O     */{SST(0x30, 0x04, SS_DEF,			"Cannot write medium - unknown format") },/* DT  WR O     */{SST(0x30, 0x05, SS_DEF,			"Cannot write medium - incompatible format") },/* DT  W  O     */{SST(0x30, 0x06, SS_DEF,			"Cannot format medium - incompatible medium") },/* DTL WRSOM AE */{SST(0x30, 0x07, SS_DEF,			"Cleaning failure") },/*      R       */{SST(0x30, 0x08, SS_DEF,			"Cannot write - application code mismatch") },/*      R       */{SST(0x30, 0x09, SS_DEF,			"Current session not fixated for append") },/* DT  WR O     */{SST(0x31, 0x00, SS_DEF,			"Medium format corrupted") },/* D L  R O     */{SST(0x31, 0x01, SS_DEF,			"Format command failed") },/* D   W  O     */{SST(0x32, 0x00, SS_DEF,			"No defect spare location available") },/* D   W  O     */{SST(0x32, 0x01, SS_DEF,			"Defect list update failure") },/*  T           */{SST(0x33, 0x00, SS_DEF,			"Tape length error") },/* DTLPWRSOMCAE */{SST(0x34, 0x00, SS_DEF,			"Enclosure failure") },/* DTLPWRSOMCAE */{SST(0x35, 0x00, SS_DEF,			"Enclosure services failure") },/* DTLPWRSOMCAE */{SST(0x35, 0x01, SS_DEF,			"Unsupported enclosure function") },/* DTLPWRSOMCAE */{SST(0x35, 0x02, SS_DEF,			"Enclosure services unavailable") },/* DTLPWRSOMCAE */{SST(0x35, 0x03, SS_DEF,			"Enclosure services transfer failure") },/* DTLPWRSOMCAE */{SST(0x35, 0x04, SS_DEF,			"Enclosure services transfer refused") },/*   L          */{SST(0x36, 0x00, SS_DEF,			"Ribbon, ink, or toner failure") },/* DTL WRSOMCAE */{SST(0x37, 0x00, SS_DEF,			"Rounded parameter") },/* DTL WRSOMCAE */{SST(0x39, 0x00, SS_DEF,			"Saving parameters not supported") },/* DTL WRSOM    */{SST(0x3A, 0x00, SS_NEDEF|ENXIO,			"Medium not present") },/* DT  WR OM    */{SST(0x3A, 0x01, SS_NEDEF|ENXIO,			"Medium not present - tray closed") },/* DT  WR OM    */{SST(0x3A, 0x02, SS_NEDEF|ENXIO,			"Medium not present - tray open") },/*  TL          */{SST(0x3B, 0x00, SS_DEF,			"Sequential positioning error") },/*  T           */{SST(0x3B, 0x01, SS_DEF,			"Tape position error at beginning-of-medium") },/*  T           */{SST(0x3B, 0x02, SS_DEF,			"Tape position error at end-of-medium") },/*   L          */{SST(0x3B, 0x03, SS_DEF,			"Tape or electronic vertical forms unit not ready") },/*   L          */{SST(0x3B, 0x04, SS_DEF,			"Slew failure") },/*   L          */{SST(0x3B, 0x05, SS_DEF,			"Paper jam") },/*   L          */{SST(0x3B, 0x06, SS_DEF,			"Failed to sense top-of-form") },/*   L          */{SST(0x3B, 0x07, SS_DEF,			"Failed to sense bottom-of-form") },/*  T           */{SST(0x3B, 0x08, SS_DEF,			"Reposition error") },/*       S      */{SST(0x3B, 0x09, SS_DEF,			"Read past end of medium") },/*       S      */{SST(0x3B, 0x0A, SS_DEF,			"Read past beginning of medium") },/*       S      */{SST(0x3B, 0x0B, SS_DEF,			"Position past end of medium") },/*  T    S      */{SST(0x3B, 0x0C, SS_DEF,			"Position past beginning of medium") },/* DT  WR OM    */{SST(0x3B, 0x0D, SS_NEDEF|ENOSPC,			"Medium destination element full") },/* DT  WR OM    */{SST(0x3B, 0x0E, SS_DEF,			"Medium source element empty") },/*      R       */{SST(0x3B, 0x0F, SS_DEF,			"End of medium reached") },/* DT  WR OM    */{SST(0x3B, 0x11, SS_DEF,			"Medium magazine not accessible") },/* DT  WR OM    */{SST(0x3B, 0x12, SS_DEF,			"Medium magazine removed") },/* DT  WR OM    */{SST(0x3B, 0x13, SS_DEF,			"Medium magazine inserted") },/* DT  WR OM    */{SST(0x3B, 0x14, SS_DEF,			"Medium magazine locked") },/* DT  WR OM    */{SST(0x3B, 0x15, SS_DEF,			"Medium magazine unlocked") },/* DTLPWRSOMCAE */{SST(0x3D, 0x00, SS_DEF,			"Invalid bits in identify message") },/* DTLPWRSOMCAE */{SST(0x3E, 0x00, SS_DEF,			"Logical unit has not self-configured yet") },/* DTLPWRSOMCAE */{SST(0x3E, 0x01, SS_DEF,			"Logical unit failure") },/* DTLPWRSOMCAE */{SST(0x3E, 0x02, SS_DEF,			"Timeout on logical unit") },/* DTLPWRSOMCAE */{SST(0x3F, 0x00, SS_DEF,			"Target operating conditions have changed") },/* DTLPWRSOMCAE */{SST(0x3F, 0x01, SS_DEF,			"Microcode has been changed") },/* DTLPWRSOMC   */{SST(0x3F, 0x02, SS_DEF,			"Changed operating definition") },/* DTLPWRSOMCAE */{SST(0x3F, 0x03, SS_DEF,			"Inquiry data has changed") },/* DT  WR OMCAE */{SST(0x3F, 0x04, SS_DEF,			"Component device attached") },/* DT  WR OMCAE */{SST(0x3F, 0x05, SS_DEF,			"Device identifier changed") },/* DT  WR OMCAE */{SST(0x3F, 0x06, SS_DEF,			"Redundancy group created or modified") },/* DT  WR OMCAE */{SST(0x3F, 0x07, SS_DEF,			"Redundancy group deleted") },/* DT  WR OMCAE */{SST(0x3F, 0x08, SS_DEF,			"Spare created or modified") },/* DT  WR OMCAE */{SST(0x3F, 0x09, SS_DEF,			"Spare deleted") },/* DT  WR OMCAE */{SST(0x3F, 0x0A, SS_DEF,			"Volume set created or modified") },/* DT  WR OMCAE */{SST(0x3F, 0x0B, SS_DEF,			"Volume set deleted") },/* DT  WR OMCAE */{SST(0x3F, 0x0C, SS_DEF,			"Volume set deassigned") },/* DT  WR OMCAE */{SST(0x3F, 0x0D, SS_DEF,			"Volume set reassigned") },/* D            */{SST(0x40, 0x00, SS_DEF,			"Ram failure") }, /* deprecated - use 40 NN instead *//* DTLPWRSOMCAE */{SST(0x40, 0x80, SS_DEF,			"Diagnostic failure: ASCQ = Component ID") },/* DTLPWRSOMCAE */{SST(0x40, 0xFF, SS_DEF|SSQ_RANGE,			NULL) },/* Range 0x80->0xFF *//* D            */{SST(0x41, 0x00, SS_DEF,			"Data path failure") }, /* deprecated - use 40 NN instead *//* D            */{SST(0x42, 0x00, SS_DEF,			"Power-on or self-test failure") }, /* deprecated - use 40 NN instead *//* DTLPWRSOMCAE */{SST(0x43, 0x00, SS_DEF,			"Message error") },/* DTLPWRSOMCAE */{SST(0x44, 0x00, SS_DEF,			"Internal target failure") },/* DTLPWRSOMCAE */{SST(0x45, 0x00, SS_DEF,			"Select or reselect failure") },/* DTLPWRSOMC   */{SST(0x46, 0x00, SS_DEF,			"Unsuccessful soft reset") },/* DTLPWRSOMCAE */{SST(0x47, 0x00, SS_DEF,			"SCSI parity error") },/* DTLPWRSOMCAE */{SST(0x48, 0x00, SS_DEF,			"Initiator detected error message received") },/* DTLPWRSOMCAE */{SST(0x49, 0x00, SS_DEF,			"Invalid message error") },/* DTLPWRSOMCAE */{SST(0x4A, 0x00, SS_DEF,			"Command phase error") },/* DTLPWRSOMCAE */{SST(0x4B, 0x00, SS_DEF,			"Data phase error") },/* DTLPWRSOMCAE */{SST(0x4C, 0x00, SS_DEF,			"Logical unit failed self-configuration") },/* DTLPWRSOMCAE */{SST(0x4D, 0x00, SS_DEF,			"Tagged overlapped commands: ASCQ = Queue tag ID") },/* DTLPWRSOMCAE */{SST(0x4D, 0xFF, SS_DEF|SSQ_RANGE,			NULL)}, /* Range 0x00->0xFF *//* DTLPWRSOMCAE */{SST(0x4E, 0x00, SS_DEF,			"Overlapped commands attempted") },/*  T           */{SST(0x50, 0x00, SS_DEF,			"Write append error") },/*  T           */{SST(0x50, 0x01, SS_DEF,			"Write append position error") },/*  T           */{SST(0x50, 0x02, SS_DEF,			"Position error related to timing") },/*  T     O     */{SST(0x51, 0x00, SS_DEF,			"Erase failure") },/*  T           */{SST(0x52, 0x00, SS_DEF,			"Cartridge fault") },/* DTL WRSOM    */{SST(0x53, 0x00, SS_DEF,			"Media load or eject failed") },/*  T           */{SST(0x53, 0x01, SS_DEF,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -