Rev 5271 | Rev 6104 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5271 | Rev 5354 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #include "radeon_object.h" |
4 | #include "radeon_object.h" |
5 | #include "drm_fb_helper.h" |
5 | #include "drm_fb_helper.h" |
6 | #include "hmm.h" |
6 | #include "hmm.h" |
7 | #include "bitmap.h" |
7 | #include "bitmap.h" |
8 | #include "display.h" |
8 | #include |
9 | 9 | ||
Line 10... | Line 10... | ||
10 | extern struct drm_framebuffer *main_fb; |
10 | extern struct drm_framebuffer *main_fb; |
11 | extern struct drm_gem_object *main_fb_obj; |
11 | extern struct drm_gem_object *main_fb_obj; |
Line 12... | Line 12... | ||
12 | 12 | ||
Line 92... | Line 92... | ||
92 | 92 | ||
Line 93... | Line 93... | ||
93 | old = os_display->cursor; |
93 | old = os_display->cursor; |
Line 94... | Line 94... | ||
94 | 94 | ||
95 | os_display->cursor = cursor; |
95 | os_display->cursor = cursor; |
Line 96... | Line 96... | ||
96 | gpu_addr = radeon_bo_gpu_offset(cursor->robj); |
96 | gpu_addr = radeon_bo_gpu_offset(cursor->cobj); |
97 | 97 | ||
98 | if (ASIC_IS_DCE4(rdev)) { |
98 | if (ASIC_IS_DCE4(rdev)) { |
99 | WREG32(EVERGREEN_CUR_SURFACE_ADDRESS_HIGH + radeon_crtc->crtc_offset, |
99 | WREG32(EVERGREEN_CUR_SURFACE_ADDRESS_HIGH + radeon_crtc->crtc_offset, |
Line 167... | Line 167... | ||
167 | (RADEON_CUR_LOCK | (xorg << 16) | yorg )); |
167 | (RADEON_CUR_LOCK | (xorg << 16) | yorg )); |
168 | WREG32(RADEON_CUR_HORZ_VERT_POSN, |
168 | WREG32(RADEON_CUR_HORZ_VERT_POSN, |
169 | (RADEON_CUR_LOCK | (x << 16) | y)); |
169 | (RADEON_CUR_LOCK | (x << 16) | y)); |
170 | 170 | ||
Line 171... | Line 171... | ||
171 | gpu_addr = radeon_bo_gpu_offset(cursor->robj); |
171 | gpu_addr = radeon_bo_gpu_offset(cursor->cobj); |
Line 172... | Line 172... | ||
172 | 172 | ||
173 | /* offset is from DISP(2)_BASE_ADDRESS */ |
173 | /* offset is from DISP(2)_BASE_ADDRESS */ |
174 | WREG32(RADEON_CUR_OFFSET, |
174 | WREG32(RADEON_CUR_OFFSET, |
175 | (gpu_addr - rdev->mc.vram_start + (yorg * 256))); |
175 | (gpu_addr - rdev->mc.vram_start + (yorg * 256))); |