1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2014 Intel Corporation
6 #ifndef __INTEL_EXECLISTS_SUBMISSION_H__
7 #define __INTEL_EXECLISTS_SUBMISSION_H__
9 #include <linux/types.h>
15 struct intel_engine_cs;
18 INTEL_CONTEXT_SCHEDULE_IN = 0,
19 INTEL_CONTEXT_SCHEDULE_OUT,
20 INTEL_CONTEXT_SCHEDULE_PREEMPTED,
23 int intel_execlists_submission_setup(struct intel_engine_cs *engine);
25 void intel_execlists_show_requests(struct intel_engine_cs *engine,
26 struct drm_printer *m,
27 void (*show_request)(struct drm_printer *m,
28 const struct i915_request *rq,
33 struct intel_context *
34 intel_execlists_create_virtual(struct intel_engine_cs **siblings,
37 struct intel_context *
38 intel_execlists_clone_virtual(struct intel_engine_cs *src);
40 int intel_virtual_engine_attach_bond(struct intel_engine_cs *engine,
41 const struct intel_engine_cs *master,
42 const struct intel_engine_cs *sibling);
45 intel_engine_in_execlists_submission_mode(const struct intel_engine_cs *engine);
47 #endif /* __INTEL_EXECLISTS_SUBMISSION_H__ */