1ATA_DEV_CLASSIFY(9)             libata Library             ATA_DEV_CLASSIFY(9)
2
3
4

NAME

6       ata_dev_classify - determine device type based on ATA-spec signature
7

SYNOPSIS

9       unsigned int ata_dev_classify(const struct ata_taskfile * tf);
10

ARGUMENTS

12       tf
13           ATA taskfile register set for device to be identified
14

DESCRIPTION

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

LOCKING

21       None.
22

RETURNS

24       Device type, ATA_DEV_ATA, ATA_DEV_ATAPI, ATA_DEV_PMP or ATA_DEV_UNKNOWN
25       the event of failure.
26

AUTHOR

28       Jeff Garzik
29           Author.
30
32Kernel Hackers Manual 3.10         June 2019               ATA_DEV_CLASSIFY(9)
Impressum