linux_dsm_epyc7002/drivers/ide
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
..
arm ide: cleanup ide_setup_dma() 2008-04-26 22:25:21 +02:00
cris ide: cleanup setting hwif->mmio flag 2008-04-26 22:25:19 +02:00
h8300 ide: cleanup setting hwif->mmio flag 2008-04-26 22:25:19 +02:00
legacy ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
mips au1xxx-ide: fix MWDMA support 2008-04-26 22:25:22 +02:00
pci ide: do complete DMA setup in ->init_dma method (take 2) 2008-04-26 22:25:22 +02:00
ppc ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-acpi.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-cd_ioctl.c ide-cd: mark REQ_TYPE_ATA_PC write requests with REQ_RW flag 2008-03-07 21:53:49 +01:00
ide-cd_verbose.c ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c 2008-02-01 23:09:23 +01:00
ide-cd.c ide-cd: fix remaining checkpatch.pl issues 2008-04-26 22:25:15 +02:00
ide-cd.h ide-cd: remove the internal 64k buffer 2008-04-26 17:36:37 +02:00
ide-disk.c ide-disk: fix issues found by checkpatch.pl 2008-04-26 17:36:37 +02:00
ide-dma.c ide: cleanup ide_setup_dma() 2008-04-26 22:25:21 +02:00
ide-floppy.c IDE: Coding Style fixes to drivers/ide/ide-floppy.c 2008-04-26 17:36:41 +02:00
ide-generic.c ide: cleanup setting hwif->mmio flag 2008-04-26 22:25:19 +02:00
ide-io.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
ide-iops.c ide: add struct ide_port_ops (take 2) 2008-04-26 22:25:14 +02:00
ide-lib.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-pnp.c ide: cleanup setting hwif->mmio flag 2008-04-26 22:25:19 +02:00
ide-probe.c ide: do complete DMA setup in ->init_dma method (take 2) 2008-04-26 22:25:22 +02:00
ide-proc.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-scan-pci.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-tape.c ide-tape: remove idetape_pipeline_active() 2008-04-26 22:25:20 +02:00
ide-taskfile.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-timing.h Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
ide.c ide: remove ide_hwif_request_regions() 2008-04-26 22:25:19 +02:00
Kconfig ide/Kconfig: BLK_DEV_4DRIVES should be a tristate 2008-04-26 17:36:31 +02:00
Makefile ide: fix ide_find_port() 2008-04-18 00:46:21 +02:00
setup-pci.c ide: do complete DMA setup in ->init_dma method (take 2) 2008-04-26 22:25:22 +02:00