blob: 34de7b17b41b7215622930cfe06532921fa181f1 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_DMA_MAPPING_H
3#define _ASM_DMA_MAPPING_H
4
5#include <linux/swiotlb.h>
6
7extern const struct dma_map_ops jazz_dma_ops;
8
9static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
10{
11#if defined(CONFIG_MACH_JAZZ)
12 return &jazz_dma_ops;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000013#else
David Brazdil0f672f62019-12-10 10:32:29 +000014 return NULL;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000015#endif
16}
17
18#endif /* _ASM_DMA_MAPPING_H */