儲存庫 vbox 的更動 12551
- 時間撮記:
- 2008-9-17 下午06:58:37 (16 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/VBox/scsi.h
r11649 r12551 104 104 /** Report LUNs command. */ 105 105 SCSI_REPORT_LUNS = 0xa0, 106 SCSI_REPORT_DENSITY = 0x44, 106 107 /** Rezero Unit command. Obsolete for ages now, but used by cdrecord. */ 107 108 SCSI_REZERO_UNIT = 0x01, … … 112 113 } SCSICMD; 113 114 114 #ifdef DEBUG115 static const char * const g_apszSCSICmdNames[256] =116 {117 "TEST UNIT READY", /* 0x00 */118 "REZERO UNIT", /* 0x01 */119 "", /* 0x02 */120 "REQUEST SENSE", /* 0x03 */121 "FORMAT UNIT", /* 0x04 */122 "READ BLOCK LIMITS", /* 0x05 */123 "", /* 0x06 */124 "REASSIGN BLOCKS", /* 0x07 */125 "READ (6)", /* 0x08 */126 "", /* 0x09 */127 "WRITE (6)", /* 0x0a */128 "SEEK (6)", /* 0x0b */129 "", /* 0x0c */130 "", /* 0x0d */131 "", /* 0x0e */132 "READ REVERSE (6)", /* 0x0f */133 "READ FILEMARKS (6)", /* 0x10 */134 "SPACE (6)", /* 0x11 */135 "INQUIRY", /* 0x12 */136 "VERIFY (6)", /* 0x13 */137 "RECOVER BUFFERED DATA", /* 0x14 */138 "MODE SELECT (6)", /* 0x15 */139 "RESERVE (6)", /* 0x16 */140 "RELEASE (6)", /* 0x17 */141 "COPY", /* 0x18 */142 "ERASE (6)", /* 0x19 */143 "MODE SENSE (6)", /* 0x1a */144 "START STOP UNIT", /* 0x1b */145 "RECEIVE DIAGNOSTIC RESULTS", /* 0x1c */146 "SEND DIAGNOSTIC", /* 0x1d */147 "PREVENT ALLOW MEDIUM REMOVAL", /* 0x1e */148 "", /* 0x1f */149 "", /* 0x20 */150 "", /* 0x21 */151 "", /* 0x22 */152 "READ FORMAT CAPACITIES", /* 0x23 */153 "SET WINDOW", /* 0x24 */154 "READ CAPACITY", /* 0x25 */155 "", /* 0x26 */156 "", /* 0x27 */157 "READ (10)", /* 0x28 */158 "READ GENERATION", /* 0x29 */159 "WRITE (10)", /* 0x2a */160 "SEEK (10)", /* 0x2b */161 "ERASE (10)", /* 0x2c */162 "READ UPDATED BLOCK", /* 0x2d */163 "WRITE AND VERIFY (10)", /* 0x2e */164 "VERIFY (10)", /* 0x2f */165 "SEARCH DATA HIGH (10)", /* 0x30 */166 "SEARCH DATA EQUAL (10)", /* 0x31 */167 "SEARCH DATA LOW (10)", /* 0x32 */168 "SET LIMITS (10)", /* 0x33 */169 "PRE-FETCH (10)", /* 0x34 */170 "SYNCHRONIZE CACHE (10)", /* 0x35 */171 "LOCK UNLOCK CACHE (10)", /* 0x36 */172 "READ DEFECT DATA (10)", /* 0x37 */173 "MEDIUM SCAN", /* 0x38 */174 "COMPARE", /* 0x39 */175 "COPY AND VERIFY", /* 0x3a */176 "WRITE BUFFER", /* 0x3b */177 "READ BUFFER", /* 0x3c */178 "UPDATE BLOCK", /* 0x3d */179 "READ LONG (10)", /* 0x3e */180 "WRITE LONG (10)", /* 0x3f */181 "CHANGE DEFINITION", /* 0x40 */182 "WRITE SAME (10)", /* 0x41 */183 "READ SUBCHANNEL", /* 0x42 */184 "READ TOC/PMA/ATIP", /* 0x43 */185 "REPORT DENSITY SUPPORT", /* 0x44 */186 "PLAY AUDIO (10)", /* 0x45 */187 "GET CONFIGURATION", /* 0x46 */188 "PLAY AUDIO MSF", /* 0x47 */189 "", /* 0x48 */190 "", /* 0x49 */191 "GET EVENT STATUS NOTIFICATION", /* 0x4a */192 "PAUSE/RESUME", /* 0x4b */193 "LOG SELECT", /* 0x4c */194 "LOG SENSE", /* 0x4d */195 "STOP PLAY/SCAN", /* 0x4e */196 "", /* 0x4f */197 "XDWRITE (10)", /* 0x50 */198 "READ DISC INFORMATION", /* 0x51 */199 "READ TRACK INFORMATION", /* 0x52 */200 "RESERVE TRACK", /* 0x53 */201 "SEND OPC INFORMATION", /* 0x54 */202 "MODE SELECT (10)", /* 0x55 */203 "RESERVE (10)", /* 0x56 */204 "RELEASE (10)", /* 0x57 */205 "REPAIR TRACK", /* 0x58 */206 "", /* 0x59 */207 "MODE SENSE (10)", /* 0x5a */208 "CLOSE TRACK/SESSION", /* 0x5b */209 "READ BUFFER CAPACITY", /* 0x5c */210 "SEND CUE SHEET", /* 0x5d */211 "PERSISTENT RESERVE IN", /* 0x5e */212 "PERSISTENT RESERVE OUT", /* 0x5f */213 "", /* 0x60 */214 "", /* 0x61 */215 "", /* 0x62 */216 "", /* 0x63 */217 "", /* 0x64 */218 "", /* 0x65 */219 "", /* 0x66 */220 "", /* 0x67 */221 "", /* 0x68 */222 "", /* 0x69 */223 "", /* 0x6a */224 "", /* 0x6b */225 "", /* 0x6c */226 "", /* 0x6d */227 "", /* 0x6e */228 "", /* 0x6f */229 "", /* 0x70 */230 "", /* 0x71 */231 "", /* 0x72 */232 "", /* 0x73 */233 "", /* 0x74 */234 "", /* 0x75 */235 "", /* 0x76 */236 "", /* 0x77 */237 "", /* 0x78 */238 "", /* 0x79 */239 "", /* 0x7a */240 "", /* 0x7b */241 "", /* 0x7c */242 "", /* 0x7d */243 "", /* 0x7e */244 "", /* 0x7f */245 "WRITE FILEMARKS (16)", /* 0x80 */246 "READ REVERSE (16)", /* 0x81 */247 "REGENERATE (16)", /* 0x82 */248 "EXTENDED COPY", /* 0x83 */249 "RECEIVE COPY RESULTS", /* 0x84 */250 "ATA COMMAND PASS THROUGH (16)", /* 0x85 */251 "ACCESS CONTROL IN", /* 0x86 */252 "ACCESS CONTROL OUT", /* 0x87 */253 "READ (16)", /* 0x88 */254 "", /* 0x89 */255 "WRITE(16)", /* 0x8a */256 "", /* 0x8b */257 "READ ATTRIBUTE", /* 0x8c */258 "WRITE ATTRIBUTE", /* 0x8d */259 "WRITE AND VERIFY (16)", /* 0x8e */260 "VERIFY (16)", /* 0x8f */261 "PRE-FETCH (16)", /* 0x90 */262 "SYNCHRONIZE CACHE (16)", /* 0x91 */263 "LOCK UNLOCK CACHE (16)", /* 0x92 */264 "WRITE SAME (16)", /* 0x93 */265 "", /* 0x94 */266 "", /* 0x95 */267 "", /* 0x96 */268 "", /* 0x97 */269 "", /* 0x98 */270 "", /* 0x99 */271 "", /* 0x9a */272 "", /* 0x9b */273 "", /* 0x9c */274 "", /* 0x9d */275 "SERVICE ACTION IN (16)", /* 0x9e */276 "SERVICE ACTION OUT (16)", /* 0x9f */277 "REPORT LUNS", /* 0xa0 */278 "BLANK", /* 0xa1 */279 "SEND EVENT", /* 0xa2 */280 "SEND KEY", /* 0xa3 */281 "REPORT KEY", /* 0xa4 */282 "PLAY AUDIO (12)", /* 0xa5 */283 "LOAD/UNLOAD MEDIUM", /* 0xa6 */284 "SET READ AHEAD", /* 0xa7 */285 "READ (12)", /* 0xa8 */286 "SERVICE ACTION OUT (12)", /* 0xa9 */287 "WRITE (12)", /* 0xaa */288 "SERVICE ACTION IN (12)", /* 0xab */289 "GET PERFORMANCE", /* 0xac */290 "READ DVD STRUCTURE", /* 0xad */291 "WRITE AND VERIFY (12)", /* 0xae */292 "VERIFY (12)", /* 0xaf */293 "SEARCH DATA HIGH (12)", /* 0xb0 */294 "SEARCH DATA EQUAL (12)", /* 0xb1 */295 "SEARCH DATA LOW (12)", /* 0xb2 */296 "SET LIMITS (12)", /* 0xb3 */297 "READ ELEMENT STATUS ATTACHED", /* 0xb4 */298 "REQUEST VOLUME ELEMENT ADDRESS", /* 0xb5 */299 "SET STREAMING", /* 0xb6 */300 "READ DEFECT DATA (12)", /* 0xb7 */301 "READ ELEMENT STATUS", /* 0xb8 */302 "READ CD MSF", /* 0xb9 */303 "SCAN", /* 0xba */304 "SET CD SPEED", /* 0xbb */305 "SPARE (IN)", /* 0xbc */306 "MECHANISM STATUS", /* 0xbd */307 "READ CD", /* 0xbe */308 "SEND DVD STRUCTURE", /* 0xbf */309 "", /* 0xc0 */310 "", /* 0xc1 */311 "", /* 0xc2 */312 "", /* 0xc3 */313 "", /* 0xc4 */314 "", /* 0xc5 */315 "", /* 0xc6 */316 "", /* 0xc7 */317 "", /* 0xc8 */318 "", /* 0xc9 */319 "", /* 0xca */320 "", /* 0xcb */321 "", /* 0xcc */322 "", /* 0xcd */323 "", /* 0xce */324 "", /* 0xcf */325 "", /* 0xd0 */326 "", /* 0xd1 */327 "", /* 0xd2 */328 "", /* 0xd3 */329 "", /* 0xd4 */330 "", /* 0xd5 */331 "", /* 0xd6 */332 "", /* 0xd7 */333 "", /* 0xd8 */334 "", /* 0xd9 */335 "", /* 0xda */336 "", /* 0xdb */337 "", /* 0xdc */338 "", /* 0xdd */339 "", /* 0xde */340 "", /* 0xdf */341 "", /* 0xe0 */342 "", /* 0xe1 */343 "", /* 0xe2 */344 "", /* 0xe3 */345 "", /* 0xe4 */346 "", /* 0xe5 */347 "", /* 0xe6 */348 "", /* 0xe7 */349 "", /* 0xe8 */350 "", /* 0xe9 */351 "", /* 0xea */352 "", /* 0xeb */353 "", /* 0xec */354 "", /* 0xed */355 "", /* 0xee */356 "", /* 0xef */357 "", /* 0xf0 */358 "", /* 0xf1 */359 "", /* 0xf2 */360 "", /* 0xf3 */361 "", /* 0xf4 */362 "", /* 0xf5 */363 "", /* 0xf6 */364 "", /* 0xf7 */365 "", /* 0xf8 */366 "", /* 0xf9 */367 "", /* 0xfa */368 "", /* 0xfb */369 "", /* 0xfc */370 "", /* 0xfd */371 "", /* 0xfe */372 "" /* 0xff */373 };374 #endif /* DEBUG */375 376 115 /* Mode page codes for mode sense/select commands. */ 377 116 #define SCSI_MODEPAGE_ERROR_RECOVERY 0x01 … … 387 126 388 127 128 /* Sense keys */ 389 129 #define SCSI_SENSE_NONE 0 130 #define SCSI_SENSE_RECOVERED_ERROR 1 390 131 #define SCSI_SENSE_NOT_READY 2 391 132 #define SCSI_SENSE_MEDIUM_ERROR 3 133 #define SCSI_SENSE_HARDWARE_ERROR 4 392 134 #define SCSI_SENSE_ILLEGAL_REQUEST 5 393 135 #define SCSI_SENSE_UNIT_ATTENTION 6 394 395 136 #define SCSI_SENSE_DATA_PROTECT 7 137 #define SCSI_SENSE_BLANK_CHECK 8 138 #define SCSI_SENSE_VENDOR_SPECIFIC 9 139 #define SCSI_SENSE_COPY_ABORTED 10 140 #define SCSI_SENSE_ABORTED_COMMAND 11 141 #define SCSI_SENSE_VOLUME_OVERFLOW 13 142 #define SCSI_SENSE_MISCOMPARE 14 143 144 145 /* additional sense keys */ 396 146 #define SCSI_ASC_NONE 0x00 397 147 #define SCSI_ASC_READ_ERROR 0x11 … … 473 223 /** @} */ 474 224 225 #if defined(DEBUG) && defined(IN_RING3) 226 const char * const SCSICmdText(uint8_t uCmd); 227 const char * const SCSISenseText(uint8_t uSense); 228 const char * const SCSISenseExtText(uint8_t uASC, uint8_t uASCQ); 475 229 #endif 230 231 #endif -
trunk/src/VBox/Devices/Makefile.kmk
r12325 r12551 246 246 Serial/DevSerial.cpp \ 247 247 Parallel/DevParallel.cpp 248 249 DevicesR3_SOURCES.debug = \ 250 Storage/Debug.cpp 248 251 249 252 ifdef VBOX_WITH_E1000 -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r12508 r12551 1223 1223 static void atapiCmdError(ATADevState *s, const uint8_t *pabATAPISense, size_t cbATAPISense) 1224 1224 { 1225 Log(("%s: sense=%#x asc=%#x\n", __FUNCTION__, pabATAPISense[2] & 0x0f, pabATAPISense[12])); 1225 Log(("%s: sense=%#x (%s) asc=%#x ascq=%#x (%s)\n", __FUNCTION__, pabATAPISense[2] & 0x0f, SCSISenseText(pabATAPISense[2] & 0x0f), 1226 pabATAPISense[12], pabATAPISense[13], SCSISenseExtText(pabATAPISense[12], pabATAPISense[13]))); 1226 1227 s->uATARegError = pabATAPISense[2] << 4; 1227 1228 ataSetStatusValue(s, ATA_STAT_READY | ATA_STAT_ERR); … … 1597 1598 break; 1598 1599 s->cErrors++; 1599 LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough command (%#04x) error %d %Rrc\n", s->iLUN, u8Cmd, abATAPISense[2] & 0x0f, rc)); 1600 LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough cmd=%#04x sense=%d ASC=%#02x ASCQ=%#02x %Rrc\n", 1601 s->iLUN, u8Cmd, abATAPISense[2] & 0x0f, abATAPISense[12], abATAPISense[13], rc)); 1600 1602 } while (0); 1601 1603 } … … 2670 2672 pbPacket = s->aATAPICmd; 2671 2673 #ifdef DEBUG 2672 Log(("%s: LUN#%d DMA=%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, s->fDMA, pbPacket[0], g_apszSCSICmdNames[pbPacket[0]]));2674 Log(("%s: LUN#%d DMA=%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, s->fDMA, pbPacket[0], SCSICmdText(pbPacket[0]))); 2673 2675 #else /* !DEBUG */ 2674 2676 Log(("%s: LUN#%d DMA=%d CMD=%#04x\n", __FUNCTION__, s->iLUN, s->fDMA, pbPacket[0])); … … 2784 2786 { 2785 2787 #ifdef DEBUG 2786 Log(("%s: LUN#%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, cmd, g_apszATACmdNames[cmd]));2788 Log(("%s: LUN#%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, cmd, ATACmdText(cmd))); 2787 2789 #else /* !DEBUG */ 2788 2790 Log(("%s: LUN#%d CMD=%#04x\n", __FUNCTION__, s->iLUN, cmd)); -
trunk/src/VBox/Devices/Storage/ide.h
r11144 r12551 163 163 } ATACMD; 164 164 165 #ifdef DEBUG166 static const char * const g_apszATACmdNames[256] =167 {168 "NOP", /* 0x00 */169 "", /* 0x01 */170 "", /* 0x02 */171 "CFA REQUEST EXTENDED ERROR CODE", /* 0x03 */172 "", /* 0x04 */173 "", /* 0x05 */174 "", /* 0x06 */175 "", /* 0x07 */176 "DEVICE RESET", /* 0x08 */177 "", /* 0x09 */178 "", /* 0x0a */179 "", /* 0x0b */180 "", /* 0x0c */181 "", /* 0x0d */182 "", /* 0x0e */183 "", /* 0x0f */184 "RECALIBRATE", /* 0x10 */185 "", /* 0x11 */186 "", /* 0x12 */187 "", /* 0x13 */188 "", /* 0x14 */189 "", /* 0x15 */190 "", /* 0x16 */191 "", /* 0x17 */192 "", /* 0x18 */193 "", /* 0x19 */194 "", /* 0x1a */195 "", /* 0x1b */196 "", /* 0x1c */197 "", /* 0x1d */198 "", /* 0x1e */199 "", /* 0x1f */200 "READ SECTORS", /* 0x20 */201 "READ SECTORS WITHOUT RETRIES", /* 0x21 */202 "READ LONG", /* 0x22 */203 "READ LONG WITHOUT RETRIES", /* 0x23 */204 "READ SECTORS EXT", /* 0x24 */205 "READ DMA EXT", /* 0x25 */206 "READ DMA QUEUED EXT", /* 0x26 */207 "READ NATIVE MAX ADDRESS EXT", /* 0x27 */208 "", /* 0x28 */209 "READ MULTIPLE EXT", /* 0x29 */210 "READ STREAM DMA EXT", /* 0x2a */211 "READ STREAM EXT", /* 0x2b */212 "", /* 0x2c */213 "", /* 0x2d */214 "", /* 0x2e */215 "READ LOG EXT", /* 0x2f */216 "WRITE SECTORS", /* 0x30 */217 "WRITE SECTORS WITHOUT RETRIES", /* 0x31 */218 "WRITE LONG", /* 0x32 */219 "WRITE LONG WITHOUT RETRIES", /* 0x33 */220 "WRITE SECTORS EXT", /* 0x34 */221 "WRITE DMA EXT", /* 0x35 */222 "WRITE DMA QUEUED EXT", /* 0x36 */223 "SET MAX ADDRESS EXT", /* 0x37 */224 "CFA WRITE SECTORS WITHOUT ERASE", /* 0x38 */225 "WRITE MULTIPLE EXT", /* 0x39 */226 "WRITE STREAM DMA EXT", /* 0x3a */227 "WRITE STREAM EXT", /* 0x3b */228 "WRITE VERIFY", /* 0x3c */229 "WRITE DMA FUA EXT", /* 0x3d */230 "WRITE DMA QUEUED FUA EXT", /* 0x3e */231 "WRITE LOG EXT", /* 0x3f */232 "READ VERIFY SECTORS", /* 0x40 */233 "READ VERIFY SECTORS WITHOUT RETRIES", /* 0x41 */234 "READ VERIFY SECTORS EXT", /* 0x42 */235 "", /* 0x43 */236 "", /* 0x44 */237 "WRITE UNCORRECTABLE EXT", /* 0x45 */238 "", /* 0x46 */239 "READ LOG DMA EXT", /* 0x47 */240 "", /* 0x48 */241 "", /* 0x49 */242 "", /* 0x4a */243 "", /* 0x4b */244 "", /* 0x4c */245 "", /* 0x4d */246 "", /* 0x4e */247 "", /* 0x4f */248 "FORMAT TRACK", /* 0x50 */249 "CONFIGURE STREAM", /* 0x51 */250 "", /* 0x52 */251 "", /* 0x53 */252 "", /* 0x54 */253 "", /* 0x55 */254 "", /* 0x56 */255 "WRITE LOG DMA EXT", /* 0x57 */256 "", /* 0x58 */257 "", /* 0x59 */258 "", /* 0x5a */259 "", /* 0x5b */260 "TRUSTED RECEIVE", /* 0x5c */261 "TRUSTED RECEIVE DMA", /* 0x5d */262 "TRUSTED SEND", /* 0x5e */263 "TRUSTED SEND DMA", /* 0x5f */264 "READ FPDMA QUEUED", /* 0x60 */265 "WRITE FPDMA QUEUED", /* 0x61 */266 "", /* 0x62 */267 "", /* 0x63 */268 "", /* 0x64 */269 "", /* 0x65 */270 "", /* 0x66 */271 "", /* 0x67 */272 "", /* 0x68 */273 "", /* 0x69 */274 "", /* 0x6a */275 "", /* 0x6b */276 "", /* 0x6c */277 "", /* 0x6d */278 "", /* 0x6e */279 "", /* 0x6f */280 "SEEK", /* 0x70 */281 "", /* 0x71 */282 "", /* 0x72 */283 "", /* 0x73 */284 "", /* 0x74 */285 "", /* 0x75 */286 "", /* 0x76 */287 "", /* 0x77 */288 "", /* 0x78 */289 "", /* 0x79 */290 "", /* 0x7a */291 "", /* 0x7b */292 "", /* 0x7c */293 "", /* 0x7d */294 "", /* 0x7e */295 "", /* 0x7f */296 "", /* 0x80 */297 "", /* 0x81 */298 "", /* 0x82 */299 "", /* 0x83 */300 "", /* 0x84 */301 "", /* 0x85 */302 "", /* 0x86 */303 "CFA TRANSLATE SECTOR", /* 0x87 */304 "", /* 0x88 */305 "", /* 0x89 */306 "", /* 0x8a */307 "", /* 0x8b */308 "", /* 0x8c */309 "", /* 0x8d */310 "", /* 0x8e */311 "", /* 0x8f */312 "EXECUTE DEVICE DIAGNOSTIC", /* 0x90 */313 "INITIALIZE DEVICE PARAMETERS", /* 0x91 */314 "DOWNLOAD MICROCODE", /* 0x92 */315 "", /* 0x93 */316 "STANDBY IMMEDIATE ALT", /* 0x94 */317 "IDLE IMMEDIATE ALT", /* 0x95 */318 "STANDBY ALT", /* 0x96 */319 "IDLE ALT", /* 0x97 */320 "CHECK POWER MODE ALT", /* 0x98 */321 "SLEEP ALT", /* 0x99 */322 "", /* 0x9a */323 "", /* 0x9b */324 "", /* 0x9c */325 "", /* 0x9d */326 "", /* 0x9e */327 "", /* 0x9f */328 "PACKET", /* 0xa0 */329 "IDENTIFY PACKET DEVICE", /* 0xa1 */330 "SERVICE", /* 0xa2 */331 "", /* 0xa3 */332 "", /* 0xa4 */333 "", /* 0xa5 */334 "", /* 0xa6 */335 "", /* 0xa7 */336 "", /* 0xa8 */337 "", /* 0xa9 */338 "", /* 0xaa */339 "", /* 0xab */340 "", /* 0xac */341 "", /* 0xad */342 "", /* 0xae */343 "", /* 0xaf */344 "SMART", /* 0xb0 */345 "DEVICE CONFIGURATION OVERLAY", /* 0xb1 */346 "", /* 0xb2 */347 "", /* 0xb3 */348 "", /* 0xb4 */349 "", /* 0xb5 */350 "NV CACHE", /* 0xb6 */351 "", /* 0xb7 */352 "", /* 0xb8 */353 "", /* 0xb9 */354 "", /* 0xba */355 "", /* 0xbb */356 "", /* 0xbc */357 "", /* 0xbd */358 "", /* 0xbe */359 "", /* 0xbf */360 "CFA ERASE SECTORS", /* 0xc0 */361 "", /* 0xc1 */362 "", /* 0xc2 */363 "", /* 0xc3 */364 "READ MULTIPLE", /* 0xc4 */365 "WRITE MULTIPLE", /* 0xc5 */366 "SET MULTIPLE MODE", /* 0xc6 */367 "READ DMA QUEUED", /* 0xc7 */368 "READ DMA", /* 0xc8 */369 "READ DMA WITHOUT RETRIES", /* 0xc9 */370 "WRITE DMA", /* 0xca */371 "WRITE DMA WITHOUT RETRIES", /* 0xcb */372 "WRITE DMA QUEUED", /* 0xcc */373 "CFA WRITE MULTIPLE WITHOUT ERASE", /* 0xcd */374 "WRITE MULTIPLE FUA EXT", /* 0xce */375 "", /* 0xcf */376 "", /* 0xd0 */377 "CHECK MEDIA CARD TYPE", /* 0xd1 */378 "", /* 0xd2 */379 "", /* 0xd3 */380 "", /* 0xd4 */381 "", /* 0xd5 */382 "", /* 0xd6 */383 "", /* 0xd7 */384 "", /* 0xd8 */385 "", /* 0xd9 */386 "GET MEDIA STATUS", /* 0xda */387 "ACKNOWLEDGE MEDIA CHANGE", /* 0xdb */388 "BOOT POST BOOT", /* 0xdc */389 "BOOT PRE BOOT", /* 0xdd */390 "MEDIA LOCK", /* 0xde */391 "MEDIA UNLOCK", /* 0xdf */392 "STANDBY IMMEDIATE", /* 0xe0 */393 "IDLE IMMEDIATE", /* 0xe1 */394 "STANDBY", /* 0xe2 */395 "IDLE", /* 0xe3 */396 "READ BUFFER", /* 0xe4 */397 "CHECK POWER MODE", /* 0xe5 */398 "SLEEP", /* 0xe6 */399 "FLUSH CACHE", /* 0xe7 */400 "WRITE BUFFER", /* 0xe8 */401 "WRITE SAME", /* 0xe9 */402 "FLUSH CACHE EXT", /* 0xea */403 "", /* 0xeb */404 "IDENTIFY DEVICE", /* 0xec */405 "MEDIA EJECT", /* 0xed */406 "IDENTIFY DMA", /* 0xee */407 "SET FEATURES", /* 0xef */408 "", /* 0xf0 */409 "SECURITY SET PASSWORD", /* 0xf1 */410 "SECURITY UNLOCK", /* 0xf2 */411 "SECURITY ERASE PREPARE", /* 0xf3 */412 "SECURITY ERASE UNIT", /* 0xf4 */413 "SECURITY FREEZE LOCK", /* 0xf5 */414 "SECURITY DISABLE PASSWORD", /* 0xf6 */415 "", /* 0xf7 */416 "READ NATIVE MAX ADDRESS", /* 0xf8 */417 "SET MAX", /* 0xf9 */418 "", /* 0xfa */419 "", /* 0xfb */420 "", /* 0xfc */421 "", /* 0xfd */422 "", /* 0xfe */423 "" /* 0xff */424 };425 #endif /* DEBUG */426 427 165 428 166 #define ATA_MODE_MDMA 0x20 … … 445 183 #define ATAPI_INT_REASON_TAG_MASK 0xf8 446 184 185 #if defined(DEBUG) && defined(IN_RING3) 186 const char * const ATACmdText(uint8_t uCmd); 187 #endif 447 188 448 189 #endif /* !___Storage_IDE_h */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器