]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _ASM_DMA_MAPPING_H |
3 | #define _ASM_DMA_MAPPING_H | |
4 | ||
a999933d CH |
5 | #include <linux/swiotlb.h> |
6 | ||
c5e2bbb4 | 7 | extern const struct dma_map_ops jazz_dma_ops; |
1da177e4 | 8 | |
815dd187 | 9 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) |
48e1fd5a | 10 | { |
c5e2bbb4 CH |
11 | #if defined(CONFIG_MACH_JAZZ) |
12 | return &jazz_dma_ops; | |
3369ddb6 | 13 | #else |
356da6d0 | 14 | return NULL; |
f6d302e3 | 15 | #endif |
48e1fd5a | 16 | } |
1da177e4 | 17 | |
1da177e4 | 18 | #endif /* _ASM_DMA_MAPPING_H */ |