Changeset 98868 in vbox for trunk/src/VBox/Additions/linux/drm
- Timestamp:
- Mar 7, 2023 5:22:14 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156194
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r98455 r98868 173 173 #endif 174 174 175 #include <drm/ttm/ttm_bo_api.h> 176 #include <drm/ttm/ttm_bo_driver.h> 175 #if RTLNX_VER_MIN(6,3,0) 176 # include <drm/ttm/ttm_bo.h> 177 #else 178 # include <drm/ttm/ttm_bo_api.h> 179 # include <drm/ttm/ttm_bo_driver.h> 180 #endif 177 181 #include <drm/ttm/ttm_placement.h> 178 182 #if RTLNX_VER_MAX(5,13,0) && !RTLNX_RHEL_RANGE(8,6, 8,99) -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r98103 r98868 346 346 info->fbops = &vboxfb_ops; 347 347 348 #if RTLNX_VER_MAX(6,3,0) 348 349 /* 349 350 * This seems to be done for safety checking that the framebuffer … … 352 353 info->apertures->ranges[0].base = pci_resource_start(VBOX_DRM_TO_PCI_DEV(dev), 0); 353 354 info->apertures->ranges[0].size = pci_resource_len(VBOX_DRM_TO_PCI_DEV(dev), 0); 355 #endif 354 356 355 357 #if RTLNX_VER_MIN(5,2,0) || RTLNX_RHEL_MAJ_PREREQ(8,2) … … 458 460 spin_lock_init(&fbdev->dirty_lock); 459 461 460 #if RTLNX_VER_MAX(3,17,0) && !RTLNX_RHEL_MAJ_PREREQ(7,2) 462 #if RTLNX_VER_MIN(6,3,0) 463 drm_fb_helper_prepare(dev, &fbdev->helper, 32, &vbox_fb_helper_funcs); 464 #elif RTLNX_VER_MIN(3,17,0) || RTLNX_RHEL_MIN(7,2) 465 drm_fb_helper_prepare(dev, &fbdev->helper, &vbox_fb_helper_funcs); 466 #else 461 467 fbdev->helper.funcs = &vbox_fb_helper_funcs; 462 #else 463 drm_fb_helper_prepare(dev, &fbdev->helper, &vbox_fb_helper_funcs); 464 #endif 468 #endif 469 465 470 #if RTLNX_VER_MIN(5,7,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 466 471 ret = drm_fb_helper_init(dev, &fbdev->helper); … … 484 489 drm_helper_disable_unused_functions(dev); 485 490 491 #if RTLNX_VER_MIN(6,3,0) 492 ret = drm_fb_helper_initial_config(&fbdev->helper); 493 #else 486 494 ret = drm_fb_helper_initial_config(&fbdev->helper, 32); 495 #endif 487 496 if (ret) 488 497 goto err_fini; … … 499 508 struct fb_info *fbdev = VBOX_FBDEV_INFO(vbox->fbdev->helper); 500 509 510 #if RTLNX_VER_MIN(6,3,0) 511 fbdev->fix.smem_start = 512 pci_resource_start(VBOX_DRM_TO_PCI_DEV(vbox->fbdev->helper.dev), 0) + gpu_addr; 513 #else 501 514 fbdev->fix.smem_start = fbdev->apertures->ranges[0].base + gpu_addr; 515 #endif 502 516 fbdev->fix.smem_len = vbox->available_vram_size - gpu_addr; 503 517 } -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r98103 r98868 37 37 #include <drm/drm_crtc_helper.h> 38 38 39 #if RTLNX_VER_MIN(6,3,0) 40 # include <drm/drm_modeset_helper.h> 41 #endif 42 39 43 #include <VBoxVideoGuest.h> 40 44 #include <VBoxVideoVBE.h> -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r98455 r98868 40 40 #include <linux/export.h> 41 41 #include <drm/drm_crtc_helper.h> 42 #if RTLNX_VER_MIN(6,3,0) 43 # include <drm/drm_modeset_helper_vtables.h> 44 # include <drm/drm_modeset_helper.h> 45 #endif 42 46 #if RTLNX_VER_MIN(3,18,0) || RTLNX_RHEL_MAJ_PREREQ(7,2) 43 47 # include <drm/drm_plane_helper.h> -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r98455 r98868 34 34 */ 35 35 #include "vbox_drv.h" 36 37 #if RTLNX_VER_MIN(6,3,0) 38 # include <drm/ttm/ttm_tt.h> 39 #endif 40 36 41 #if RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_MAJ_PREREQ(8,5) 37 42 # include <drm/drm_gem.h>
Note:
See TracChangeset
for help on using the changeset viewer.