]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Refactor 64 bits DMA operations
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 11 Nov 2006 06:25:02 +0000 (17:25 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:38:40 +0000 (20:38 +1100)
commit44f65d890c2cfb4433c1ca9895a9b26ce50885ba
tree18865369100e9059c7e883dec93ea67f7b52a287
parent2bfbeaf20c1dc1e50f89156c50143e020187c841
[POWERPC] Refactor 64 bits DMA operations

This patch completely refactors DMA operations for 64 bits powerpc. 32 bits
is untouched for now.

We use the new dev_archdata structure to add the dma operations pointer
and associated data to struct device. While at it, we also add the OF node
pointer and numa node. In the future, we might want to look into merging
that with pci_dn as well.

The old vio, pci-iommu and pci-direct DMA ops are gone. They are now replaced
by a set of generic iommu and direct DMA ops (non PCI specific) that can be
used by bus types. The toplevel implementation is now inline.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
26 files changed:
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/dma_64.c
arch/powerpc/kernel/ibmebus.c
arch/powerpc/kernel/iommu.c
arch/powerpc/kernel/of_platform.c
arch/powerpc/kernel/pci_64.c
arch/powerpc/kernel/pci_direct_iommu.c [deleted file]
arch/powerpc/kernel/pci_iommu.c [deleted file]
arch/powerpc/kernel/setup_64.c
arch/powerpc/kernel/vio.c
arch/powerpc/platforms/cell/iommu.c
arch/powerpc/platforms/iseries/iommu.c
arch/powerpc/platforms/iseries/pci.c
arch/powerpc/platforms/pasemi/setup.c
arch/powerpc/platforms/pseries/iommu.c
arch/powerpc/platforms/pseries/pci_dlpar.c
arch/powerpc/sysdev/dart_iommu.c
include/asm-powerpc/device.h
include/asm-powerpc/dma-mapping.h
include/asm-powerpc/ibmebus.h
include/asm-powerpc/iommu.h
include/asm-powerpc/iseries/iommu.h
include/asm-powerpc/machdep.h
include/asm-powerpc/of_device.h
include/asm-powerpc/pci.h
include/asm-powerpc/vio.h