2013年4月4日星期四

IOCTL_SCSI_PASS_THROUGH_DIRECT - Command Descriptor Block (CDB)

IOCTL_SCSI_PASS_THROUGH_DIRECT

Ntddscsi.h


typedef struct SCSI_PASS_THROUGH_DIRECT
{
    USHORT Length;
    UCHAR ScsiStatus;
    UCHAR PathId;
    UCHAR TargetId;
    UCHAR Lun;
    UCHAR CdbLength;
    UCHAR SenseInfoLength;
    UCHAR DataIn;
    ULONG DataTransferLength;
    ULONG TimeOutValue;
    PVOID DataBuffer;
    ULONG SenseInfoOffset;
    UCHAR Cdb[16];
} SCSI_PASS_THROUGH_DIRECT, *PSCSI_PASS_THROUGH_DIRECT;

SCSI Operation Codes
Command Descriptor Blocks 列表
there are specifications for CD/DVD devices (MMC), hard drives (SBC), tape drives (SSC), and more

SCSI Request Block (SRB)  == SCSI Pass Through request

SRBs and CDBs are used across any hard drive whether it's SCSI, ATA, Fibre Channel, RAID, SAS, or others.


SCSI Multimedia Commands



SCSI Multimedia Commands (MMC) defines a SCSI/ATAPI based command set for accessing multimedia features on devices capable of such functionality. T10 subcommittee is responsible for developing it as well as other SCSI command set standards.


R - C/DVD DEVICE (MMC-6) 



Cdrecord(刻录) 用到的命令

43       O          READ TOC/PMA/ATIP
46       M          GET CONFIGURATION
AC       O          GET PERFORMANCE
23       O          READ FORMAT CAPACITIES  read_format_capacities

没有评论:

发表评论