Return to BSD News archive
Xref: sserve comp.periphs.scsi:16821 comp.os.386bsd.questions:7817
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!paladin.american.edu!howland.reston.ans.net!cs.utexas.edu!uunet!news.iij.ad.jp!wnoc-tyo-news!rena!cnvxjp!omnis.co.jp!specgw!tama!amurai
From: amurai@tama.specgw.co.jp (Atsushi Murai)
Newsgroups: comp.periphs.scsi,comp.os.386bsd.questions,fj.os.386bsd,fj.os.linux
Subject: [Q] How to use TOC for PhotoCD(Single/MultiSession)
Message-ID: <CJ8LHK.7q@tama.specgw.co.jp>
Date: 7 Jan 94 01:58:18 GMT
Reply-To: amurai@spec.co.jp
Followup-To: comp.periphs.scsi
Organization: System Planning and Engineering Co.,Ltd
Lines: 81
First of all, Thank you for your replying to my previous question of
CD-ROM XA on TOSHIBA XM3401B. I beleive I could not be done without
your assistance.
Let's move to main dish, I almost done a making driver and having a
chance to do Another Group (Sony/Pioneer/TEXEL) drives. Of course, I
can access the Photo_CD by READ TOC commands (format=00b,01b) that
rmillett@netcom.com send me. But after my investgation, I came up some
questions as *BSD driver.
--- Q1. How should I use TOC with Photo_CD(Single/Multi Session)? -----
I implements each TOC entries returned by READ TOC Format 00b
command that is General SCSI-2 as a partition. The partition
mechanisum should be keep not only a start sector but also number of
sector. (The purpose of number of sector are checking the boundary at
reading Raw device and especially for TOSHIBA Group, a partion number
is tag for changing a SECTOR DATA FORMAT issuing by MODE SELECT under
the Multi Format)
> The starting track field specifies the starting track number for which
> the data shall be returned. If this value is zero, the table of contents
> data shall begin with the first track on the medium. The data is returned
> in contiguous ascending track number order.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
So I just make a Number of block from follows calcuration.
Number of Sector = Start sector in Current TOC entry -
Start Sector in Previous TOC entry
And then READ TOC format 01b points last track number if
Sony groups drive. I can get first sector on Last session
from the partition table.
But when I try to access the Single Session Photo CD that is made by
KODAK LAB. for personal, the READ TOC Entry commands returns SEVEN
entries not a ONE. And it seems SEVEN partitions(TOC) make a one
single Session PhotoCD. This was not happen on CD-ROM "KODAK photo CD
sampler"
+-----------+ +----------+ \
|TOC Entry1 +--->| | \
+-----------+ +----------+ \
|TOC Entry2 +--->| | \
+-----------+ +----------+ \
|TOC Entry3 +--->| | Looks like all TOC Entries make
+-----------+ +----------+ / a single Session PhotoCD(ISO9660)
~ ~ ~ ~ /
+-----------+ +----------+ /
|TOC Entry7 +--->| | /
+-----------+ +----------+ /
Yes it's easy to just merging but if case of multi session Disk or
Mixing Data format in same disk (Allowing as CD-ROM i.e. Mode1, Mode2
form1, CD-DA ). It wii be messed up without knowing to how merege them.
> The ADR field gives the type of information encoded in the Q Sub-channel of
> the block where this TOC entry was found.
> The control field indicates the attributes of the track.
I did check them but just control field indicate type for CD-DA/CD-ROM.
0x00 - CD-DA
0x04 - CD-ROM
---- Q2. Is ther any capability for Reading CD-DA data through ---------
Sony Groups drive ? If it does, how ?
TOSHIBA Group did by a MODE SELECT.
If you have a any idea or comment for my two question, please email me.
I will summerize as a *source code*.
Thanks in advance.
Atsushi.
--
Atsushi Murai Email: amurai@spec.co.jp
System Planning and Engineering Co,.Ltd. Voice: +81-33833-5341