kernels/linux-2.4.0/drivers/ide/qd6580.c
/*
 * tune_snd_ide
 *
 * Tunes the whole secondary hwif, ie tunes each drives, and takes the worse
 * timings to tune qd6580
 */
tune_snd_ide
Tunes the whole secondary hwif, ie tunes each drives, and takes the worse
timings to tune qd6580
tune_snd_ide Tunes the whole secondary hwif ie tunes each drives and takes the worse timings to tune qd6580
static void tune_snd_ide ( ide_hwif_t *hwif, byte pio )
{
	ide_hd_timings_t t[2]={{0,0},{0,0}};
	tune_snd_drive (&hwif->drives[0], pio, &t[0]);
	tune_snd_drive (&hwif->drives[1], pio, &t[1]);
	t[0].active_time   = IDE_MAX(t[0].active_time,  t[1].active_time);
	t[0].recovery_time = IDE_MAX(t[0].recovery_time,t[1].recovery_time);
	write_reg(compute_timing (hwif->name, &t[0]),basePort+0x02);
}
static void tune_snd_ide ( ide_hwif_t * hwif , byte pio ) { ide_hd_timings_t t [ 2 ] = { { 0 , 0 } , { 0 , 0 } } ; tune_snd_drive ( & hwif -> drives [ 0 ] , pio , & t [ 0 ] ) ; tune_snd_drive ( & hwif -> drives [ 1 ] , pio , & t [ 1 ] ) ; t [ 0 ] . active_time = IDE_MAX ( t [ 0 ] . active_time , t [ 1 ] . active_time ) ; t [ 0 ] . recovery_time = IDE_MAX ( t [ 0 ] . recovery_time , t [ 1 ] . recovery_time ) ; write_reg ( compute_timing ( hwif -> name , & t [ 0 ] ) , basePort + 0x02 ) ; }
tune_snd_ide
 Tunes the whole secondary hwif, ie tunes each drives, and takes the worse
 timings to tune qd6580
tune_snd_ide Tunes the whole secondary hwif ie tunes each drives and takes the worse timings to tune qd6580