i915_cmd_parser.h 736 B

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