dma-mapping: always provide the dma_map_ops based implementation
[deliverable/linux.git] / arch / s390 / include / asm / dma-mapping.h
CommitLineData
828b35f6
JG
1#ifndef _ASM_S390_DMA_MAPPING_H
2#define _ASM_S390_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-attrs.h>
9#include <linux/dma-debug.h>
10#include <linux/io.h>
11
12#define DMA_ERROR_CODE (~(dma_addr_t) 0x0)
13
14extern struct dma_map_ops s390_dma_ops;
15
16static inline struct dma_map_ops *get_dma_ops(struct device *dev)
17{
18 return &s390_dma_ops;
19}
20
e978948d
HC
21static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
22 enum dma_data_direction direction)
23{
24}
828b35f6 25
828b35f6
JG
26static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
27{
28 if (!dev->dma_mask)
1c6e4b18 29 return false;
828b35f6
JG
30 return addr + size - 1 <= *dev->dma_mask;
31}
32
828b35f6 33#endif /* _ASM_S390_DMA_MAPPING_H */
This page took 0.159297 seconds and 5 git commands to generate.