Rev 1125 | Rev 1179 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1125 | Rev 1126 | ||
---|---|---|---|
Line 167... | Line 167... | ||
167 | 167 | ||
168 | static const struct drm_crtc_funcs radeon_crtc_funcs = { |
168 | static const struct drm_crtc_funcs radeon_crtc_funcs = { |
169 | // .cursor_set = radeon_crtc_cursor_set, |
169 | // .cursor_set = radeon_crtc_cursor_set, |
170 | // .cursor_move = radeon_crtc_cursor_move, |
170 | // .cursor_move = radeon_crtc_cursor_move, |
171 | .gamma_set = radeon_crtc_gamma_set, |
171 | .gamma_set = radeon_crtc_gamma_set, |
172 | // .set_config = drm_crtc_helper_set_config, |
172 | .set_config = drm_crtc_helper_set_config, |
173 | .destroy = radeon_crtc_destroy, |
173 | .destroy = radeon_crtc_destroy, |
Line 174... | Line 174... | ||
174 | }; |
174 | }; |
175 | 175 | ||
Line 554... | Line 554... | ||
554 | *frac_fb_div_p = best_frac_feedback_div; |
554 | *frac_fb_div_p = best_frac_feedback_div; |
555 | *ref_div_p = best_ref_div; |
555 | *ref_div_p = best_ref_div; |
556 | *post_div_p = best_post_div; |
556 | *post_div_p = best_post_div; |
557 | } |
557 | } |
Line 558... | Line -... | ||
558 | - | ||
Line 559... | Line 558... | ||
559 | #if 0 |
558 | |
560 | 559 | ||
561 | static void radeon_user_framebuffer_destroy(struct drm_framebuffer *fb) |
560 | static void radeon_user_framebuffer_destroy(struct drm_framebuffer *fb) |
562 | { |
561 | { |
Line 589... | Line 588... | ||
589 | static const struct drm_framebuffer_funcs radeon_fb_funcs = { |
588 | static const struct drm_framebuffer_funcs radeon_fb_funcs = { |
590 | .destroy = radeon_user_framebuffer_destroy, |
589 | .destroy = radeon_user_framebuffer_destroy, |
591 | .create_handle = radeon_user_framebuffer_create_handle, |
590 | .create_handle = radeon_user_framebuffer_create_handle, |
592 | }; |
591 | }; |
Line 593... | Line -... | ||
593 | - | ||
Line 594... | Line 592... | ||
594 | #endif |
592 | |
595 | 593 | ||
596 | struct drm_framebuffer * |
594 | struct drm_framebuffer * |
597 | radeon_framebuffer_create(struct drm_device *dev, |
595 | radeon_framebuffer_create(struct drm_device *dev, |
Line 602... | Line 600... | ||
602 | 600 | ||
603 | radeon_fb = kzalloc(sizeof(*radeon_fb), GFP_KERNEL); |
601 | radeon_fb = kzalloc(sizeof(*radeon_fb), GFP_KERNEL); |
604 | if (radeon_fb == NULL) { |
602 | if (radeon_fb == NULL) { |
605 | return NULL; |
603 | return NULL; |
606 | } |
604 | } |
607 | // drm_framebuffer_init(dev, &radeon_fb->base, &radeon_fb_funcs); |
605 | drm_framebuffer_init(dev, &radeon_fb->base, &radeon_fb_funcs); |
608 | // drm_helper_mode_fill_fb_struct(&radeon_fb->base, mode_cmd); |
606 | drm_helper_mode_fill_fb_struct(&radeon_fb->base, mode_cmd); |
609 | radeon_fb->obj = obj; |
607 | radeon_fb->obj = obj; |
610 | return &radeon_fb->base; |
608 | return &radeon_fb->base; |
Line 611... | Line 609... | ||
611 | } |
609 | } |
Line 625... | Line 623... | ||
625 | } |
623 | } |
Line 626... | Line 624... | ||
626 | 624 | ||
627 | 625 | ||
628 | static const struct drm_mode_config_funcs radeon_mode_funcs = { |
626 | static const struct drm_mode_config_funcs radeon_mode_funcs = { |
629 | // .fb_create = radeon_user_framebuffer_create, |
627 | // .fb_create = radeon_user_framebuffer_create, |
Line 630... | Line -... | ||
630 | // .fb_changed = radeonfb_probe, |
- | |
631 | }; |
628 | .fb_changed = radeonfb_probe, |
632 | 629 | }; |
|
Line 633... | Line 630... | ||
633 | 630 |