drm/i915/uncore: Associate shadow table with uncore
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 10 Sep 2021 20:10:26 +0000 (13:10 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 22 Sep 2021 00:07:07 +0000 (17:07 -0700)
commit6cdbb1018238a363b9b842dc2a5733c9109319c6
tree797262eaa97efe7876475abfbd1e45c3f2586420
parent1ab2b4cd128382ff64aaab55d6204362296139bc
drm/i915/uncore: Associate shadow table with uncore

Store a reference to a platform's shadow table inside the uncore, the
same as we do with the forcewake table.  This will allow us to use a
single set of functions that operate on the shadow table reference
rather than generating lots of nearly-identical functions via macros
that differ only in terms of the table that they reference.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210910201030.3436066-3-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/intel_uncore.h