Commit 0b87c24e authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter

drm/i915: s/_CURACNTR/CURCNTR(PIPE_A)/

v2: Deal with _CURABASE too
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent f65a9c5b
...@@ -2909,7 +2909,7 @@ static bool cursor_active(struct drm_device *dev, int pipe) ...@@ -2909,7 +2909,7 @@ static bool cursor_active(struct drm_device *dev, int pipe)
u32 state; u32 state;
if (IS_845G(dev) || IS_I865G(dev)) if (IS_845G(dev) || IS_I865G(dev))
state = I915_READ(_CURACNTR) & CURSOR_ENABLE; state = I915_READ(CURCNTR(PIPE_A)) & CURSOR_ENABLE;
else else
state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE; state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE;
......
...@@ -1295,7 +1295,7 @@ static void assert_cursor(struct drm_i915_private *dev_priv, ...@@ -1295,7 +1295,7 @@ static void assert_cursor(struct drm_i915_private *dev_priv,
bool cur_state; bool cur_state;
if (IS_845G(dev) || IS_I865G(dev)) if (IS_845G(dev) || IS_I865G(dev))
cur_state = I915_READ(_CURACNTR) & CURSOR_ENABLE; cur_state = I915_READ(CURCNTR(PIPE_A)) & CURSOR_ENABLE;
else else
cur_state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE; cur_state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE;
...@@ -9890,13 +9890,13 @@ static void i845_update_cursor(struct drm_crtc *crtc, u32 base) ...@@ -9890,13 +9890,13 @@ static void i845_update_cursor(struct drm_crtc *crtc, u32 base)
/* On these chipsets we can only modify the base/size/stride /* On these chipsets we can only modify the base/size/stride
* whilst the cursor is disabled. * whilst the cursor is disabled.
*/ */
I915_WRITE(_CURACNTR, 0); I915_WRITE(CURCNTR(PIPE_A), 0);
POSTING_READ(_CURACNTR); POSTING_READ(CURCNTR(PIPE_A));
intel_crtc->cursor_cntl = 0; intel_crtc->cursor_cntl = 0;
} }
if (intel_crtc->cursor_base != base) { if (intel_crtc->cursor_base != base) {
I915_WRITE(_CURABASE, base); I915_WRITE(CURBASE(PIPE_A), base);
intel_crtc->cursor_base = base; intel_crtc->cursor_base = base;
} }
...@@ -9906,8 +9906,8 @@ static void i845_update_cursor(struct drm_crtc *crtc, u32 base) ...@@ -9906,8 +9906,8 @@ static void i845_update_cursor(struct drm_crtc *crtc, u32 base)
} }
if (intel_crtc->cursor_cntl != cntl) { if (intel_crtc->cursor_cntl != cntl) {
I915_WRITE(_CURACNTR, cntl); I915_WRITE(CURCNTR(PIPE_A), cntl);
POSTING_READ(_CURACNTR); POSTING_READ(CURCNTR(PIPE_A));
intel_crtc->cursor_cntl = cntl; intel_crtc->cursor_cntl = cntl;
} }
} }
......
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