x86/speculation/mds: Fix documentation typo
[linux/fpc-iii.git] / arch / s390 / include / asm / dma-mapping.h
blob8fc8764fe5ee8037ff053ccc1a3cbffaf807bbe6
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_S390_DMA_MAPPING_H
3 #define _ASM_S390_DMA_MAPPING_H
5 #include <linux/kernel.h>
6 #include <linux/types.h>
7 #include <linux/mm.h>
8 #include <linux/scatterlist.h>
9 #include <linux/dma-debug.h>
10 #include <linux/io.h>
12 extern const struct dma_map_ops s390_pci_dma_ops;
14 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
16 return &dma_noop_ops;
19 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
20 enum dma_data_direction direction)
24 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
26 if (!dev->dma_mask)
27 return false;
28 return addr + size - 1 <= *dev->dma_mask;
31 #endif /* _ASM_S390_DMA_MAPPING_H */