• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/ide/

Lines Matching defs:drive

60  *  Version 0.07	Changed to more conservative drive tuning policy.
170 * Registers and masks for easy access by drive index:
181 * Current cmd640 timing values for each drive.
360 * Returns 1 if an IDE interface/drive exists at 0x170,
404 * Check whether prefetch is on for a drive,
409 ide_drive_t *drive = cmd_drives[index];
413 drive->no_unmask = 0;
414 drive->no_io_32bit = 1;
415 drive->io_32bit = 0;
418 drive->no_unmask = 1;
419 drive->unmask = 0;
421 drive->no_io_32bit = 0;
452 * Sets prefetch mode for a drive.
456 ide_drive_t *drive = cmd_drives[index];
466 drive->no_unmask = 1;
467 drive->unmask = 0;
469 drive->no_io_32bit = 0;
472 drive->no_unmask = 0;
473 drive->no_io_32bit = 1;
474 drive->io_32bit = 0;
482 * Dump out current drive clocks settings
509 * This routine retrieves the initial drive timings from the chipset.
538 * for a drive into the cmd640 chipset registers to active them.
548 * Set up address setup count and drive read/write timing registers.
550 * each drive. Secondary interface has one common set of registers,
593 * Set a specific pio_mode for a drive
637 * In a perfect world, we might set the drive pio mode here
650 static void cmd640_tune_drive (ide_drive_t *drive, byte mode_wanted)
656 while (drive != cmd_drives[index]) {
658 printk("%s: bad news in cmd640_tune_drive\n", drive->name);
670 printk("%s: %sabled cmd640 fast host timing (devsel)\n", drive->name, mode_wanted ? "en" : "dis");
677 printk("%s: %sabled cmd640 prefetch\n", drive->name, mode_wanted ? "en" : "dis");
681 (void) ide_get_best_pio_mode (drive, mode_wanted, 5, &d);
685 drive->name,
756 * for access to the drive's command register block,
817 ide_drive_t *drive = cmd_drives[index];
819 if (drive->autotune || ((index > 1) && second_port_toggled)) {
822 * This way, the drive identify code has a better chance.
829 printk("cmd640: drive%d timings/prefetch cleared\n", index);
837 printk("cmd640: drive%d timings/prefetch(%s) preserved",
838 index, drive->no_io_32bit ? "off" : "on");
843 * Set the drive unmask flags to match the prefetch setting
846 printk("cmd640: drive%d timings/prefetch(%s) preserved\n",
847 index, drive->no_io_32bit ? "off" : "on");