mock_context.h 823 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * SPDX-License-Identifier: MIT
  3. *
  4. * Copyright © 2016 Intel Corporation
  5. */
  6. #ifndef __MOCK_CONTEXT_H
  7. #define __MOCK_CONTEXT_H
  8. struct file;
  9. struct drm_i915_private;
  10. struct intel_engine_cs;
  11. struct i915_address_space;
  12. void mock_init_contexts(struct drm_i915_private *i915);
  13. struct i915_gem_context *
  14. mock_context(struct drm_i915_private *i915,
  15. const char *name);
  16. void mock_context_close(struct i915_gem_context *ctx);
  17. struct i915_gem_context *
  18. live_context(struct drm_i915_private *i915, struct file *file);
  19. struct i915_gem_context *
  20. live_context_for_engine(struct intel_engine_cs *engine, struct file *file);
  21. struct i915_gem_context *kernel_context(struct drm_i915_private *i915,
  22. struct i915_address_space *vm);
  23. void kernel_context_close(struct i915_gem_context *ctx);
  24. #endif /* !__MOCK_CONTEXT_H */