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 
12 struct i915_request;
13 struct i915_gem_context;
14 struct i915_vma;
15 
16 struct intel_context;
17 struct intel_engine_cs;
18 
19 struct i915_request *
20 igt_request_alloc(struct i915_gem_context *ctx, struct intel_engine_cs *engine);
21 
22 struct i915_vma *
23 igt_emit_store_dw(struct i915_vma *vma,
24 		  u64 offset,
25 		  unsigned long count,
26 		  u32 val);
27 
28 int 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__ */
33