treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gem / i915_gem_mman.h
blob862e01b7cb69fc3c5aba6624e3ceafb06e0d02f2
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
5 */
7 #ifndef __I915_GEM_MMAN_H__
8 #define __I915_GEM_MMAN_H__
10 #include <linux/mm_types.h>
11 #include <linux/types.h>
13 struct drm_device;
14 struct drm_file;
15 struct drm_i915_gem_object;
16 struct file;
17 struct i915_mmap_offset;
18 struct mutex;
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(struct drm_i915_gem_object *obj);
29 void i915_gem_object_release_mmap_offset(struct drm_i915_gem_object *obj);
31 #endif