Professional Documents
Culture Documents
Communication Interface
There are fixed length CDB formats and variable length CDB formats
Service action
All CDB formats except the 6-byte format provide for a SERVICE
ACTION field containing a coded value identifying a function to be
performed under the more general command function specified in
the OPERATION CODE field.
Logical block address
The logical block addresses on a logical unit or within a volume
partition shall begin with block zero and be contiguous up to the last
logical block of that logical unit or within that partition.
Transfer length
The TRANSFER LENGTH field specifies the amount of data to be
transferred, usually the number of blocks.
Control
The CONTROL field has a consistently defined meaning across
all commands.
SCSI Commands
7 6 5 4 3 2 1 0
Group Code Command Code
7 6 5 4 3 2 1 0
Vendor
Unique
Reserved Flag Link
Flag
Indicates Target should return Linked CCw/Flag Msg
Link
Used to continue I/O process across multiple commands
Summary of commands implemented by all SCSI devices
This standard defines three commands that all SCSI devices shall
implement - INQUIRY, REQUEST SENSE, and TEST UNIT
READY.
These commands are used to configure the system, to test devices,
and to return important information concerning errors and exception
conditions.
Using the INQUIRY command
Bit
Byte 7 6 5 4 3 2 1 0
0 Operation Code(12h)
2 Reserved
3 Reserved
4 Allocation Length : 47 (2Fh)
5 Reserved
INQUIRY DATA FORMAT
Bit
Byte 7 6 5 4 3 2 1 0
0 Peripheral Qualifier Peripheral Device Type (05h)
1 RMB Reserve
2 0 0 ANSI Version (2)
3 0 TIOP Reserve Response Format (2)
4 Additional Length : 42 (2Ah)
5 Reserve
6 Reserve
7 0 0 0 SYNC 0 Reserve 0 0
8 ~ 15 Vendor Name (8-byte ASCII code) (PIONEER)
16 ~ 31 Product Inquiry Data (16-byte ASCII code)
32 ~ 35 Revision Number (ASCII code) (“XXXX”)
36 Release Version (20h)
37 ~ 46 Revision Date (10-byte ASCII code) (“YYYY/MM/DD”)
Using the REQUEST SENSE command
Bit
Byte 7 6 5 4 3 2 1 0
0 Operation Code(03h)
5 Reserved
SENSE DATA FORMAT
Bit
Byte 7 6 5 4 3 2 1 0
0 Valid Error code ( 70h / 71h )
1 Segment number (00h)
2 FileMK EOM ILI Reserve Sense Key
3 Information byte (MSB)
4 Information byte
5 Information byte
6 Information byte (LSB)
7 Additional Sense Data Length
8 Command-Specification Information (MSB)
9 Command-Specification Information
10 Command-Specification Information
11 Command-Specification Information (LSB)
12 Additional Sense Codes
13 Additional Sense Code Qualifier
14 Field Replaceable Unit Code
15 SKSV Sense-Key Specific (MSB)
16 Sense-Key Specific
17 Sense-Key Specific (LSB)
18 ~ N Additional Sense Bytes
Using the TEST UNIT READY command
Bit
Byte 7 6 5 4 3 2 1 0
0 Operation Code(00h)
5 Reserved
Command for all Device Types
Command name Operation Type
code
EXTENDED COPY 83h O
INQUIRY 12h M
LOG SELECT 4Ch O
LOG SENSE 4Dh O
MODE SELECT(6) 15h Z
MODE SELECT(10) 55h Z
MODE SENSE(6) 1Ah Z
MODE SENSE(10) 5Ah Z
MOVE MEDIUM ATTACHED a A7h Z
PERSISTENT RESERVE IN 5Eh Z
Command for all Device Types
Command name Operation Type
code
PERSISTENT RESERVE OUT 5Fh Z
PREVENT ALLOW MEDIUM 1Eh Z
REMOVAL
READ BUFFER 3Ch O
READ ELEMENT STATUS B4h Z
ATTACHED a
RECEIVE COPY RESULT 84h O
RECEIVE DIAGNOSTIC RESULT 1Ch O
RELEASE(10) 57h Z
RELEASE(6) 17h Z
REPORT DEVICE IDENTIFIER A3h/05h b O
REPORT LUNS A0h X
Command for all Device Types
Command name Operation Type
code
REQUEST SENSE 03h Z
RESERVE(10) 56h Z
RESERVE(6) 16h Z
SEND DIAGNOSTIC 1Dh Z
SET DEVICE IDENTIFIER A4h/06h b O
TEST UNIT READY 00h M
WRITE BUFFER 3Bh Z
action. The operation code value is shown preceding the slash and the service
action value is shown after the slash.
SCSI Disk Commands
Force Reserve [0xE4]
- Force Reservation, overriding normal SCSI protocol
Prefetch [0x34]
- Read disk, place data into cache
GOOD. This status indicates that the device server has successfully
completed the task.