Page 1 of 1

CD-Rom driver

Posted: Wed Mar 07, 2012 12:13 pm
by shacknetisp
I was wondering how to create a simple cd-rom driver to read from the CD Drive.
(Hopefully without insw/outsw :) )
I am not working with NASM.
Thanks.

Re: CD-Rom driver

Posted: Wed Mar 07, 2012 12:56 pm
by Combuster
Start with ATA and its manual.

Re: CD-Rom driver

Posted: Wed Mar 07, 2012 2:47 pm
by brain
There are multiple layers to this.

Firstly, you want to have an ATA driver as combuster said.
On top of that you want a cdrom driver that supports CD filesystems such as iso9660, rock ridge extensions and joliet extensions.
On top of that you probably want a VFS so you can hook in extra filesystems transparently to user programs.

is9660 is easy to implement. If you like, i can share some of my code which (with a few minor tweaks) sits on top of the ATA code given in these forums.

If you want any further help, just ask.