summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_dsb.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2024-05-31 14:40:59 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2024-06-05 12:45:23 +0300
commit738f3d86182ed5f6d09205db6f0ba3c498c20d69 (patch)
treef71e740f5a2f749819e4aac578c76dd989e8c3dd /drivers/gpu/drm/i915/display/intel_dsb.h
parent7f57f21510de2c76596af7a51804e6f1abc0be00 (diff)
downloadlwn-738f3d86182ed5f6d09205db6f0ba3c498c20d69.tar.gz
lwn-738f3d86182ed5f6d09205db6f0ba3c498c20d69.zip
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>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dsb.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dsb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dsb.h b/drivers/gpu/drm/i915/display/intel_dsb.h
index 16d80f434356..5d7561ea65fa 100644
--- a/drivers/gpu/drm/i915/display/intel_dsb.h
+++ b/drivers/gpu/drm/i915/display/intel_dsb.h
@@ -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);