xref: /kernel/linux/linux-5.10/arch/x86/include/asm/dma-mapping.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/x86/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_X86_DMA_MAPPING_H
38c2ecf20Sopenharmony_ci#define _ASM_X86_DMA_MAPPING_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * IOMMU interface. See Documentation/core-api/dma-api-howto.rst and
78c2ecf20Sopenharmony_ci * Documentation/core-api/dma-api.rst for documentation.
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/scatterlist.h>
118c2ecf20Sopenharmony_ci#include <asm/io.h>
128c2ecf20Sopenharmony_ci#include <asm/swiotlb.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciextern int iommu_merge;
158c2ecf20Sopenharmony_ciextern int panic_on_overflow;
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciextern const struct dma_map_ops *dma_ops;
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_cistatic inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
208c2ecf20Sopenharmony_ci{
218c2ecf20Sopenharmony_ci	return dma_ops;
228c2ecf20Sopenharmony_ci}
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
25

Indexes created Thu Nov 07 10:32:03 CST 2024