.\" 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_IDENTIFY" "9" "09 October 2005" "" ""
.SH NAME
ata_dev_identify \- obtain IDENTIFY x DEVICE page
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void ata_dev_identify (struct ata_port * \fIap\fB, unsigned int \fIdevice\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIap\fB\fR
port on which device we wish to probe resides
.TP
\fB\fIdevice\fB\fR
device bus address, starting at zero
.SH "DESCRIPTION"
.PP
Following bus reset, we issue the IDENTIFY [PACKET] DEVICE
command, and read back the 512-byte device information page.
The device information page is fed to us via the standard
PIO-IN protocol, but we hand-code it here. (TODO: investigate
using standard PIO-IN paths)
.PP
After reading the device information page, we use several
bits of information from it to initialize data structures
that will be used during the lifetime of the ata_device.
Other data from the info page is used to disqualify certain
older ATA devices we do not wish to support.
.SH "LOCKING"
.PP
Inherited from caller. Some functions called by this function
obtain the host_set lock.