ata_dev_try_classify(9)
NAME
ata_dev_try_classify - Parse returned ATA device signature
SYNOPSIS
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
DESCRIPTION
- After an event -- SRST, E.D.D., or SATA COMRESET -- oc
- curs, 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 val
- ue, 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.