public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h
@ 2009-07-06  6:13 FUJITA Tomonori
  2009-07-06  6:13 ` [PATCH 1/5] sparc: use dma_map_ops struct FUJITA Tomonori
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: FUJITA Tomonori @ 2009-07-06  6:13 UTC (permalink / raw)
  To: davem; +Cc: sparclinux, linux-kernel, reif

This patchset converts SPARC to use asm-generic/dma-mapping-common.h
and pci-dma-compat.h.

1/5, 2/5, and 3/5 converts SPARC to use
asm-generic/dma-mapping-common.h. All the preparation for this was
already merged in 2.6.31-rc1 so the chages are pretty trivial.

4/5 and 5/5 converts SPARC to use asm-generic/pci-dma-compat.h instead of 
the homegrown mechnism to handle dma_* and pci_* API.

SPARC32 has two dma_map_ops structures for pci and sbus (removing
arch/sparc/kernel/dma.c, PCI and SBUS DMA accessor). The global
'dma_ops' is set to sbus_dma_ops and get_dma_ops() returns
pci32_dma_ops for pci devices so we can use the appropriate dma
mapping operations.

The patchset is only compile-tested (sorry about it).

=
 arch/sparc/Kconfig                   |    1 +
 arch/sparc/include/asm/dma-mapping.h |  138 +++-------------------------
 arch/sparc/include/asm/pci.h         |    3 +
 arch/sparc/include/asm/pci_32.h      |  105 ----------------------
 arch/sparc/include/asm/pci_64.h      |   88 ------------------
 arch/sparc/kernel/dma.c              |  152 ++------------------------------
 arch/sparc/kernel/dma.h              |   14 ---
 arch/sparc/kernel/iommu.c            |   20 +++--
 arch/sparc/kernel/ioport.c           |  163 ++++++++++++++++------------------
 arch/sparc/kernel/pci.c              |    2 +-
 arch/sparc/kernel/pci_sun4v.c        |   30 ++-----
 11 files changed, 127 insertions(+), 589 deletions(-)




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-07-09 12:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06  6:13 [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 1/5] sparc: use dma_map_ops struct FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 2/5] sparc: use asm-generic/dma-mapping-common.h FUJITA Tomonori
2009-07-06  8:26   ` Arnd Bergmann
2009-07-07  1:11     ` David Miller
2009-07-09  9:55       ` FUJITA Tomonori
2009-07-09 12:29         ` Arnd Bergmann
2009-07-06  6:13 ` [PATCH 3/5] sparc: remove no-op dma_4v_sync_single_for_cpu and dma_4v_sync_sg_for_cpu FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 4/5] sparc: replace sbus_map_single and sbus_unmap_single with sbus_map_page and sbus_unmap_page FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 5/5] sparc: use asm-generic/pci-dma-compat FUJITA Tomonori
2009-07-06  8:21   ` Arnd Bergmann
2009-07-07  0:07 ` [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h Robert Reif
2009-07-07  1:12   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox