Skip to contentSkip to conversation

problems with packet command

DISCUSSION Kantor Zsolt 2 participants 2 messages Dec 3, 2007 – Dec 10, 2007 libata

lore
Share & tools
lore
#0 lore raw

Hi, I'm developing an application that uses cd-rom IOCTL's. All is fine but I have one problem I can not set up a packet command, because I don't know exactly how to fill out the 12 byte command field. I searched the internet, looked in the cdrom.c driver, some other programs source code, but I don't have a clear picture about that. I just know that the first element cmd[0] is the command.
Would somebody please explain me how to fill out the 12 bytes ? or if not then at least could point out a good online resource. You are my last hope

Thanks
Kantor

      ____________________________________________________________________________________

Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

#1 lore raw
Quoted 10 lines · Kantor Zsolt

Hi, I'm developing an application that uses cd-rom IOCTL's. All is fine but I have one problem I can not set up a packet command, because I don't know exactly how to fill out the 12 byte command field. I searched the internet, looked in the cdrom.c driver, some other programs source code, but I don't have a clear picture about that. I just know that the first element cmd[0] is the command.

Would somebody please explain me how to fill out the 12 bytes ? or if not then at least could point out a good online resource. You are my last hope

That field contains SCSI CDBs which are described in SCSI standards. You can download standard drafts from t10.org freely and drafts are as good as the real ones. You'll need to look at SPC and MMC standards.

Signature · 1 line
tejun