.\" 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 "IDE_GET_BEST_PIO_MODE" "9" "09 October 2005" "" ""
.SH NAME
ide_get_best_pio_mode \- get PIO mode from drive
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
u8 ide_get_best_pio_mode (ide_drive_t * \fIdrive\fB, u8 \fImode_wanted\fB, u8 \fImax_mode\fB, ide_pio_data_t * \fId\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdrive\fB\fR
-- undescribed --
.TP
\fB\fImode_wanted\fB\fR
preferred mode
.TP
\fB\fImax_mode\fB\fR
highest allowed
.TP
\fB\fId\fB\fR
pio data
.SH "DESCRIPTION"
.PP
This routine returns the recommended PIO settings for a given drive,
based on the drive->id information and the ide_pio_blacklist[].
This is used by most chipset support modules when ``auto-tuning''\&.
.PP
Drive PIO mode auto selection