MIPS: eBPF: Fix icache flush end address
[linux/fpc-iii.git] / arch / mips / loongson64 / lemote-2f / dma.c
blobabf0e39d7e469618b7c1d9b6f84bb46803a7b8cc
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/dma-direct.h>
4 dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
6 return paddr | 0x80000000;
9 phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t dma_addr)
11 if (dma_addr > 0x8fffffff)
12 return dma_addr;
13 return dma_addr & 0x0fffffff;