blob: bb1654fe0ce74cd75a28d9c671e00fe98e83c230 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_DMA_MAPPING_H
3#define _ASM_X86_DMA_MAPPING_H
4
5/*
Olivier Deprez157378f2022-04-04 15:47:50 +02006 * IOMMU interface. See Documentation/core-api/dma-api-howto.rst and
7 * Documentation/core-api/dma-api.rst for documentation.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00008 */
9
10#include <linux/scatterlist.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011#include <asm/io.h>
12#include <asm/swiotlb.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000013
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000014extern int iommu_merge;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000015extern int panic_on_overflow;
16
17extern const struct dma_map_ops *dma_ops;
18
19static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
20{
21 return dma_ops;
22}
23
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000024#endif