Detecting IDE disks

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
purevoid

Detecting IDE disks

Post 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
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Detecting IDE disks

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