drm/i915/dsb: Move DSB ID definition to the header

We're going to need to make the DSB ID visible outside the DSB
code, so that we eg. can use multiple DSB engines in parallel.
to that end move the definition to intel_dsb.h.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240531114101.19994-3-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Ville Syrjälä
2024-06-05 12:45:23 +03:00
parent 7f57f21510
commit 738f3d8618
2 changed files with 8 additions and 8 deletions
-8
View File
@@ -18,14 +18,6 @@
#define CACHELINE_BYTES 64
enum intel_dsb_id {
INTEL_DSB_0,
INTEL_DSB_1,
INTEL_DSB_2,
I915_MAX_DSBS,
};
struct intel_dsb {
enum intel_dsb_id id;
+8
View File
@@ -14,6 +14,14 @@ struct intel_crtc;
struct intel_crtc_state;
struct intel_dsb;
enum intel_dsb_id {
INTEL_DSB_0,
INTEL_DSB_1,
INTEL_DSB_2,
I915_MAX_DSBS,
};
struct intel_dsb *intel_dsb_prepare(const struct intel_crtc_state *crtc_state,
unsigned int max_cmds);
void intel_dsb_finish(struct intel_dsb *dsb);