drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / loongson2ef / fuloong-2e / dma.c
blobcea167d8aba8dbf2812ab87a015c9ef4e8236fa8
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 return dma_addr & 0x7fffffff;