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

4
extern const struct dma_map_ops *dma_ops;
5
extern void no_iommu_init(void);
L
Linus Torvalds 已提交
6

7
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
8 9 10 11
{
	return dma_ops;
}

12 13
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
		    enum dma_data_direction dir);
L
Linus Torvalds 已提交
14

15 16
/* arch/sh/mm/consistent.c */
extern void *dma_generic_alloc_coherent(struct device *dev, size_t size,
17
					dma_addr_t *dma_addr, gfp_t flag,
18
					unsigned long attrs);
19
extern void dma_generic_free_coherent(struct device *dev, size_t size,
20
				      void *vaddr, dma_addr_t dma_handle,
21
				      unsigned long attrs);
22

L
Linus Torvalds 已提交
23
#endif /* __ASM_SH_DMA_MAPPING_H */