mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 16:26:40 +07:00
130c1ccbf5
Currently each architectures that wants to override dma_to_phys and phys_to_dma also has to provide dma_capable. But there isn't really any good reason for that. powerpc and mips just have copies of the generic one minus the latests fix, and the arm one was the inspiration for said fix, but misses the bus_dma_mask handling. Make all architectures use the generic version instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
9 lines
259 B
C
9 lines
259 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _MIPS_DMA_DIRECT_H
|
|
#define _MIPS_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 daddr);
|
|
|
|
#endif /* _MIPS_DMA_DIRECT_H */
|