CD-Rom driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
shacknetisp
Member
Member
Posts: 29
Joined: Wed Jan 25, 2012 2:37 pm

CD-Rom driver

Post 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.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: CD-Rom driver

Post by Combuster »

Start with ATA and its manual.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
brain
Member
Member
Posts: 234
Joined: Thu Nov 05, 2009 5:04 pm
Location: UK
Contact:

Re: CD-Rom driver

Post 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.
Post Reply