xref: /linux/drivers/gpu/drm/i915/selftests/igt_mmap.h (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1 /*
2  * SPDX-License-Identifier: MIT
3  *
4  * Copyright © 2019 Intel Corporation
5  */
6 
7 #ifndef IGT_MMAP_H
8 #define IGT_MMAP_H
9 
10 #include <linux/types.h>
11 
12 struct drm_i915_private;
13 struct drm_vma_offset_node;
14 
15 unsigned long igt_mmap_offset(struct drm_i915_private *i915,
16 			      u64 offset,
17 			      unsigned long size,
18 			      unsigned long prot,
19 			      unsigned long flags);
20 
21 #endif /* IGT_MMAP_H */
22