1 #ifndef _ASM_S390_DMA_MAPPING_H
2 #define _ASM_S390_DMA_MAPPING_H
4 #include <linux/kernel.h>
5 #include <linux/types.h>
7 #include <linux/scatterlist.h>
8 #include <linux/dma-debug.h>
11 #define DMA_ERROR_CODE (~(dma_addr_t) 0x0)
13 extern const struct dma_map_ops s390_pci_dma_ops;
15 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
20 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
21 enum dma_data_direction direction)
25 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
29 return addr + size - 1 <= *dev->dma_mask;
32 #endif /* _ASM_S390_DMA_MAPPING_H */