mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
af6f23b88e
Only the footbridge platforms provide their own DMA address translation helpers, so switch to the generic version for all other platforms, and consolidate the footbridge implementation to remove two levels of indirection. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Marc Zyngier <maz@kernel.org>
8 lines
288 B
C
8 lines
288 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef MACH_FOOTBRIDGE_DMA_DIRECT_H
|
|
#define MACH_FOOTBRIDGE_DMA_DIRECT_H 1
|
|
|
|
dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
|
|
phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dev_addr);
|
|
|
|
#endif /* MACH_FOOTBRIDGE_DMA_DIRECT_H */
|