Rev 1313 | Rev 1404 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1313 | Rev 1403 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | #include |
- | |
2 | #include |
1 | #include |
3 | #include |
2 | #include |
4 | #include |
3 | #include |
5 | #include "radeon_drm.h" |
4 | #include "radeon_drm.h" |
6 | #include "radeon.h" |
5 | #include "radeon.h" |
Line 77... | Line 76... | ||
77 | 76 | ||
Line 78... | Line 77... | ||
78 | old = rdisplay->cursor; |
77 | old = rdisplay->cursor; |
Line 79... | Line 78... | ||
79 | 78 | ||
80 | rdisplay->cursor = cursor; |
79 | rdisplay->cursor = cursor; |
Line 81... | Line 80... | ||
81 | gpu_addr = cursor->robj->gpu_addr; |
80 | // gpu_addr = cursor->robj->gpu_addr; |
82 | 81 | ||
83 | if (ASIC_IS_AVIVO(rdev)) |
82 | if (ASIC_IS_AVIVO(rdev)) |
84 | WREG32(AVIVO_D1CUR_SURFACE_ADDRESS + radeon_crtc->crtc_offset, gpu_addr); |
83 | WREG32(AVIVO_D1CUR_SURFACE_ADDRESS + radeon_crtc->crtc_offset, gpu_addr); |
Line 172... | Line 171... | ||
172 | return name; |
171 | return name; |
173 | } |
172 | } |
Line 174... | Line 173... | ||
174 | 173 | ||
175 | bool set_mode(struct drm_device *dev, struct drm_connector *connector, |
174 | bool set_mode(struct drm_device *dev, struct drm_connector *connector, |
176 | mode_t *reqmode, bool strict) |
175 | videomode_t *reqmode, bool strict) |
177 | { |
176 | { |
Line 178... | Line 177... | ||
178 | struct drm_display_mode *mode = NULL, *tmpmode; |
177 | struct drm_display_mode *mode = NULL, *tmpmode; |
Line 313... | Line 312... | ||
313 | 312 | ||
Line 314... | Line 313... | ||
314 | return def_connector; |
313 | return def_connector; |
315 | }; |
314 | }; |
Line 316... | Line 315... | ||
316 | 315 | ||
317 | bool init_display_kms(struct radeon_device *rdev, mode_t *usermode) |
316 | bool init_display_kms(struct radeon_device *rdev, videomode_t *usermode) |
318 | { |
317 | { |
Line 319... | Line 318... | ||
319 | struct drm_device *dev; |
318 | struct drm_device *dev; |
320 | 319 | ||
Line 381... | Line 380... | ||
381 | 380 | ||
Line 382... | Line 381... | ||
382 | return retval; |
381 | return retval; |
383 | }; |
382 | }; |
Line 384... | Line 383... | ||
384 | 383 | ||
385 | int get_modes(mode_t *mode, int *count) |
384 | int get_modes(videomode_t *mode, int *count) |
386 | { |
385 | { |
Line 387... | Line 386... | ||
387 | int err = -1; |
386 | int err = -1; |
Line 422... | Line 421... | ||
422 | LEAVE(); |
421 | LEAVE(); |
423 | return err; |
422 | return err; |
424 | } |
423 | } |
425 | 424 | ||
Line 426... | Line 425... | ||
426 | int set_user_mode(mode_t *mode) |
425 | int set_user_mode(videomode_t *mode) |
427 | { |
426 | { |
428 | int err = -1; |
427 | int err = -1; |
Line 429... | Line 428... | ||
429 | 428 |