other versions
- wheezy 3.2.78-1
ATA_DEV_CLASSIFY(9) | libata Library | ATA_DEV_CLASSIFY(9) |
NAME¶
ata_dev_classify - determine device type based on ATA-spec signatureSYNOPSIS¶
unsigned
int
ata_dev_classify(const struct ata_taskfile * tf);
ARGUMENTS¶
tfATA taskfile register set for device to be
identified
DESCRIPTION¶
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).LOCKING¶
None.RETURNS¶
Device type, ATA_DEV_ATA, ATA_DEV_ATAPI, ATA_DEV_PMP or ATA_DEV_UNKNOWN the event of failure.AUTHOR¶
Jeff GarzikAuthor.
COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |