linux_dsm_epyc7002/drivers/gpu/drm/i915/selftests/igt_mmap.h
Chris Wilson 6fedafacae drm/i915/selftests: Wrap vm_mmap() around GEM objects
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
2019-11-07 21:22:58 +00:00

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 */