2 * SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
7 #ifndef __I915_GEM_MMAN_H__
8 #define __I915_GEM_MMAN_H__
10 #include <linux/mm_types.h>
11 #include <linux/types.h>
15 struct drm_i915_gem_object
;
17 struct i915_mmap_offset
;
20 int i915_gem_mmap_gtt_version(void);
21 int i915_gem_mmap(struct file
*filp
, struct vm_area_struct
*vma
);
23 int i915_gem_dumb_mmap_offset(struct drm_file
*file_priv
,
24 struct drm_device
*dev
,
25 u32 handle
, u64
*offset
);
27 void __i915_gem_object_release_mmap_gtt(struct drm_i915_gem_object
*obj
);
28 void i915_gem_object_release_mmap_gtt(struct drm_i915_gem_object
*obj
);
30 void i915_gem_object_release_mmap_offset(struct drm_i915_gem_object
*obj
);