FILE
mock_context.h
File preview with syntax highlighting.
linux-6.19.14/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 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 *kernel_context(struct drm_i915_private *i915, 27 struct i915_address_space *vm); 28void kernel_context_close(struct i915_gem_context *ctx); 29 30#endif /* !__MOCK_CONTEXT_H */
~/
Read-only file preview.