xref: /linux/drivers/gpu/drm/i915/gem/selftests/mock_context.h (revision 17cfcb68af3bc7d5e8ae08779b1853310a2949f3)
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 void mock_init_contexts(struct drm_i915_private *i915);
11 
12 struct i915_gem_context *
13 mock_context(struct drm_i915_private *i915,
14 	     const char *name);
15 
16 void mock_context_close(struct i915_gem_context *ctx);
17 
18 struct i915_gem_context *
19 live_context(struct drm_i915_private *i915, struct drm_file *file);
20 
21 struct i915_gem_context *kernel_context(struct drm_i915_private *i915);
22 void kernel_context_close(struct i915_gem_context *ctx);
23 
24 #endif /* !__MOCK_CONTEXT_H */
25