OSDN Git Service

drm/i915: Define MCR registers explicitly
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 14 Oct 2022 23:02:33 +0000 (16:02 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 17 Oct 2022 17:14:24 +0000 (10:14 -0700)
commita9e69428b1b4bb0fcf5a55f13d87557de723d7ed
tree9f0f6b4cc8bb2c346b625dd67c7bd9f0351d5a54
parent3068bec83eea324b299105ec69a3f42c7968c6c0
drm/i915: Define MCR registers explicitly

Rather than using the same _MMIO() macro to define MCR registers as
singleton registers, let's use a new MCR_REG() macro to make it clear
that these registers are special and should be handled accordingly.  For
now MCR_REG() will still generate an i915_reg_t with the given offset,
but we'll change that in future patches.

Bspec: 66673, 66696, 66534, 67609
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014230239.1023689-9-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_gt_regs.h