android_kernel_motorola_sm6225/drivers/ide/pci
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
..
aec62xx.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
alim15x3.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
amd74xx.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
atiixp.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cmd64x.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
cmd640.c ide: use 'drive->dn & 1' instead of drive->select.b.unit 2008-10-13 21:39:40 +02:00
cs5520.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cs5530.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cs5535.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cy82c693.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
delkin_cb.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
generic.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
hpt34x.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
hpt366.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
it821x.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
it8213.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
jmicron.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
Makefile ide-pci-generic: kill the unused ifdef/endif/MODULE code 2008-02-06 02:57:49 +01:00
ns87415.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
opti621.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
pdc202xx_new.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
pdc202xx_old.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
piix.c ide: ->ide_dma_clear_irq() -> ->clear_irq() 2008-10-13 21:39:42 +02:00
rz1000.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
sc1200.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
scc_pata.c ide: switch to DMA-mapping API part #2 2008-10-13 21:39:47 +02:00
serverworks.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
sgiioc4.c ide: switch to DMA-mapping API part #2 2008-10-13 21:39:47 +02:00
siimage.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
sis5513.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
sl82c105.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
slc90e66.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
tc86c001.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
triflex.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
trm290.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
via82cxxx.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00