give me some guide on SCSIOP_READ_TOC

Hi folks,

I am writing a scsi miniport driver wants to support cd-rom device. Can somebody gives me some guide on how to deal with SCSIOP_READ_TOC?

Sorry for my stupid that I cannot find any data structure on WLK header files. I have searched ntdev list and found following data structure:

typedef struct _TOC_FULLDESC
{
BYTE bSession; // Session number
BYTE fControl : 4; // Control bits
BYTE fAdr : 4; // Adr bits
BYTE bTno;
BYTE bPoint;
BYTE bMin;
BYTE bSec;
BYTE bFrame;
BYTE bZero;
BYTE bPMin;
BYTE bPSec;
BYTE bPFrame;
} TOC_FULLDESC, *PTOC_FULLDESC;

typedef struct _TOC_FULL {
BYTE msbSize[2]; // TOC Size
BYTE bFirstSession; // First session
BYTE bLastSession; // Last session
TOC_FULLDESC TOCDescs[1]; // TOC descriptors
} TOC_FULL, *PTOC_FULL;

where are they from? any spec?

Best regards – Wayne

Presumably you have a SCSI specification around - you should look there.

-p

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@oracle.com
Sent: Saturday, September 27, 2008 2:29 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] give me some guide on SCSIOP_READ_TOC

Hi folks,

I am writing a scsi miniport driver wants to support cd-rom device. Can somebody gives me some guide on how to deal with SCSIOP_READ_TOC?

Sorry for my stupid that I cannot find any data structure on WLK header files. I have searched ntdev list and found following data structure:

typedef struct _TOC_FULLDESC
{
BYTE bSession; // Session number
BYTE fControl : 4; // Control bits
BYTE fAdr : 4; // Adr bits
BYTE bTno;
BYTE bPoint;
BYTE bMin;
BYTE bSec;
BYTE bFrame;
BYTE bZero;
BYTE bPMin;
BYTE bPSec;
BYTE bPFrame;
} TOC_FULLDESC, *PTOC_FULLDESC;

typedef struct _TOC_FULL {
BYTE msbSize[2]; // TOC Size
BYTE bFirstSession; // First session
BYTE bLastSession; // Last session
TOC_FULLDESC TOCDescs[1]; // TOC descriptors
} TOC_FULL, *PTOC_FULL;

where are they from? any spec?

Best regards – Wayne


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

>

Hi folks,

I am writing a scsi miniport driver wants to support cd-rom device. Can
somebody gives me some guide on how to deal with SCSIOP_READ_TOC?

Sorry for my stupid that I cannot find any data structure on WLK header
files. I have searched ntdev list and found following data structure:

You can find the WDK definition of the TOC in the file “ntddcdrm.h”
You can find information on read TOC in the draft document Mmc6r02.pdf
from www.t10.org.


Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services