Home | History | Annotate | Line # | Download | only in selftests
      1 /*	$NetBSD: mock_context.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $	*/
      2 
      3 /*
      4  * SPDX-License-Identifier: MIT
      5  *
      6  * Copyright  2016 Intel Corporation
      7  */
      8 
      9 #ifndef __MOCK_CONTEXT_H
     10 #define __MOCK_CONTEXT_H
     11 
     12 struct file;
     13 struct drm_i915_private;
     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 *kernel_context(struct drm_i915_private *i915);
     27 void kernel_context_close(struct i915_gem_context *ctx);
     28 
     29 #endif /* !__MOCK_CONTEXT_H */
     30