Lines Matching +full:mode +full:- +full:recovery
2 * Copyright (C) 1995-2000 Linus Torvalds & author (see below)
6 * HT-6560B EIDE-controller support
8 * Use hdparm utility to enable PIO mode support.
10 * Author: Mikko Ala-Fossi <maf@iki.fi>
34 * The special i/o-port that HT-6560B uses to configuration:
39 * The special i/o-port that HT-6560A uses to configuration:
42 * bit2 (0x04): "0" enables multi-master system (?)
53 * FIFO + PREFETCH (both a/b-model)
74 * gives. [see cmd640.c for an extreme example of this. -ml]
77 * The higher nibble of value is the Recovery Time (rt) and the lower nibble
85 * High nibble: Recovery Cycle Time (rt)
93 * the first value is the Recovery Time and the second value is the
106 * on the F.G.I./Holtek HT-6560B VLB IDE interface.
107 * The HT-6560B can only enable one IDE port at a time, and requires a
116 ide_hwif_t *hwif = drive->hwif; in ht6560b_dev_select()
131 if (drive->media != ide_disk || in ht6560b_dev_select()
132 (drive->dev_flags & IDE_DFLAG_PRESENT) == 0) in ht6560b_dev_select()
146 outb(timing, hwif->io_ports.device_addr); in ht6560b_dev_select()
147 (void)inb(hwif->io_ports.status_addr); in ht6560b_dev_select()
150 drive->name, select, timing); in ht6560b_dev_select()
155 outb(drive->select | ATA_DEVICE_OBS, hwif->io_ports.device_addr); in ht6560b_dev_select()
170 for (i=3;i>0;i--) { in try_to_init_ht6560b()
213 * actual cycle time for recovery and activity in ht_pio2timings()
216 active_time = t->active; in ht_pio2timings()
217 recovery_time = cycle_time - active_time - t->setup; in ht_pio2timings()
232 …printk("ht6560b: drive %s setting pio=%d recovery=%d (%dns) active=%d (%dns)\n", drive->name, pio,… in ht_pio2timings()
239 printk("ht6560b: drive %s setting pio=0\n", drive->name); in ht_pio2timings()
249 * Enable/Disable so called prefetch mode
261 * Prefetch mode and unmask irq seems to conflict in ht_set_prefetch()
264 config |= t; /* enable prefetch mode */ in ht_set_prefetch()
265 drive->dev_flags |= IDE_DFLAG_NO_UNMASK; in ht_set_prefetch()
266 drive->dev_flags &= ~IDE_DFLAG_UNMASK; in ht_set_prefetch()
268 config &= ~t; /* disable prefetch mode */ in ht_set_prefetch()
269 drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; in ht_set_prefetch()
277 printk("ht6560b: drive %s prefetch mode %sabled\n", drive->name, (state ? "en" : "dis")); in ht_set_prefetch()
284 const u8 pio = drive->pio_mode - XFER_PIO_0; in ht6560b_set_pio_mode()
304 printk("ht6560b: drive %s tuned to pio mode %#x timing=%#x\n", drive->name, pio, timing); in ht6560b_set_pio_mode()
310 ide_hwif_t *hwif = drive->hwif; in ht6560b_init_dev()
314 if (hwif->channel) in ht6560b_init_dev()
358 return -ENODEV; in ht6560b_init()
363 return -ENODEV; in ht6560b_init()
375 return -ENODEV; in ht6560b_init()
381 MODULE_DESCRIPTION("HT-6560B EIDE-controller support");