]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move LRC register offsets to a header file
authorMichel Thierry <michel.thierry@intel.com>
Wed, 24 Jan 2018 00:43:49 +0000 (16:43 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Jan 2018 09:22:55 +0000 (09:22 +0000)
commit970036801430acef3de6bd1c83044e88ee3e3b12
tree0ce9f6e5458d8989824f1c2277771f3b8028bbf1
parent22c9b9c0ed28d77bdef43d0f2d3c14de7e6fffcd
drm/i915: Move LRC register offsets to a header file

Newer platforms may have subtle offset changes, which will increase the
number of defines, so it is probably better to start moving them to its
own header file. Also move the macros used while setting the reg state.

v2: Rename to intel_lrc_reg.h, to be consistent with i915_reg.h and
intel_guc_reg.h (Chris)
v3: License notice shenanigans.
v4: Documentation/process/coding-style.rst is always right (Chris)
v5: Rebase.

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180124004349.22126-2-michel.thierry@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc_reg.h [new file with mode: 0644]