cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

mock_context.h (823B)


      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 *
     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 */