OSDN Git Service

sparc: factor the dma coherent mapping into helper
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Dec 2018 13:02:26 +0000 (14:02 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 11 Dec 2018 13:45:27 +0000 (14:45 +0100)
commit53b7670e5735ba1c662230377d764799aaf57300
tree5c5402c60922b907a22bb868fc81d0788ea1bddf
parent7227b202623986505c9dd6d2eadad977cd43625e
sparc: factor the dma coherent mapping into helper

Factor the code to remap memory returned from the DMA coherent allocator
into two helpers that can be shared by the IOMMU and direct mapping code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc/kernel/ioport.c