Yoshinori Sato | d2a5f49 | 2015-05-11 02:20:06 +0900 | [diff] [blame] | 1 | #ifndef _H8300_DMA_MAPPING_H |
| 2 | #define _H8300_DMA_MAPPING_H |
| 3 | |
Yoshinori Sato | d2a5f49 | 2015-05-11 02:20:06 +0900 | [diff] [blame] | 4 | extern struct dma_map_ops h8300_dma_map_ops; |
| 5 | |
| 6 | static inline struct dma_map_ops *get_dma_ops(struct device *dev) |
| 7 | { |
| 8 | return &h8300_dma_map_ops; |
| 9 | } |
| 10 | |
| 11 | #include <asm-generic/dma-mapping-common.h> |
| 12 | |
| 13 | static inline int dma_supported(struct device *dev, u64 mask) |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | static inline int dma_set_mask(struct device *dev, u64 mask) |
| 19 | { |
| 20 | return 0; |
| 21 | } |
| 22 | |
| 23 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) |
| 24 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) |
| 25 | |
Yoshinori Sato | d2a5f49 | 2015-05-11 02:20:06 +0900 | [diff] [blame] | 26 | static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | #endif |