Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: relocate _VGA_MSR_WRITE register definition

Move _VGA_MSR_WRITE to intel_crt_regs.h. It's not necessarily the
optimal place for it, but hands down better than i915_reg.h.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241213115111.335474-2-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+2 -2
+2
drivers/gpu/drm/i915/display/intel_crt_regs.h
··· 45 45 #define ADPA_VSYNC_ACTIVE_HIGH REG_BIT(4) 46 46 #define ADPA_HSYNC_ACTIVE_HIGH REG_BIT(3) 47 47 48 + #define _VGA_MSR_WRITE _MMIO(0x3c2) 49 + 48 50 #endif /* __INTEL_CRT_REGS_H__ */
-2
drivers/gpu/drm/i915/i915_reg.h
··· 144 144 #define GEN6_STOLEN_RESERVED_ENABLE (1 << 0) 145 145 #define GEN11_STOLEN_RESERVED_ADDR_MASK (0xFFFFFFFFFFFULL << 20) 146 146 147 - #define _VGA_MSR_WRITE _MMIO(0x3c2) 148 - 149 147 #define _GEN7_PIPEA_DE_LOAD_SL 0x70068 150 148 #define _GEN7_PIPEB_DE_LOAD_SL 0x71068 151 149 #define GEN7_PIPE_DE_LOAD_SL(pipe) _MMIO_PIPE(pipe, _GEN7_PIPEA_DE_LOAD_SL, _GEN7_PIPEB_DE_LOAD_SL)