Loading drivers/ide/pci/cmd640.c +48 −46 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ #define CMD640_PREFETCH_MASKS 1 //#define CMD640_DUMP_REGS /*#define CMD640_DUMP_REGS */ #include <linux/types.h> #include <linux/kernel.h> Loading @@ -112,7 +112,7 @@ /* * This flag is set in ide.c by the parameter: ide0=cmd640_vlb */ int cmd640_vlb = 0; int cmd640_vlb; /* * CMD640 specific registers definition. Loading Loading @@ -613,13 +613,14 @@ static void cmd640_set_pio_mode(ide_drive_t *drive, const u8 pio) if (pio & 1) b |= 0x27; put_cmd640_reg(CNTRL, b); printk("%s: %sabled cmd640 fast host timing (devsel)\n", drive->name, (pio & 1) ? "en" : "dis"); printk("%s: %sabled cmd640 fast host timing (devsel)\n", drive->name, (pio & 1) ? "en" : "dis"); return; case 8: /* set prefetch off */ case 9: /* set prefetch on */ set_prefetch_mode(drive, index, pio & 1); printk("%s: %sabled cmd640 prefetch\n", drive->name, (pio & 1) ? "en" : "dis"); printk("%s: %sabled cmd640 prefetch\n", drive->name, (pio & 1) ? "en" : "dis"); return; } Loading Loading @@ -836,8 +837,9 @@ static int __init cmd640x_init(void) #ifdef CONFIG_BLK_DEV_CMD640_ENHANCED if (drive->autotune || ((index > 1) && second_port_toggled)) { /* * Reset timing to the slowest speed and turn off prefetch. * This way, the drive identify code has a better chance. * Reset timing to the slowest speed and turn off * prefetch. This way, the drive identify code has * a better chance. */ setup_counts [index] = 4; /* max possible */ active_counts [index] = 16; /* max possible */ Loading Loading
drivers/ide/pci/cmd640.c +48 −46 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ #define CMD640_PREFETCH_MASKS 1 //#define CMD640_DUMP_REGS /*#define CMD640_DUMP_REGS */ #include <linux/types.h> #include <linux/kernel.h> Loading @@ -112,7 +112,7 @@ /* * This flag is set in ide.c by the parameter: ide0=cmd640_vlb */ int cmd640_vlb = 0; int cmd640_vlb; /* * CMD640 specific registers definition. Loading Loading @@ -613,13 +613,14 @@ static void cmd640_set_pio_mode(ide_drive_t *drive, const u8 pio) if (pio & 1) b |= 0x27; put_cmd640_reg(CNTRL, b); printk("%s: %sabled cmd640 fast host timing (devsel)\n", drive->name, (pio & 1) ? "en" : "dis"); printk("%s: %sabled cmd640 fast host timing (devsel)\n", drive->name, (pio & 1) ? "en" : "dis"); return; case 8: /* set prefetch off */ case 9: /* set prefetch on */ set_prefetch_mode(drive, index, pio & 1); printk("%s: %sabled cmd640 prefetch\n", drive->name, (pio & 1) ? "en" : "dis"); printk("%s: %sabled cmd640 prefetch\n", drive->name, (pio & 1) ? "en" : "dis"); return; } Loading Loading @@ -836,8 +837,9 @@ static int __init cmd640x_init(void) #ifdef CONFIG_BLK_DEV_CMD640_ENHANCED if (drive->autotune || ((index > 1) && second_port_toggled)) { /* * Reset timing to the slowest speed and turn off prefetch. * This way, the drive identify code has a better chance. * Reset timing to the slowest speed and turn off * prefetch. This way, the drive identify code has * a better chance. */ setup_counts [index] = 4; /* max possible */ active_counts [index] = 16; /* max possible */ Loading