Determine device type based on ata-spec signature
unsigned int ata_dev_classify(const struct ata_taskfile * tf);
tf
ATA taskfile register set for device to be identified
Determine from taskfile register contents whether a device is ATA or ATAPI, as per “Signature and persistence” section of ATA/PI spec (volume 1, sect 5.14).
None.
Device type, ATA_DEV_ATA, ATA_DEV_ATAPI, ATA_DEV_PMP or ATA_DEV_UNKNOWN the event of failure.
Jeff Garzik
Author.