kernel-ark/drivers/ide
Bartlomiej Zolnierkiewicz 2bbd57cad3 ide: switch to DMA-mapping API part #2
Follow-up to commit 5c05ff68b9
("ide: switch to DMA-mapping API"):

* pci_{alloc,free}_consistent() -> dma_{alloc,free}_coherent()
  in ide_{allocate,release}_dma_engine().

* Add ->prd_max_nents and ->prd_ent_size fields to ide_hwif_t
  (+ set default values in ide_allocate_dma_engine()).

* Make ide_{allocate,release}_dma_engine() available also
  for CONFIG_BLK_DEV_IDEDMA_SFF=n.  Then convert au1xxx-ide.c,
  scc_pata.c and sgiioc4.c to use them.

* Add missing ->init_dma method to scc_pata.

This patch also fixes:
- ->dmatable_cpu leak for au1xxx-ide
- too early realease of ->dmatable_cpu for scc_pata
- wrong amount of ->dmatable_cpu memory being freed for sgiioc4

While at it:
- remove superfluous ->dma_base check from ide_unregister()
- return -ENOMEM on error in ide_release_dma_engine()
- beautify error message in ide_release_dma_engine()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-10-13 21:39:47 +02:00
..
arm ide: make ide_dma_timeout() available also for CONFIG_BLK_DEV_IDEDMA_SFF=n 2008-10-13 21:39:46 +02:00
h8300 ide: remove [ata_]select_t 2008-10-13 21:39:40 +02:00
legacy ide: remove [ata_]select_t 2008-10-13 21:39:40 +02:00
mips ide: switch to DMA-mapping API part #2 2008-10-13 21:39:47 +02:00
pci ide: switch to DMA-mapping API part #2 2008-10-13 21:39:47 +02:00
ppc pmac: remove needless pmac_ide_destroy_dmatable() wrapper 2008-10-13 21:39:45 +02:00
ide-acpi.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-atapi.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-cd_ioctl.c ide: ide-cd_ioctl.c fix sparse integer as NULL pointer warnings 2008-07-23 19:56:02 +02:00
ide-cd_verbose.c block: replace sizeof(rq->cmd) with BLK_MAX_CDB 2008-04-29 14:48:55 +02:00
ide-cd.c ide-cd: no need to zero drive->special.all 2008-10-13 21:39:43 +02:00
ide-cd.h ide-cd: convert to using the new atapi_flags 2008-07-23 19:56:02 +02:00
ide-disk_ioctl.c ide-disk: move all ioctl handling to ide-disk_ioctl.c 2008-10-13 21:39:45 +02:00
ide-disk_proc.c ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
ide-disk.c ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
ide-disk.h ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
ide-dma.c ide: switch to DMA-mapping API part #2 2008-10-13 21:39:47 +02:00
ide-floppy_ioctl.c ide-floppy: move all ioctl handling to ide-floppy_ioctl.c (take 2) 2008-10-13 21:39:44 +02:00
ide-floppy_proc.c ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) 2008-10-13 21:39:44 +02:00
ide-floppy.c ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) 2008-10-13 21:39:44 +02:00
ide-floppy.h ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) 2008-10-13 21:39:44 +02:00
ide-generic.c ide-generic: remove no longer needed ide_probe_legacy() 2008-10-13 21:39:42 +02:00
ide-io.c ide: Two fixes regarding memory allocation 2008-10-13 21:39:45 +02:00
ide-ioctls.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-iops.c ide: factor out reset error reporting from reset_pollfunc() 2008-10-13 21:39:41 +02:00
ide-lib.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-pio-blacklist.c ide: move PIO blacklist to ide-pio-blacklist.c 2008-07-16 20:33:39 +02:00
ide-pnp.c ide: add ide_host_add() helper 2008-07-23 19:55:57 +02:00
ide-probe.c ide: Two fixes regarding memory allocation 2008-10-13 21:39:45 +02:00
ide-proc.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-scan-pci.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-tape.c ide: set IDE_AFLAG_DRQ_INTERRUPT in do_identify() 2008-10-13 21:39:43 +02:00
ide-taskfile.c ide: merge all TASKFILE_NO_DATA data phase handlers into taskfile_no_intr() 2008-10-13 21:39:41 +02:00
ide-timings.c ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
ide.c ide: switch to DMA-mapping API part #2 2008-10-13 21:39:47 +02:00
Kconfig ide: remove CONFIG_BLK_DEV_IDE config option (take 2) 2008-10-13 21:39:33 +02:00
Makefile ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
setup-pci.c ide: add proper PCI PM support (v2) 2008-10-10 22:39:32 +02:00