.\" 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_SELECT" "9" "09 October 2005" "" ""
.SH NAME
ata_dev_select \- Select device 0/1 on ATA bus
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void ata_dev_select (struct ata_port * \fIap\fB, unsigned int \fIdevice\fB, unsigned int \fIwait\fB, unsigned int \fIcan_sleep\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIap\fB\fR
ATA channel to manipulate
.TP
\fB\fIdevice\fB\fR
ATA device (numbered from zero) to select
.TP
\fB\fIwait\fB\fR
non-zero to wait for Status register BSY bit to clear
.TP
\fB\fIcan_sleep\fB\fR
non-zero if context allows sleeping
.SH "DESCRIPTION"
.PP
Use the method defined in the ATA specification to
make either device 0, or device 1, active on the
ATA channel.
.PP
This is a high-level version of \fBata_std_dev_select\fR,
which additionally provides the services of inserting
the proper pauses and status polling, where needed.
.SH "LOCKING"
.PP
caller.