1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2012 ARM Ltd.
5 #ifndef __ASM_DMA_MAPPING_H
6 #define __ASM_DMA_MAPPING_H
10 #include <linux/types.h>
11 #include <linux/vmalloc.h>
14 #include <asm/xen/hypervisor.h>
16 static inline const struct dma_map_ops
*get_arch_dma_ops(struct bus_type
*bus
)
22 * Do not use this function in a driver, it is only provided for
23 * arch/arm/mm/xen.c, which is used by arm64 as well.
25 static inline bool is_device_dma_coherent(struct device
*dev
)
27 return dev
->dma_coherent
;
30 #endif /* __KERNEL__ */
31 #endif /* __ASM_DMA_MAPPING_H */