1. NAME

ata_dev_classify - determine device type based on ATA-spec signature

2. SYNOPSIS

unsigned int ata_dev_classify(const struct ata_taskfile *  tf );

3. ARGUMENTS

tf
    ATA taskfile register set for device to be identified

4. 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).

5. LOCKING

None.

6. RETURNS

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

7. AUTHOR

Jeff Garzik
    Author.

8. COPYRIGHT