]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/sh/include/asm/dma-mapping.h
Merge tag 'dma-mapping-4.15' of git://git.infradead.org/users/hch/dma-mapping
[mirror_ubuntu-bionic-kernel.git] / arch / sh / include / asm / dma-mapping.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SH_DMA_MAPPING_H
3 #define __ASM_SH_DMA_MAPPING_H
4
5 extern const struct dma_map_ops *dma_ops;
6 extern void no_iommu_init(void);
7
8 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
9 {
10 return dma_ops;
11 }
12
13 extern void *dma_generic_alloc_coherent(struct device *dev, size_t size,
14 dma_addr_t *dma_addr, gfp_t flag,
15 unsigned long attrs);
16 extern void dma_generic_free_coherent(struct device *dev, size_t size,
17 void *vaddr, dma_addr_t dma_handle,
18 unsigned long attrs);
19
20 void sh_sync_dma_for_device(void *vaddr, size_t size,
21 enum dma_data_direction dir);
22
23 #endif /* __ASM_SH_DMA_MAPPING_H */