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

igt_gem_utils.h (651B)


      1/*
      2 * SPDX-License-Identifier: MIT
      3 *
      4 * Copyright © 2018 Intel Corporation
      5 */
      6
      7#ifndef __IGT_GEM_UTILS_H__
      8#define __IGT_GEM_UTILS_H__
      9
     10#include <linux/types.h>
     11
     12struct i915_request;
     13struct i915_gem_context;
     14struct i915_vma;
     15
     16struct intel_context;
     17struct intel_engine_cs;
     18
     19struct i915_request *
     20igt_request_alloc(struct i915_gem_context *ctx, struct intel_engine_cs *engine);
     21
     22struct i915_vma *
     23igt_emit_store_dw(struct i915_vma *vma,
     24		  u64 offset,
     25		  unsigned long count,
     26		  u32 val);
     27
     28int igt_gpu_fill_dw(struct intel_context *ce,
     29		    struct i915_vma *vma, u64 offset,
     30		    unsigned long count, u32 val);
     31
     32#endif /* __IGT_GEM_UTILS_H__ */