linux-hardened/drivers/ide
Bartlomiej Zolnierkiewicz 7569e8dc22 ide: add ide_use_fast_pio() helper (v3)
* add ide_use_fast_pio() helper for use by host drivers

* add DMA capability and hwif->autodma checks to ide_use_dma()

  - au1xxx-ide/it8213/it821x drivers didn't check for (id->capability & 1)

    [ for the IT8211/2 in SMART mode this check shouldn't be made but since
      in it821x_fixups() we set DMA bit explicitly:

               if(strstr(id->model, "Integrated Technology Express")) {
                       /* In raid mode the ident block is slightly buggy
                          We need to set the bits so that the IDE layer knows
                          LBA28. LBA48 and DMA ar valid */
                       id->capability |= 3;            /* LBA28, DMA */

       we are better off using generic helper if we can ]

  - ide-cris driver didn't set ->autodma

    [ before the patch hwif->autodma was only checked in the chipset specific
      hwif->ide_dma_check implementations, for ide-cris it is cris_dma_check()
      function so there no behavior change here ]

v2:
* updated patch description (thanks to Alan Cox for the feedback)

v3:
* updated for scc_pata driver

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2007-02-17 02:40:25 +01:00
..
arm Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cris ide: add ide_use_fast_pio() helper (v3) 2007-02-17 02:40:25 +01:00
h8300 fix file specification in comments 2006-10-03 23:01:26 +02:00
legacy [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
mips au1xxx-ide: remove dead code 2007-02-17 02:40:23 +01:00
pci ide: add ide_use_fast_pio() helper (v3) 2007-02-17 02:40:25 +01:00
ppc ide: add ide_use_fast_pio() helper (v3) 2007-02-17 02:40:25 +01:00
ide-acpi.c ide-acpi support warning fix 2007-02-07 18:19:42 +01:00
ide-cd.c ide: remove ide_drive_t.usage 2007-02-17 02:40:24 +01:00
ide-cd.h [PATCH] ide-cd: remove write-only cmd field from struct cdrom_info 2005-12-15 02:20:49 +01:00
ide-disk.c ide: remove ide_drive_t.usage 2007-02-17 02:40:24 +01:00
ide-dma.c ide: add ide_use_fast_pio() helper (v3) 2007-02-17 02:40:25 +01:00
ide-floppy.c ide: remove ide_drive_t.usage 2007-02-17 02:40:24 +01:00
ide-generic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ide-io.c ide: clear bmdma status in ide_intr() for ICHx controllers (revised #4) 2007-02-17 02:40:21 +01:00
ide-iops.c [PATCH] ide: Fix crash on repeated reset 2006-10-03 08:04:08 -07:00
ide-lib.c ide: add ide_use_fast_pio() helper (v3) 2007-02-17 02:40:25 +01:00
ide-pnp.c ide: unregister idepnp driver on unload 2007-01-27 13:47:02 +01:00
ide-probe.c ACPI support for IDE devices 2007-02-07 18:19:37 +01:00
ide-proc.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ide-tape.c ide: remove ide_drive_t.usage 2007-02-17 02:40:24 +01:00
ide-taskfile.c [PATCH] ide: add sanity checking to ide taskfile ioctl 2006-10-16 08:27:54 -07:00
ide-timing.h [PATCH] ide: actually honor drive's minimum PIO/DMA cycle times 2006-06-26 09:58:27 -07:00
ide.c ide: remove write-only ide_hwif_t.no_dsc flag 2007-02-17 02:40:24 +01:00
Kconfig drivers/ide: PATA driver for Celleb 2007-02-17 02:40:22 +01:00
Makefile drivers/ide: PATA driver for Celleb 2007-02-17 02:40:22 +01:00
setup-pci.c PCI: add the sysfs driver name to all modules 2007-02-07 10:37:12 -08:00