diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-05-02 18:02:39 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-05-03 10:06:25 +0300 |
commit | 6176490e7eb354be198d4fc6c5bbb72fb9e8b1e0 (patch) | |
tree | e81659bad371738ae5c3b56bdbcaf0686f3a1919 /drivers/gpu/drm/i915/intel_csr.h | |
parent | d28cea20bf2256301f144ea3d4a0da324129a05f (diff) | |
download | linux-6176490e7eb354be198d4fc6c5bbb72fb9e8b1e0.tar.xz |
drm/i915/csr: move CSR version macros to intel_csr.h
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
Diffstat (limited to 'drivers/gpu/drm/i915/intel_csr.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_csr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_csr.h b/drivers/gpu/drm/i915/intel_csr.h index 17a32c1e8a35..03c64f8af7ab 100644 --- a/drivers/gpu/drm/i915/intel_csr.h +++ b/drivers/gpu/drm/i915/intel_csr.h @@ -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); |