dma-direct.h (552c69b36ebd966186573b9c7a286b390935cce1) | dma-direct.h (f6d302e33d68ddbaf99c774ed994599243462b24) |
---|---|
1#include <asm/dma-coherence.h> | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _MIPS_DMA_DIRECT_H 3#define _MIPS_DMA_DIRECT_H 1 4 5static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) 6{ 7 if (!dev->dma_mask) 8 return false; 9 10 return addr + size - 1 <= *dev->dma_mask; 11} 12 13dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr); 14phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t daddr); 15 16#endif /* _MIPS_DMA_DIRECT_H */ |