Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2021 Intel Corporation
0004  */
0005 
0006 #ifndef __I915_CMD_PARSER_H__
0007 #define __I915_CMD_PARSER_H__
0008 
0009 #include <linux/types.h>
0010 
0011 struct drm_i915_private;
0012 struct intel_engine_cs;
0013 struct i915_vma;
0014 
0015 int i915_cmd_parser_get_version(struct drm_i915_private *dev_priv);
0016 int intel_engine_init_cmd_parser(struct intel_engine_cs *engine);
0017 void intel_engine_cleanup_cmd_parser(struct intel_engine_cs *engine);
0018 int intel_engine_cmd_parser(struct intel_engine_cs *engine,
0019                 struct i915_vma *batch,
0020                 unsigned long batch_offset,
0021                 unsigned long batch_length,
0022                 struct i915_vma *shadow,
0023                 bool trampoline);
0024 #define I915_CMD_PARSER_TRAMPOLINE_SIZE 8
0025 
0026 #endif /* __I915_CMD_PARSER_H__ */