dma-mapping.h 360 字节
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_arch_dma_ops(struct bus_type *bus)
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_arch_dma_ops(struct bus_type *bus)
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

M
Mikael Starvik 已提交
19
#endif