patch-2.3.99-pre6 linux/drivers/ide/ide-dma.c

Next file: linux/drivers/ide/ide-floppy.c
Previous file: linux/drivers/ide/ide-disk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/ide/ide-dma.c linux/drivers/ide/ide-dma.c
@@ -368,7 +368,13 @@
 		}
 	} else if ((id->field_valid & 4) &&
 		   (id->dma_ultra & (id->dma_ultra >> 8) & 7)) {
-		printk(", UDMA(33)");	/* UDMA BIOS-enabled! */
+		if ((id->dma_ultra >> 10) & 1) {
+			printk(", UDMA(33)");	/* UDMA BIOS-enabled! */
+		} else if ((id->dma_ultra >> 9) & 1) {
+			printk(", UDMA(25)");	/* UDMA BIOS-enabled! */
+		} else {
+			printk(", UDMA(16)");	/* UDMA BIOS-enabled! */
+		}
 	} else if (id->field_valid & 4) {
 		printk(", (U)DMA");	/* Can be BIOS-enabled! */
 	} else {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)