kernels/linux-2.4.0/drivers/ide/ide-pmac.c
/* Setup timings for the selected drive (master/slave). I still need to verify if this
 * is enough, I beleive selectproc will be called whenever an IDE command is started,
 * but... */
Setup timings for the selected drive (master/slave). I still need to verify if this
is enough, I beleive selectproc will be called whenever an IDE command is started,
but
Setup timings for the selected drive ( master / slave ) . I still need to verify if this is enough I beleive selectproc will be called whenever an IDE command is started but
static void
pmac_ide_selectproc(ide_drive_t *drive)
{
	int i = pmac_ide_find(drive);
	if (i < 0)
		return;
	if (drive->select.all & 0x10)
		out_le32((unsigned *)(IDE_DATA_REG + 0x200 + _IO_BASE), pmac_ide[i].timings[1]);
	else
		out_le32((unsigned *)(IDE_DATA_REG + 0x200 + _IO_BASE), pmac_ide[i].timings[0]);
}
static void pmac_ide_selectproc ( ide_drive_t * drive ) { int i = pmac_ide_find ( drive ) ; if ( i < 0 ) return ; if ( drive -> select . all & 0x10 ) out_le32 ( ( unsigned * ) ( IDE_DATA_REG + 0x200 + _IO_BASE ) , pmac_ide [ i ] . timings [ 1 ] ) ; else out_le32 ( ( unsigned * ) ( IDE_DATA_REG + 0x200 + _IO_BASE ) , pmac_ide [ i ] . timings [ 0 ] ) ; }
Setup timings for the selected drive (master/slave).
Setup timings for the selected drive ( master / slave ) .