Lines Matching defs:drive
32 * with the third, 1GB drive: I got 3MB/s (hdparm), but sometimes
34 * not this drive now, so I can't try it again.
51 * got only one drive to set, but have to set both drives.
53 * the second drive, compute_pios use ide_get_best_pio_mode
55 * If you then set the second drive to another PIO, the old value
108 /* In fact, I do not have any PIO 4 drive
121 * and till reset drive is inaccessible.
122 * This (hw) read prefetch is safe on my drive.
142 static void compute_pios(ide_drive_t *drive, byte pio)
143 /* Store values into drive->drive_data
146 * pio - PIO mode for selected drive (for other we don't know)
150 ide_hwif_t *hwif = HWIF(drive);
152 drive->drive_data = ide_get_best_pio_mode(drive, pio, OPTI621_MAX_PIO, NULL);
154 drive = &hwif->drives[d];
155 if (drive->present) {
156 if (drive->drive_data == PIO_DONT_KNOW)
157 drive->drive_data = ide_get_best_pio_mode(drive, 255, OPTI621_MAX_PIO, NULL);
159 printk("%s: Selected PIO mode %d\n", drive->name, drive->drive_data);
162 drive->drive_data = PIO_NOT_EXIST;
243 static void opti621_tune_drive (ide_drive_t *drive, byte pio)
253 ide_hwif_t *hwif = HWIF(drive);
255 /* sets drive->drive_data for both drives */
256 compute_pios(drive, pio);
289 /* program primary drive */
294 /* program secondary drive */
299 write_reg(0x85, CNTRL_REG); /* use Register-A for drive 0 */
300 /* use Register-B for drive 1 */