]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/s390/include/asm/dma-mapping.h
reboot: Use power off rather than busy spinning when halt is requested
[mirror_ubuntu-artful-kernel.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>
828b35f6
JG
8#include <linux/dma-debug.h>
9#include <linux/io.h>
10
5299709d 11extern const struct dma_map_ops s390_pci_dma_ops;
828b35f6 12
815dd187 13static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
828b35f6 14{
e82becfc 15 return &dma_noop_ops;
828b35f6
JG
16}
17
e978948d
HC
18static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
19 enum dma_data_direction direction)
20{
21}
828b35f6 22
828b35f6
JG
23static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
24{
25 if (!dev->dma_mask)
1c6e4b18 26 return false;
828b35f6
JG
27 return addr + size - 1 <= *dev->dma_mask;
28}
29
828b35f6 30#endif /* _ASM_S390_DMA_MAPPING_H */