.\" 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_CHOOSE_XFER_MODE" "9" "09 October 2005" "" ""
.SH NAME
ata_choose_xfer_mode \- attempt to find best transfer mode
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ata_choose_xfer_mode (struct ata_port * \fIap\fB, u8 * \fIxfer_mode_out\fB, unsigned int * \fIxfer_shift_out\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIap\fB\fR
Port for which an xfer mode will be selected
.TP
\fB\fIxfer_mode_out\fB\fR
(output) SET FEATURES - XFER MODE code
.TP
\fB\fIxfer_shift_out\fB\fR
(output) bit shift that selects this mode
.SH "DESCRIPTION"
.PP
Based on host and device capabilities, determine the
maximum transfer mode that is amenable to all.
.SH "LOCKING"
.PP
PCI/etc. bus probe sem.
.SH "RETURNS"
.PP
Zero on success, negative on error.