drm/i915/pcode: Add a couple of pcode helpers
authorDale B Stimson <dale.b.stimson@intel.com>
Thu, 19 May 2022 08:57:32 +0000 (09:57 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 20 May 2022 08:11:45 +0000 (09:11 +0100)
commit5f38c3fb55ce3814b4353320d7a205068a420e48
tree37ee320756158eddcada60cb4c5a003d21a2faae
parentee421bb4cb9535f44015634baad833dcc98c9062
drm/i915/pcode: Add a couple of pcode helpers

Some dGfx pcode commands take additional sub-commands and parameters. Add a
couple of helpers to help formatting these commands to improve code
readability.

v2: Fixed commit author (Rodrigo)
v3: Function rename and convert to new uncore interface for pcode functions
    Remove unnecessary #define's (Andi)
v4: Another function rename

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Dale B Stimson <dale.b.stimson@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220519085732.1276255-3-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pcode.c
drivers/gpu/drm/i915/intel_pcode.h