linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problems with packet command
@ 2007-12-03 10:16 Kantor Zsolt
  2007-12-10  7:54 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Kantor Zsolt @ 2007-12-03 10:16 UTC (permalink / raw)
  To: linux-ide

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: problems with packet command
  2007-12-03 10:16 problems with packet command Kantor Zsolt
@ 2007-12-10  7:54 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2007-12-10  7:54 UTC (permalink / raw)
  To: Kantor Zsolt; +Cc: linux-ide

Kantor Zsolt wrote:
> 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.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-10  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03 10:16 problems with packet command Kantor Zsolt
2007-12-10  7:54 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).