diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-09-22 12:47:51 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-30 04:20:17 -0400 |
commit | 0b87c24ea5ec9e950aaa0c933fa739a95aa43555 (patch) | |
tree | 3d964f2d4279338e659be04c4004b384abdedc07 | |
parent | f65a9c5bd7287b4e545b07a3551a1b05c1468349 (diff) |
drm/i915: s/_CURACNTR/CURCNTR(PIPE_A)/
v2: Deal with _CURABASE too
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 007d8920eb2f..7d88ecfe3e2b 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -2909,7 +2909,7 @@ static bool cursor_active(struct drm_device *dev, int pipe) | |||
2909 | u32 state; | 2909 | u32 state; |
2910 | 2910 | ||
2911 | if (IS_845G(dev) || IS_I865G(dev)) | 2911 | if (IS_845G(dev) || IS_I865G(dev)) |
2912 | state = I915_READ(_CURACNTR) & CURSOR_ENABLE; | 2912 | state = I915_READ(CURCNTR(PIPE_A)) & CURSOR_ENABLE; |
2913 | else | 2913 | else |
2914 | state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE; | 2914 | state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE; |
2915 | 2915 | ||
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 203406b75bfe..86f5a6ef11d8 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -1295,7 +1295,7 @@ static void assert_cursor(struct drm_i915_private *dev_priv, | |||
1295 | bool cur_state; | 1295 | bool cur_state; |
1296 | 1296 | ||
1297 | if (IS_845G(dev) || IS_I865G(dev)) | 1297 | if (IS_845G(dev) || IS_I865G(dev)) |
1298 | cur_state = I915_READ(_CURACNTR) & CURSOR_ENABLE; | 1298 | cur_state = I915_READ(CURCNTR(PIPE_A)) & CURSOR_ENABLE; |
1299 | else | 1299 | else |
1300 | cur_state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE; | 1300 | cur_state = I915_READ(CURCNTR(pipe)) & CURSOR_MODE; |
1301 | 1301 | ||
@@ -9890,13 +9890,13 @@ static void i845_update_cursor(struct drm_crtc *crtc, u32 base) | |||
9890 | /* On these chipsets we can only modify the base/size/stride | 9890 | /* On these chipsets we can only modify the base/size/stride |
9891 | * whilst the cursor is disabled. | 9891 | * whilst the cursor is disabled. |
9892 | */ | 9892 | */ |
9893 | I915_WRITE(_CURACNTR, 0); | 9893 | I915_WRITE(CURCNTR(PIPE_A), 0); |
9894 | POSTING_READ(_CURACNTR); | 9894 | POSTING_READ(CURCNTR(PIPE_A)); |
9895 | intel_crtc->cursor_cntl = 0; | 9895 | intel_crtc->cursor_cntl = 0; |
9896 | } | 9896 | } |
9897 | 9897 | ||
9898 | if (intel_crtc->cursor_base != base) { | 9898 | if (intel_crtc->cursor_base != base) { |
9899 | I915_WRITE(_CURABASE, base); | 9899 | I915_WRITE(CURBASE(PIPE_A), base); |
9900 | intel_crtc->cursor_base = base; | 9900 | intel_crtc->cursor_base = base; |
9901 | } | 9901 | } |
9902 | 9902 | ||
@@ -9906,8 +9906,8 @@ static void i845_update_cursor(struct drm_crtc *crtc, u32 base) | |||
9906 | } | 9906 | } |
9907 | 9907 | ||
9908 | if (intel_crtc->cursor_cntl != cntl) { | 9908 | if (intel_crtc->cursor_cntl != cntl) { |
9909 | I915_WRITE(_CURACNTR, cntl); | 9909 | I915_WRITE(CURCNTR(PIPE_A), cntl); |
9910 | POSTING_READ(_CURACNTR); | 9910 | POSTING_READ(CURCNTR(PIPE_A)); |
9911 | intel_crtc->cursor_cntl = cntl; | 9911 | intel_crtc->cursor_cntl = cntl; |
9912 | } | 9912 | } |
9913 | } | 9913 | } |