1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2021 Intel Corporation
9 #include <linux/types.h>
11 struct vm_area_struct;
15 #if IS_ENABLED(CONFIG_X86)
16 int remap_io_mapping(struct vm_area_struct *vma,
17 unsigned long addr, unsigned long pfn, unsigned long size,
18 struct io_mapping *iomap);
21 int remap_io_mapping(struct vm_area_struct *vma,
22 unsigned long addr, unsigned long pfn, unsigned long size,
23 struct io_mapping *iomap)
25 pr_err("Architecture has no %s() and shouldn't be calling this function\n", __func__);
31 int remap_io_sg(struct vm_area_struct *vma,
32 unsigned long addr, unsigned long size,
33 struct scatterlist *sgl, resource_size_t iobase);
35 #endif /* __I915_MM_H__ */