ata_dev_try_classify(9)

ata_dev_try_classify9

Parse returned ata device signature

Usage

unsigned int ata_dev_try_classify(struct ata_port * ap, unsigned int device, u8 * r_err);

Arguments

ap

ATA channel to examine

device

Device to examine (starting at zero)

r_err

Value of error register on completion

Overview

After an event -- SRST, E.D.D., or SATA COMRESET -- occurs, an ATA/ATAPI-defined set of values is placed in the ATA shadow registers, indicating the results of device detection and diagnostics.

Select the ATA device, and read the values from the ATA shadow registers. Then parse according to the Error register value, and the spec-defined values examined by ata_dev_classify.

Locking

caller.

Returns

Device type - ATA_DEV_ATA, ATA_DEV_ATAPI or ATA_DEV_NONE.

Author

Jeff Garzik

Author.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Also shipped by linux-manual-2.6.24. Parsed by carta from the page's man source.