]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/csr: move CSR version macros to intel_csr.h
authorJani Nikula <jani.nikula@intel.com>
Thu, 2 May 2019 15:02:39 +0000 (18:02 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 3 May 2019 07:06:25 +0000 (10:06 +0300)
Reduce clutter from i915_drv.h.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8222df3f559b056387b5c7e6e04a878cbf8b4e2e.1556809195.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/intel_csr.h

index 0e4dffcd4da41689976313e3995851457a691820..0d7d193d50b911ed294f1f46360b5c3328ece360 100644 (file)
@@ -36,6 +36,7 @@
 
 #include "i915_gem_context.h"
 #include "i915_irq.h"
+#include "intel_csr.h"
 #include "intel_dp.h"
 #include "intel_drv.h"
 #include "intel_fbc.h"
index 9a634ba57ff95e4713541f3f2ff9b9b7159ae7b2..9e701dedaf491048bdcd4ed8ed7e5599f220111e 100644 (file)
@@ -345,10 +345,6 @@ struct drm_i915_display_funcs {
        void (*load_luts)(const struct intel_crtc_state *crtc_state);
 };
 
-#define CSR_VERSION(major, minor)      ((major) << 16 | (minor))
-#define CSR_VERSION_MAJOR(version)     ((version) >> 16)
-#define CSR_VERSION_MINOR(version)     ((version) & 0xffff)
-
 struct intel_csr {
        struct work_struct work;
        const char *fw_path;
index e1b858bd1d323ef08a897f244d5716bc38893360..4f85cbdddb0d7cdc11bc2c9b24e8c437636f8c37 100644 (file)
@@ -39,6 +39,7 @@
 #include "i915_drv.h"
 #include "i915_gpu_error.h"
 #include "intel_atomic.h"
+#include "intel_csr.h"
 #include "intel_overlay.h"
 
 static inline const struct intel_engine_cs *
index 17a32c1e8a35c2913e2198292d1c61555c382e77..03c64f8af7ab333836ba04f8f2064ea54f0e6b35 100644 (file)
@@ -8,6 +8,10 @@
 
 struct drm_i915_private;
 
+#define CSR_VERSION(major, minor)      ((major) << 16 | (minor))
+#define CSR_VERSION_MAJOR(version)     ((version) >> 16)
+#define CSR_VERSION_MINOR(version)     ((version) & 0xffff)
+
 void intel_csr_ucode_init(struct drm_i915_private *i915);
 void intel_csr_load_program(struct drm_i915_private *i915);
 void intel_csr_ucode_fini(struct drm_i915_private *i915);