diff options
Diffstat (limited to 'arch/mips/loongson64/common/dma.c')
-rw-r--r-- | arch/mips/loongson64/common/dma.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/mips/loongson64/common/dma.c b/arch/mips/loongson64/common/dma.c deleted file mode 100644 index 48f04126bde2..000000000000 --- a/arch/mips/loongson64/common/dma.c +++ /dev/null @@ -1,18 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include <linux/dma-direct.h> - -dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr) -{ - return paddr | 0x80000000; -} - -phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t dma_addr) -{ -#if defined(CONFIG_CPU_LOONGSON2F) && defined(CONFIG_64BIT) - if (dma_addr > 0x8fffffff) - return dma_addr; - return dma_addr & 0x0fffffff; -#else - return dma_addr & 0x7fffffff; -#endif -} |