dma-mapping: use unsigned long for dma_attrs
[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>
828b35f6
JG
8#include <linux/dma-debug.h>
9#include <linux/io.h>
10
11#define DMA_ERROR_CODE (~(dma_addr_t) 0x0)
12
e82becfc 13extern struct dma_map_ops s390_pci_dma_ops;
828b35f6
JG
14
15static inline struct dma_map_ops *get_dma_ops(struct device *dev)
16{
e82becfc
CB
17 if (dev && dev->archdata.dma_ops)
18 return dev->archdata.dma_ops;
19 return &dma_noop_ops;
828b35f6
JG
20}
21
e978948d
HC
22static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
23 enum dma_data_direction direction)
24{
25}
828b35f6 26
828b35f6
JG
27static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
28{
29 if (!dev->dma_mask)
1c6e4b18 30 return false;
828b35f6
JG
31 return addr + size - 1 <= *dev->dma_mask;
32}
33
828b35f6 34#endif /* _ASM_S390_DMA_MAPPING_H */
This page took 0.180642 seconds and 5 git commands to generate.