CD Rom recognition under CMOS

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
Craig
Posts: 2
Joined: Wed Aug 31, 2005 11:00 pm
Location: England, UK

CD Rom recognition under CMOS

Post by Craig »

Hey guys,

I have got recognition for Floppy and HardDisk using CMOS codes 10h and 12h, making life simple. This means on boot of my kernel I can detect the presence of the floppies and Harddisks.

Wondered if anyone knows if there is a little cheat like this for the CD rom drive(s) ?

At this stage I am starting work on implementing filesystems and as part of my boot I just want to detect which devices I have attached. My OS will only be interested (initially) in the presence of Floppy/HD and CD/DVD drives.

Any ideas or areas you could point me at.

Googling is a nightmare to find this information....

Regards

Craig
Osbios
Member
Member
Posts: 116
Joined: Fri Jun 10, 2005 11:00 pm

Re: CD Rom recognition under CMOS

Post by Osbios »

I think you would use ide cdrom? Then you need ATA/ATAPI stuff -> google :)
dw 0xAA55
Craig
Posts: 2
Joined: Wed Aug 31, 2005 11:00 pm
Location: England, UK

Re: CD Rom recognition under CMOS

Post by Craig »

Thanks for the info, I have already started googling with this information. I was hoping that some kind soul who has already encountered this or has already implemented device detection (particularly CD ROM) could offer some C demo code, saves having to re-invent what somebody had already done.

So far using ouport(0x71, 10h or 12h) followed by inport(0x71) has provided the simple CMOS support for Floppy (10h) and HDD (12h) making life sweet... was wondering if there was a port other than 0x71 which can be used for the IDE CDRom without having to implement ATA/ATAPI right now.

Cheers

Craig
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re: CD Rom recognition under CMOS

Post by bubach »

"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Post Reply