SCSI Commands

The SCSI commands supported by SCSI2Pi depend on the device type. In addition to commands of the SCSI-2 standard SCSI2Pi also implements commands of newer SCSI standards.

Opcode Command Device Type Remark
$00 TEST UNIT READY All
$01 REZERO
REWIND
SCCD, SCHD, SCMO, SCRM, SAHD
SCTP
$03 REQUEST SENSE All
$04 FORMAT UNIT
FORMAT MEDIUM
SCCD, SCHD, SCMO, SCRM, SAHD
SCTP

with simh files only, not with tar files
$05 READ BLOCK LIMITS SCTP
$07 REASSIGN BLOCKS SCCD, SCHD, SCMO, SCRM, SAHD
$08 READ(6)
GET MESSAGE(6)
SCCD, SCHD, SCMO, SCRM, SAHD
SCDP
$09 RETRIEVE STATS SCDP
$0A WRITE(6)
SEND MESSAGE(6)
PRINT
SCCD, SCHD, SCMO, SCRM, SAHD
SCDP
SCLP
$0B SEEK(6) SCCD, SCHD, SCMO, SCRM, SAHD
$0C SET INTERFACE MODE SCDP
$0D SET MULTICAST ADDRESS SCDP Multicast address is ignored
$0E ENABLE INTERFACE SCDP
$10 WRITE FILEMARKS(6)
SYNCHRONIZE BUFFER
SCTP
SCLP
Is ignored with tar files
 
$11 SPACE(6) SCTP With simh files only, not with tar files
$12 INQUIRY All
$15 MODE SELECT(6) SCCD, SCHD, SCMO, SCRM, SCTP, SAHD
$16 RESERVE(6) All
$17 RELEASE(6) All
$19 ERASE(6) SCTP With simh files only, not with tar files
$1A MODE SENSE(6) All
$1B START STOP UNIT
LOAD UNLOAD
STOP PRINT
SCCD, SCHD, SCMO, SCRM, SCHS, SAHD
SCTP
SCLP
$1D SEND DIAGNOSTIC All
$1E PREVENT-ALLOW MEDIUM REMOVAL SCCD, SCMO, SCRM, SCTP
$23 READ FORMAT CAPACITIES SCCD, SCHD, SCMO, SCRM, SAHD
$25 READ CAPACITY(10) SCCD, SCHD, SCMO, SCRM, SAHD
$28 READ(10) SCCD, SCHD, SCMO, SCRM, SAHD
$2A WRITE(10) SCCD, SCHD, SCMO, SCRM, SAHD
$2B SEEK(10)
LOCATE(10)
SCCD, SCHD, SCMO, SCRM, SAHD
SCTP
$2F VERIFY(10) SCCD, SCHD, SCMO, SCRM, SAHD
$34 READ POSITION SCTP
$35 SYNCHRONIZE CACHE(10) SCCD, SCHD, SCMO, SCRM, SAHD
$37 READ DEFECT DATA(10) SCCD, SCHD, SCMO, SCRM, SAHD
$3E READ LONG(10) SCCD, SCHD, SCMO, SCRM, SAHD Byte count <= sector size
$3F WRITE LONG(10) SCCD, SCHD, SCMO, SCRM, SAHD Byte count <= sector size
$43 READ TOC SCCD
$55 MODE SELECT(10) SCCD, SCHD, SCMO, SCRM, SCTP
$5A MODE SENSE(10) All
$88 READ(16) SCCD, SCHD, SCMO, SCRM, SAHD
$8A WRITE(16) SCCD, SCHD, SCMO, SCRM, SAHD
$8F VERIFY(16) SCCD, SCHD, SCMO, SCRM, SAHD
$91 SYNCHRONIZE CACHE(16) SCCD, SCHD, SCMO, SCRM, SAHD
$92 LOCATE(16) SCTP
$9E READ CAPACITY(16)
READ LONG(16)
SCCD, SCHD, SCMO, SCRM, SAHD
Byte count <= sector size
$9F WRITE LONG(16) SCCD, SCHD, SCMO, SCRM, SAHD Byte count <= sector size
$A0 REPORT LUNS All
$C0 EXECUTE OPERATION SCHS See host_services.cpp for details
$C1 RECEIVE OPERATION RESULTS SCHS See host_services.cpp for details