patch-2.4.10 linux/drivers/ide/sis5513.c
Next file: linux/drivers/ide/sl82c105.c
Previous file: linux/drivers/ide/serverworks.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Fri Sep 7 09:28:38 2001
- Orig file:
v2.4.9/linux/drivers/ide/sis5513.c
- Orig date:
Sun Aug 12 13:27:59 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/ide/sis5513.c linux/drivers/ide/sis5513.c
@@ -96,7 +96,7 @@
{ 4, "Mode 2" },
{ 3, "Mode 3" },
{ 2, "Mode 4" },
- { 0, "Undefined" }
+ { 0, "Mode 5" }
};
static __inline__ char * find_udma_mode (byte cycle_time)
@@ -135,7 +135,7 @@
};
static char * cycle_time [] = {
- "Undefined", "2 CLCK",
+ "2 CLK", "2 CLK",
"3 CLK", "4 CLK",
"5 CLK", "6 CLK",
"7 CLK", "8 CLK"
@@ -495,7 +495,7 @@
printk("%s: %s drive%d\n", drive->name, ide_xfer_verbose(speed), drive->dn);
#endif /* SIS5513_DEBUG_DRIVE_INFO */
- return ((int) ((id->dma_ultra >> 11) & 3) ? ide_dma_on :
+ return ((int) ((id->dma_ultra >> 11) & 7) ? ide_dma_on :
((id->dma_ultra >> 8) & 7) ? ide_dma_on :
((id->dma_mword >> 8) & 7) ? ide_dma_on :
((id->dma_1word >> 8) & 7) ? ide_dma_on :
@@ -515,7 +515,7 @@
}
dma_func = ide_dma_off_quietly;
if (id->field_valid & 4) {
- if (id->dma_ultra & 0x001F) {
+ if (id->dma_ultra & 0x003F) {
/* Force if Capable UltraDMA */
dma_func = config_chipset_for_dma(drive, 1);
if ((id->field_valid & 2) &&
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)