brintos

brintos / linux-shallow public Read only

0
0
Text · 823 B · 7a02fd9 Raw
34 lines · c
1/*2 * SPDX-License-Identifier: MIT3 *4 * Copyright © 2016 Intel Corporation5 */6 7#ifndef __MOCK_CONTEXT_H8#define __MOCK_CONTEXT_H9 10struct file;11struct drm_i915_private;12struct intel_engine_cs;13struct i915_address_space;14 15void mock_init_contexts(struct drm_i915_private *i915);16 17struct i915_gem_context *18mock_context(struct drm_i915_private *i915,19	     const char *name);20 21void mock_context_close(struct i915_gem_context *ctx);22 23struct i915_gem_context *24live_context(struct drm_i915_private *i915, struct file *file);25 26struct i915_gem_context *27live_context_for_engine(struct intel_engine_cs *engine, struct file *file);28 29struct i915_gem_context *kernel_context(struct drm_i915_private *i915,30					struct i915_address_space *vm);31void kernel_context_close(struct i915_gem_context *ctx);32 33#endif /* !__MOCK_CONTEXT_H */34