]> Git Repo - linux.git/blob - drivers/gpu/drm/i915/gem/selftests/mock_context.h
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux...
[linux.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 file;
11 struct drm_i915_private;
12 struct intel_engine_cs;
13 struct i915_address_space;
14
15 void mock_init_contexts(struct drm_i915_private *i915);
16
17 struct i915_gem_context *
18 mock_context(struct drm_i915_private *i915,
19              const char *name);
20
21 void mock_context_close(struct i915_gem_context *ctx);
22
23 struct i915_gem_context *
24 live_context(struct drm_i915_private *i915, struct file *file);
25
26 struct i915_gem_context *
27 live_context_for_engine(struct intel_engine_cs *engine, struct file *file);
28
29 struct i915_gem_context *kernel_context(struct drm_i915_private *i915,
30                                         struct i915_address_space *vm);
31 void kernel_context_close(struct i915_gem_context *ctx);
32
33 #endif /* !__MOCK_CONTEXT_H */
This page took 0.038207 seconds and 4 git commands to generate.