kernel-fxtec-pro1x/drivers/ide/pci
Bartlomiej Zolnierkiewicz b123f56e04 ide: do complete DMA setup in ->init_dma method (take 2)
* Make ide_hwif_setup_dma() return an error value.

* Pass 'const struct ide_port_info *d' instead of 'unsigned long dmabase'
  to ->init_dma method and make it return an error value.

* Rename ide_get_or_set_dma_base() to ide_pci_dma_base(),
  change ordering of its arguments and then export it.

* Export ide_pci_set_master().

* Do complete DMA setup inside ->init_dma method and update ->init_dma
  users accordingly.

* Sanitize code for DMA setup in ide_init_port().

v2:
* Fix for CONFIG_BLK_DEV_IDEDMA_PCI=n configs
  (from Jiri Slaby <jirislaby@gmail.com>):

  Fix following compiler warning by returning EINVAL:

  In file included from ANYTHING-INCLUDING-IDE.H:45:
  include/linux/ide.h: In function ‘ide_hwif_setup_dma’:
  include/linux/ide.h:1022: warning: no return statement in function returning non-void

Cc: Jiri Slaby <jirislaby@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-04-26 22:25:22 +02:00
..
aec62xx.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
alim15x3.c ide: do complete DMA setup in ->init_dma method (take 2) 2008-04-26 22:25:22 +02:00
amd74xx.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
atiixp.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
cmd64x.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
cmd640.c ide: cleanup setting hwif->mmio flag 2008-04-26 22:25:19 +02:00
cs5520.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
cs5530.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
cs5535.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
cy82c693.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
delkin_cb.c ide: cleanup setting hwif->mmio flag 2008-04-26 22:25:19 +02:00
generic.c IDE: Coding Style fixes to drivers/ide/pci/generic.c 2008-04-26 17:36:40 +02:00
hpt34x.c ide: remove ->extra field from struct ide_port_info 2008-04-26 22:25:20 +02:00
hpt366.c ide: do complete DMA setup in ->init_dma method (take 2) 2008-04-26 22:25:22 +02:00
it821x.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
it8213.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
jmicron.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
Makefile
ns87415.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
opti621.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
pdc202xx_new.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
pdc202xx_old.c pdc202xx_old: remove init_dma_pdc202xx() 2008-04-26 22:25:21 +02:00
piix.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
rz1000.c
sc1200.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
scc_pata.c ide: remove ->cds field from ide_hwif_t (take 2) 2008-04-26 22:25:20 +02:00
serverworks.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
sgiioc4.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
siimage.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
sis5513.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
sl82c105.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
slc90e66.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
tc86c001.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
triflex.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
trm290.c ide: export ide_allocate_dma_engine() 2008-04-26 22:25:21 +02:00
via82cxxx.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00