dma-mapping: merge <linux/dma-contiguous.h> into <linux/dma-map-ops.h>
[linux-2.6-block.git] / arch / x86 / include / asm / dma-mapping.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1965aae3
PA
2#ifndef _ASM_X86_DMA_MAPPING_H
3#define _ASM_X86_DMA_MAPPING_H
6f536635
GC
4
5/*
985098a0
MCC
6 * IOMMU interface. See Documentation/core-api/dma-api-howto.rst and
7 * Documentation/core-api/dma-api.rst for documentation.
6f536635
GC
8 */
9
10#include <linux/scatterlist.h>
2118d0c5 11#include <linux/dma-debug.h>
6f536635
GC
12#include <asm/io.h>
13#include <asm/swiotlb.h>
14
b7107a3d 15extern int iommu_merge;
b7107a3d 16extern int panic_on_overflow;
7c183416 17
5299709d 18extern const struct dma_map_ops *dma_ops;
160c1d8e 19
815dd187 20static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
c786df08 21{
8d8bb39b 22 return dma_ops;
8d8bb39b
FT
23}
24
6f536635 25#endif