Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 authored by Linus Torvalds on 01 March 2021, 00:05:19 UTC
Linux 5.12-rc1
Tip revision: fe07bfd
dma-mapping.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_DMA_MAPPING_H
#define _ASM_X86_DMA_MAPPING_H

/*
 * IOMMU interface. See Documentation/core-api/dma-api-howto.rst and
 * Documentation/core-api/dma-api.rst for documentation.
 */

#include <linux/scatterlist.h>
#include <asm/io.h>
#include <asm/swiotlb.h>

extern int iommu_merge;
extern int panic_on_overflow;

extern const struct dma_map_ops *dma_ops;

static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
{
	return dma_ops;
}

#endif
back to top