dma-mapping.h 582 字节
Newer Older
J
Jan Glauber 已提交
1 2 3 4 5 6 7 8 9 10
#ifndef _ASM_S390_DMA_MAPPING_H
#define _ASM_S390_DMA_MAPPING_H

#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/scatterlist.h>
#include <linux/dma-debug.h>
#include <linux/io.h>

11
extern const struct dma_map_ops s390_pci_dma_ops;
J
Jan Glauber 已提交
12

13
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
J
Jan Glauber 已提交
14
{
15
	return &dma_noop_ops;
J
Jan Glauber 已提交
16 17 18 19 20
}

static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
{
	if (!dev->dma_mask)
21
		return false;
J
Jan Glauber 已提交
22 23 24 25
	return addr + size - 1 <= *dev->dma_mask;
}

#endif /* _ASM_S390_DMA_MAPPING_H */