.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "ATA_DEV_TRY_CLASSIFY" "9" "09 October 2005" "" ""
.SH NAME
ata_dev_try_classify \- Parse returned ATA device signature
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
u8 ata_dev_try_classify (struct ata_port * \fIap\fB, unsigned int \fIdevice\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIap\fB\fR
ATA channel to examine
.TP
\fB\fIdevice\fB\fR
Device to examine (starting at zero)
.SH "DESCRIPTION"
.PP
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.
.PP
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 \fBata_dev_classify\fR\&.
.SH "LOCKING"
.PP
caller.