]> Git Repo - linux.git/blob - arch/m32r/include/asm/dma-mapping.h
chardev: add helper function to register char devs with a struct device
[linux.git] / arch / m32r / include / asm / dma-mapping.h
1 #ifndef _ASM_M32R_DMA_MAPPING_H
2 #define _ASM_M32R_DMA_MAPPING_H
3
4 #include <linux/kernel.h>
5 #include <linux/types.h>
6 #include <linux/mm.h>
7 #include <linux/scatterlist.h>
8 #include <linux/dma-debug.h>
9 #include <linux/io.h>
10
11 #define DMA_ERROR_CODE (~(dma_addr_t)0x0)
12
13 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
14 {
15         return &dma_noop_ops;
16 }
17
18 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
19                                   enum dma_data_direction direction)
20 {
21 }
22
23 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
24 {
25         if (!dev->dma_mask)
26                 return false;
27         return addr + size - 1 <= *dev->dma_mask;
28 }
29
30 #endif /* _ASM_M32R_DMA_MAPPING_H */
This page took 0.026678 seconds and 4 git commands to generate.