mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
6fedafacae
Provide a utility function to create a vma corresponding to an mmap() of our device. And use it to exercise the equivalent of userspace performing a GTT mmap of our objects. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com> Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191107180601.30815-4-chris@chris-wilson.co.uk
20 lines
383 B
C
20 lines
383 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef IGT_MMAP_H
|
|
#define IGT_MMAP_H
|
|
|
|
struct drm_i915_private;
|
|
struct drm_vma_offset_node;
|
|
|
|
unsigned long igt_mmap_node(struct drm_i915_private *i915,
|
|
struct drm_vma_offset_node *node,
|
|
unsigned long addr,
|
|
unsigned long prot,
|
|
unsigned long flags);
|
|
|
|
#endif /* IGT_MMAP_H */
|