1ATA_DEV_CLASSIFY(9) libata Library ATA_DEV_CLASSIFY(9)
2
3
4
6 ata_dev_classify - determine device type based on ATA-spec signature
7
9 unsigned int ata_dev_classify(const struct ata_taskfile * tf);
10
12 tf
13 ATA taskfile register set for device to be identified
14
16 Determine from taskfile register contents whether a device is ATA or
17 ATAPI, as per “Signature and persistence” section of ATA/PI spec
18 (volume 1, sect 5.14).
19
21 None.
22
24 Device type, ATA_DEV_ATA, ATA_DEV_ATAPI, ATA_DEV_PMP or ATA_DEV_UNKNOWN
25 the event of failure.
26
28 Jeff Garzik
29 Author.
30
32Kernel Hackers Manual 3.10 June 2019 ATA_DEV_CLASSIFY(9)