kernel-fxtec-pro1x/drivers/ide/pci
Sergei Shtylyov 7b73ee05d0 hpt366: init code rewrite
Finally, rework the driver init.  code to correctly handle all the chip
variants HighPoint has created so far.  This should cure the rest of the
timing issues in the driver (especially, on 66 MHz PCI) caused by the
HighPoint's habit of switching the base DPLL clock with every new revision
of the chips...

  - switch to using the enumeration type to differ between the numerous chip
    variants, matching PCI device/revision ID with the chip type early, at the
    init_setup stage;

  - extend the hpt_info structure to hold the DPLL and PCI clock frequencies,
    stop duplicating it for each channel by storing the pointer in the pci_dev
    structure: first, at the init_setup stage, point it to a static "template"
    with only the chip type and its specific base DPLL frequency, the highest
    supported DMA mode, and the chip settings table pointer filled, then, at
    the init_chipset stage, allocate per-chip instance  and fill it with the
    rest of the necessary information;

  - get rid of the constant thresholds in the HPT37x PCI clock detection code,
    switch  to calculating  PCI clock frequency based on the chip's base DPLL
    frequency;

  - switch to using the DPLL clock and enable UltraATA/133 mode by default on
    anything newer than HPT370/A;

  - fold PCI clock detection and DPLL setup code into init_chipset_hpt366(),
    unify the HPT36x/37x setup code and the speedproc handlers by joining the
    register setting lists into the table indexed by the clock selected;

  - add enablebits for all the chips to avoid touching disabled channels
    (though the HighPoint BIOS seem to only disable the primary one on
    HPT371/N);

  - separate the UltraDMA and MWDMA masks there to avoid changing PIO timings
    when setting an UltraDMA mode in hpt37x_tune_chipset().

This version has been tested on HPT370/302/371N.

Thanks to Alan for the inspiration. Hopefully, his libata driver will also
benefit from the work done on this "obsolete" driver...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2007-02-07 18:18:16 +01:00
..
aec62xx.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
alim15x3.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
amd74xx.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
atiixp.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cmd64x.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cmd640.c
cs5520.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cs5530.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cs5535.c
cy82c693.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
generic.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
hpt34x.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
hpt366.c hpt366: init code rewrite 2007-02-07 18:18:16 +01:00
it821x.c [PATCH] it821x: fix ide dma setup bug 2006-07-28 09:02:17 +02:00
jmicron.c [PATCH] jmicron: 40/80pin primary detection 2007-01-30 16:01:35 -08:00
Makefile [MIPS] Remove IT8172-based platforms, ITE 8172G and Globespan IVR support. 2006-10-03 17:59:17 +01:00
ns87415.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
opti621.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
pdc202xx_new.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
pdc202xx_old.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
piix.c [PATCH] PIIX/SLC90E66: PIO mode fallback fix 2006-12-30 10:56:43 -08:00
rz1000.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sc1200.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
serverworks.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sgiioc4.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
siimage.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sis5513.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sl82c105.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
slc90e66.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
triflex.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
trm290.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
via82cxxx.c [PATCH] via82cxxx: fix typo ("cx7000" should be corrected to "cx700") 2007-02-01 16:24:03 -08:00