summaryrefslogtreecommitdiff
path: root/src/radeon_cursor.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-11-16 15:00:50 +1000
committerDave Airlie <airlied@linux.ie>2007-11-16 15:02:27 +1000
commitd39eb2077c6b2fc094ccd952772528eb9428c587 (patch)
tree459d6446bc202cabcd47073b18033013f9afdeaf /src/radeon_cursor.c
parentb7774c28dde72a205a40be78003df72eabfb9b1f (diff)
radeon: rename a large section of avivo regs to documented names
Diffstat (limited to 'src/radeon_cursor.c')
-rw-r--r--src/radeon_cursor.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c
index d46c098e..948ecd4e 100644
--- a/src/radeon_cursor.c
+++ b/src/radeon_cursor.c
@@ -96,15 +96,15 @@ avivo_setup_cursor(xf86CrtcPtr crtc, Bool enable)
RADEONInfoPtr info = RADEONPTR(crtc->scrn);
unsigned char *RADEONMMIO = info->MMIO;
- OUTREG(AVIVO_CURSOR1_CNTL + radeon_crtc->crtc_offset, 0);
+ OUTREG(AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset, 0);
if (enable) {
- OUTREG(AVIVO_CURSOR1_LOCATION + radeon_crtc->crtc_offset,
+ OUTREG(AVIVO_D1CUR_SURFACE_ADDRESS + radeon_crtc->crtc_offset,
info->fbLocation + info->cursor_offset);
- OUTREG(AVIVO_CURSOR1_SIZE + radeon_crtc->crtc_offset,
+ OUTREG(AVIVO_D1CUR_SIZE + radeon_crtc->crtc_offset,
((info->cursor_width -1) << 16) | (info->cursor_height-1));
- OUTREG(AVIVO_CURSOR1_CNTL + radeon_crtc->crtc_offset,
- AVIVO_CURSOR_EN | (AVIVO_CURSOR_FORMAT_ARGB << AVIVO_CURSOR_FORMAT_SHIFT));
+ OUTREG(AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset,
+ AVIVO_D1CURSOR_EN | (AVIVO_D1CURSOR_MODE_24BPP << AVIVO_D1CURSOR_MODE_SHIFT));
}
}
@@ -124,9 +124,9 @@ radeon_crtc_show_cursor (xf86CrtcPtr crtc)
RADEON_SYNC(info, pScrn);
if (IS_AVIVO_VARIANT) {
- OUTREG(AVIVO_CURSOR1_CNTL + radeon_crtc->crtc_offset,
- INREG(AVIVO_CURSOR1_CNTL + radeon_crtc->crtc_offset)
- | AVIVO_CURSOR_EN);
+ OUTREG(AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset,
+ INREG(AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset)
+ | AVIVO_D1CURSOR_EN);
avivo_setup_cursor(crtc, TRUE);
} else {
if (crtc_id == 0)
@@ -158,9 +158,9 @@ radeon_crtc_hide_cursor (xf86CrtcPtr crtc)
RADEON_SYNC(info, pScrn);
if (IS_AVIVO_VARIANT) {
- OUTREG(AVIVO_CURSOR1_CNTL+ radeon_crtc->crtc_offset,
- INREG(AVIVO_CURSOR1_CNTL + radeon_crtc->crtc_offset)
- & ~(AVIVO_CURSOR_EN));
+ OUTREG(AVIVO_D1CUR_CONTROL+ radeon_crtc->crtc_offset,
+ INREG(AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset)
+ & ~(AVIVO_D1CURSOR_EN));
avivo_setup_cursor(crtc, FALSE);
} else {
if (crtc_id == 0)
@@ -202,7 +202,7 @@ radeon_crtc_set_cursor_position (xf86CrtcPtr crtc, int x, int y)
if (y < 0)
y = 0;
- OUTREG(AVIVO_CURSOR1_POSITION + radeon_crtc->crtc_offset, (x << 16) | y);
+ OUTREG(AVIVO_D1CUR_POSITION + radeon_crtc->crtc_offset, (x << 16) | y);
radeon_crtc->cursor_x = x;
radeon_crtc->cursor_y = y;
} else {