dma-mapping.h 474 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3
#ifndef _ASM_CRIS_DMA_MAPPING_H
#define _ASM_CRIS_DMA_MAPPING_H

M
Mikael Starvik 已提交
4
#ifdef CONFIG_PCI
5
extern const struct dma_map_ops v32_dma_ops;
L
Linus Torvalds 已提交
6

7
static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
L
Linus Torvalds 已提交
8
{
C
Christoph Hellwig 已提交
9
	return &v32_dma_ops;
L
Linus Torvalds 已提交
10
}
C
Christoph Hellwig 已提交
11
#else
12
static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
L
Linus Torvalds 已提交
13
{
C
Christoph Hellwig 已提交
14 15
	BUG();
	return NULL;
L
Linus Torvalds 已提交
16
}
M
Mikael Starvik 已提交
17
#endif
L
Linus Torvalds 已提交
18 19

static inline void
20
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
L
Linus Torvalds 已提交
21 22 23 24
	       enum dma_data_direction direction)
{
}

M
Mikael Starvik 已提交
25
#endif