WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gem / selftests / mock_context.h
blob2a6121d33352d5375f1c9e2281bd27b616fbfc82
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2016 Intel Corporation
5 */
7 #ifndef __MOCK_CONTEXT_H
8 #define __MOCK_CONTEXT_H
10 struct file;
11 struct drm_i915_private;
12 struct intel_engine_cs;
14 void mock_init_contexts(struct drm_i915_private *i915);
16 struct i915_gem_context *
17 mock_context(struct drm_i915_private *i915,
18 const char *name);
20 void mock_context_close(struct i915_gem_context *ctx);
22 struct i915_gem_context *
23 live_context(struct drm_i915_private *i915, struct file *file);
25 struct i915_gem_context *
26 live_context_for_engine(struct intel_engine_cs *engine, struct file *file);
28 struct i915_gem_context *kernel_context(struct drm_i915_private *i915);
29 void kernel_context_close(struct i915_gem_context *ctx);
31 #endif /* !__MOCK_CONTEXT_H */