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
Detecting IDE disks
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Detecting IDE disks
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).