c858db2362f1ebfc66a1628934c35822d30677ef
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / gem / selftests / mock_context.h
1 /*
2  * SPDX-License-Identifier: MIT
3  *
4  * Copyright © 2016 Intel Corporation
5  */
6
7 #ifndef __MOCK_CONTEXT_H
8 #define __MOCK_CONTEXT_H
9
10 struct drm_file;
11 struct drm_i915_private;
12
13 void mock_init_contexts(struct drm_i915_private *i915);
14
15 struct i915_gem_context *
16 mock_context(struct drm_i915_private *i915,
17              const char *name);
18
19 void mock_context_close(struct i915_gem_context *ctx);
20
21 struct i915_gem_context *
22 live_context(struct drm_i915_private *i915, struct file *file);
23
24 struct i915_gem_context *kernel_context(struct drm_i915_private *i915);
25 void kernel_context_close(struct i915_gem_context *ctx);
26
27 #endif /* !__MOCK_CONTEXT_H */