ATA and ATAPI Drive type

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
User avatar
iocoder
Member
Member
Posts: 208
Joined: Sun Oct 18, 2009 5:47 pm
Libera.chat IRC: iocoder
Location: Alexandria, Egypt | Ottawa, Canada
Contact:

ATA and ATAPI Drive type

Post by iocoder »

hello!
i would like to know how to detect the type of an ATA or ATAPI Drive, for example, ATAPI Drive is a CD-ROM, CD-RW, DVD-ROM, DVD-RW, Blue-Ray Device, Zip Drive, or Tape Drive.
anyone has an idea about that?
thanks in advance and regards
Dario
Member
Member
Posts: 117
Joined: Sun Aug 31, 2008 12:39 pm

Re: ATA and ATAPI Drive type

Post by Dario »

I'm not ATA or PCI expert, but I think that device capability can be pulled out from PCI configuration space. Not sure if ATA provides such a capability.
____
Dario
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: ATA and ATAPI Drive type

Post by quok »

You'll want to find yourself a copy of the ATA/ATAPI specs, and familiarize yourself with the IDENTIFY DEVICE and IDENTIFY PACKET DEVICE commands. Then of course to actually do much of anything else with ATAPI devices, you'll need the SCSI docs as well.

And that doesn't even address SATA/SATAPI/SAS devices. There's specs for those, too.

GOOGLE will be your friend.
Post Reply