Commit c6a53c90 authored by Lucas De Marchi's avatar Lucas De Marchi

drm/i915: Move MCR_REG define to i915_reg_defs.h

Define MCR_REG() in the same header where i915_mcr_reg_t is defined,
like i915_reg_t and _MMIO(). It's a more natural place for such a
definition so it's not mixed with the registers for the platforms.
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230224211221.1557268-1-lucas.demarchi@intel.com
parent 0eb11734
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
#include "i915_reg_defs.h" #include "i915_reg_defs.h"
#include "display/intel_display_reg_defs.h" /* VLV_DISPLAY_BASE */ #include "display/intel_display_reg_defs.h" /* VLV_DISPLAY_BASE */
#define MCR_REG(offset) ((const i915_mcr_reg_t){ .reg = (offset) })
/* /*
* The perf control registers are technically multicast registers, but the * The perf control registers are technically multicast registers, but the
* driver never needs to read/write them directly; we only use them to build * driver never needs to read/write them directly; we only use them to build
......
...@@ -165,6 +165,8 @@ typedef struct { ...@@ -165,6 +165,8 @@ typedef struct {
u32 reg; u32 reg;
} i915_mcr_reg_t; } i915_mcr_reg_t;
#define MCR_REG(offset) ((const i915_mcr_reg_t){ .reg = (offset) })
#define INVALID_MMIO_REG _MMIO(0) #define INVALID_MMIO_REG _MMIO(0)
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment