Rev 3192 | Rev 5271 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3192 | Rev 3764 | ||
---|---|---|---|
Line 528... | Line 528... | ||
528 | radeon_show_cursor_kms(rdisplay->crtc); |
528 | radeon_show_cursor_kms(rdisplay->crtc); |
529 | }; |
529 | }; |
530 | safe_sti(ifl); |
530 | safe_sti(ifl); |
531 | 531 | ||
Line 532... | Line 532... | ||
532 | init_bitmaps(); |
532 | // init_bitmaps(); |
Line 533... | Line 533... | ||
533 | 533 | ||
Line 534... | Line 534... | ||
534 | LEAVE(); |
534 | LEAVE(); |
535 | 535 | ||
Line 630... | Line 630... | ||
630 | height = ALIGN(mode_cmd->height, 8); |
630 | height = ALIGN(mode_cmd->height, 8); |
631 | size = mode_cmd->pitches[0] * height; |
631 | size = mode_cmd->pitches[0] * height; |
632 | aligned_size = ALIGN(size, PAGE_SIZE); |
632 | aligned_size = ALIGN(size, PAGE_SIZE); |
633 | 633 | ||
Line 634... | Line 634... | ||
634 | 634 | #ifndef __TTM__ |
|
635 | ret = drm_gem_object_init(rdev->ddev, &kos_bo.gem_base, aligned_size); |
635 | ret = drm_gem_object_init(rdev->ddev, &kos_bo.gem_base, aligned_size); |
636 | if (unlikely(ret)) { |
636 | if (unlikely(ret)) { |
637 | printk(KERN_ERR "failed to allocate framebuffer (%d)\n", |
637 | printk(KERN_ERR "failed to allocate framebuffer (%d)\n", |
638 | aligned_size); |
638 | aligned_size); |
639 | return -ENOMEM; |
639 | return -ENOMEM; |
640 | } |
640 | } |
- | 641 | #endif |
|
Line 641... | Line 642... | ||
641 | 642 | ||
642 | kos_bo.rdev = rdev; |
643 | kos_bo.rdev = rdev; |
643 | kos_bo.gem_base.driver_private = NULL; |
644 | kos_bo.gem_base.driver_private = NULL; |
644 | kos_bo.surface_reg = -1; |
645 | kos_bo.surface_reg = -1; |
Line 645... | Line 646... | ||
645 | kos_bo.domain = RADEON_GEM_DOMAIN_VRAM; |
646 | // kos_bo.domain = RADEON_GEM_DOMAIN_VRAM; |
Line 646... | Line 647... | ||
646 | 647 | ||
647 | INIT_LIST_HEAD(&kos_bo.list); |
648 | INIT_LIST_HEAD(&kos_bo.list); |
Line 674... | Line 675... | ||
674 | *gobj_p = gobj; |
675 | *gobj_p = gobj; |
675 | return 0; |
676 | return 0; |
676 | } |
677 | } |
Line 677... | Line 678... | ||
677 | 678 | ||
678 | 679 | #if 0 |
|
679 | typedef struct |
680 | typedef struct |
680 | { |
681 | { |
681 | int left; |
682 | int left; |
682 | int top; |
683 | int top; |
Line 898... | Line 899... | ||
898 | fail: |
899 | fail: |
899 | return ret; |
900 | return ret; |
900 | };><>><>><>><>><>><>><>><>>24; |
901 | }; |
Line -... | Line 902... | ||
- | 902 |