The Possibility of Porting the Linux player to OS/2
If someone was looking to port the Linux DVD player code to OS/2, I would strongly recommend first consulting a lawyer.
If it is legally all right to do such development, then they would want to look at modifying OS2CDROM.DMD. This driver manages CD-ROM drives in OS/2.
What it lacks is support for a number of new IOCtl calls that support the three new data packets and several new structures used by ATAPI and SCSI DVD drives.
Fortunately, all the documentation you need to implement these IOCtl calls is available in public documents. You can see the Linux implementation in
http://www.kernelnotes.org/pub/linuxhq/raw/kernel.org/2.3.x/drivers/cdrom/cdrom.c and
http://www.kernelnotes.org/pub/linuxhq/raw/kernel.org/2.3.x/include/linux/cdrom.h.
The packets cdrom.c generates are described in the voluminous
"Mt. Fuji Commands for Multimedia Devices"
specification at
ftp://ftp.avc-pioneer.com/Mtfuji4/Spec/.
You can also get the source for the OS2CDROM.DMD driver on the OS/2 DDK site at
http://service.boulder.ibm.com/ddk/.
An alternative to modifying OS2CDROM.DMD is to implement the IOCtl's through OS/2's ASPI interface as CDRecord/2 does to access CD-R burners which are otherwise unsupported in OS/2.
For this you'll need the ASPI router driver which connects user applications to the system level ASPI
interface. You would also be well-advised to obtain the source for CDRecord/2 to see how the thin interface layer it uses to OS/2's ASPI interface works.
Owners of ATAPI (IDE) DVD drives would also need a little piece of software that Daniela Engert (the maker of the DANIS506 IDE driver) is working
on (she says it should be out soon.)
Although originally designed to allow CDRecord/2 to work with ATAPI CD-R drives, it has the bonus feature of making ATAPI devices such as DVD drives look as if they are SCSI devices so they can be accessed through the ASPI interface as well.
Porting the actual DVD player software should be fairly straightforward, requiring a minimal amount of DIVE and DART programming, although the
Linux Video folks figure it will be 9 months to a year before they have a finished player that supports important features like automatic synchronization between video and audio.
Aus: http://www.os2ezine.com/v5n1/dvd.html
[ Leser: 247 ] |