]> www.infradead.org Git - users/willy/xarray.git/commitdiff
drm/i915/dsb: Move DSB ID definition to the header
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 31 May 2024 11:40:59 +0000 (14:40 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 5 Jun 2024 09:45:23 +0000 (12:45 +0300)
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>
drivers/gpu/drm/i915/display/intel_dsb.c
drivers/gpu/drm/i915/display/intel_dsb.h

index 2be46f4ffc271171ec9b729e7bab68792028e765..75ac780d66bf06f02cd576d536643e6692e2a39c 100644 (file)
 
 #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;
 
index 16d80f434356efe61b6218942f1a04125aee28da..5d7561ea65fa7400ccc54f9daa744a2fc50b0a62 100644 (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);