Page 1 of 1

ATA and ATAPI Drive type

Posted: Sun Feb 06, 2011 12:20 pm
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

Re: ATA and ATAPI Drive type

Posted: Sun Feb 06, 2011 12:24 pm
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.

Re: ATA and ATAPI Drive type

Posted: Sun Feb 06, 2011 2:17 pm
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.