Page 1 of 1

Detecting IDE disks

Posted: Mon Dec 12, 2005 6:31 pm
by purevoid
Hi,

How can I detect what IDE disks are present? I think this will help to design my IDE code rather than trying to cope for non-present disks.

Jonathan

Re:Detecting IDE disks

Posted: Tue Dec 13, 2005 5:28 am
by Pype.Clicker
basically, by probing the registers on that disk and see if they respond, then by trying to issue the 'ATA_IDENTIFY' command and see what comes back. I strongly recommand that you look at ATADRVR document referenced in the QuickLinkz and in the http://www.osdev.org/osfaq2/index.php/AtapiCdrom page (website is ata-atapi.com ... then google for atadrvr.zip there).