mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 03:01:41 +02:00
drm/i915/de: Add intel_de_read16()
We'll need a replacement for intel_uncore_read16() in order to untangle intel_mchbar_read16() from uncore. As with the 8 bit counterpart this doesn't need to work on modern platforms so we can forgo all the DMC wakelock stuff and whatnot. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260331154259.24600-8-ville.syrjala@linux.intel.com
This commit is contained in:
parent
a076686aca
commit
ed3643fb13
|
|
@ -176,3 +176,11 @@ void intel_de_write8(struct intel_display *display, i915_reg_t reg, u8 val)
|
|||
|
||||
intel_uncore_write8(__to_uncore(display), reg, val);
|
||||
}
|
||||
|
||||
u16 intel_de_read16(struct intel_display *display, i915_reg_t reg)
|
||||
{
|
||||
/* this is only used on MCHBAR registers on pre-SNB */
|
||||
drm_WARN_ON(display->drm, DISPLAY_VER(display) >= 6);
|
||||
|
||||
return intel_uncore_read16(__to_uncore(display), reg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ static inline struct intel_uncore *__to_uncore(struct intel_display *display)
|
|||
|
||||
u8 intel_de_read8(struct intel_display *display, i915_reg_t reg);
|
||||
void intel_de_write8(struct intel_display *display, i915_reg_t reg, u8 val);
|
||||
u16 intel_de_read16(struct intel_display *display, i915_reg_t reg);
|
||||
|
||||
static inline u32
|
||||
intel_de_read(struct intel_display *display, i915_reg_t reg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user