patch-2.3.40 linux/drivers/block/ide-features.c
Next file: linux/drivers/block/ide-geometry.c
Previous file: linux/drivers/block/ide-dma.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Fri Jan 14 00:50:53 2000
- Orig file:
v2.3.39/linux/drivers/block/ide-features.c
- Orig date:
Mon Dec 20 18:48:21 1999
diff -u --recursive --new-file v2.3.39/linux/drivers/block/ide-features.c linux/drivers/block/ide-features.c
@@ -188,7 +188,7 @@
printk("%s: Speed warnings UDMA 3/4 is not functional.\n", HWIF(drive)->name);
return 1;
}
- if ((drive->id->word93 & 0x2000) == 0) {
+ if ((drive->id->hw_config & 0x2000) == 0) {
printk("%s: Speed warnings UDMA 3/4 is not functional.\n", drive->name);
return 1;
}
@@ -213,6 +213,22 @@
return 0;
}
+#if 0
+ide_startstop_t set_drive_speed_intr (ide_drive_t *drive)
+{
+ byte stat;
+
+ if (!OK_STAT(stat=GET_STAT(),READY_STAT,BAD_STAT))
+/*
+ * if (!OK_STAT(stat=GET_STAT(),DRIVE_READY,BAD_STAT))
+ * if (stat != DRIVE_READY)
+ */
+ (void) ide_dump_status(drive, "set_drive_speed_status", stat);
+
+ return ide_stopped;
+}
+#endif
+
int ide_config_drive_speed (ide_drive_t *drive, byte speed)
{
unsigned long flags;
@@ -243,6 +259,10 @@
#endif
__restore_flags(flags); /* local CPU only */
+
+#if 0
+ ide_set_handler(drive, &set_drive_speed_intr, WAIT_CMD, NULL);
+#endif
stat = GET_STAT();
if (stat != DRIVE_READY)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)