xref: /linux/drivers/gpu/drm/i915/i915_cmd_parser.h (revision 7340c6df49df1b261892d287444c255d0a378063)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2021 Intel Corporation
4  */
5 
6 #ifndef __I915_CMD_PARSER_H__
7 #define __I915_CMD_PARSER_H__
8 
9 #include <linux/types.h>
10 
11 struct drm_i915_private;
12 struct intel_engine_cs;
13 struct i915_vma;
14 
15 int i915_cmd_parser_get_version(struct drm_i915_private *dev_priv);
16 int intel_engine_init_cmd_parser(struct intel_engine_cs *engine);
17 void intel_engine_cleanup_cmd_parser(struct intel_engine_cs *engine);
18 int intel_engine_cmd_parser(struct intel_engine_cs *engine,
19 			    struct i915_vma *batch,
20 			    unsigned long batch_offset,
21 			    unsigned long batch_length,
22 			    struct i915_vma *shadow,
23 			    bool trampoline);
24 #define I915_CMD_PARSER_TRAMPOLINE_SIZE 8
25 
26 #endif /* __I915_CMD_PARSER_H__ */
27