OSDN Git Service

drm/i915: refactor register fw read/write macros for recent GENs
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Sat, 4 Feb 2017 01:23:29 +0000 (17:23 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Feb 2017 08:55:40 +0000 (08:55 +0000)
commitccfceda22cc018ce78c8523c102937c39272e543
treef034c8e336e4c8834c141721592575b8c9d497b1
parent4a04e371228937d104fd03d5219f8c25fda29757
drm/i915: refactor register fw read/write macros for recent GENs

The only difference for the more recent of those macros is the version
of the *_reg_<read/write>_fw_domains function. Passing the function
prefix in allows us to re-use the same macro to generate functions for
different GENs and will make it easier to add new accessors in the future

Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1486171409-21542-1-git-send-email-daniele.ceraolospurio@intel.com
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_uncore.c