patch-2.4.7 linux/drivers/ide/slc90e66.c

Next file: linux/drivers/ieee1394/Config.in
Previous file: linux/drivers/ide/piix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/drivers/ide/slc90e66.c linux/drivers/ide/slc90e66.c
@@ -349,11 +349,11 @@
 {
 #if 1
 	byte reg47 = 0, ata66 = 0;
-	byte mask = hwif->channel ? 0x02 : 0x01;
+	byte mask = hwif->channel ? 0x01 : 0x02;	/* bit0:Primary */
 
 	pci_read_config_byte(hwif->pci_dev, 0x47, &reg47);
 
-	ata66 = (reg47 & mask) ? 1 : 0;
+	ata66 = (reg47 & mask) ? 0 : 1;	/* bit[0(1)]: 0:80, 1:40 */
 #else
 	byte ata66 = 0;
 #endif

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