- Timestamp:
- Jan 15, 2024 12:08:04 PM (13 months ago)
- Location:
- trunk/src/VBox
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r102794 r102874 388 388 .dumb_destroy = drm_gem_dumb_destroy, 389 389 #endif 390 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_ MAJ_PREREQ(9,4)390 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_RANGE(9,4, 9,99) 391 391 .prime_handle_to_fd = drm_gem_prime_handle_to_fd, 392 392 .prime_fd_to_handle = drm_gem_prime_fd_to_handle, … … 394 394 .gem_prime_import = drm_gem_prime_import, 395 395 .gem_prime_import_sg_table = vbox_gem_prime_import_sg_table, 396 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_ MAJ_PREREQ(9,4)396 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_RANGE(9,4, 9,99) 397 397 .gem_prime_mmap = vbox_gem_prime_mmap, 398 398 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r102794 r102874 173 173 #endif 174 174 175 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)175 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 176 176 # include <drm/ttm/ttm_bo.h> 177 177 #else … … 250 250 * now represents number of bytes. This macro handles this change. Input 251 251 * argument is a pointer to struct ttm_resource. */ 252 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)252 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 253 253 # define VBOX_BO_RESOURCE_NUM_PAGES(_resource) PFN_UP(_resource->size) 254 254 #else … … 530 530 void *vbox_gem_prime_vmap(struct drm_gem_object *obj); 531 531 void vbox_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); 532 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_ MAJ_PREREQ(9,4)532 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_RANGE(9,4, 9,99) 533 533 int vbox_gem_prime_mmap(struct drm_gem_object *obj, 534 534 struct vm_area_struct *area); -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r102794 r102874 51 51 #include <VBoxVideo.h> 52 52 53 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)53 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 54 54 # define VBOX_FBDEV_INFO(_helper) _helper.info 55 55 #else … … 197 197 .fb_check_var = drm_fb_helper_check_var, 198 198 .fb_set_par = drm_fb_helper_set_par, 199 #if RTLNX_VER_MIN(6,5,0) || RTLNX_RHEL_ MAJ_PREREQ(9,4)199 #if RTLNX_VER_MIN(6,5,0) || RTLNX_RHEL_RANGE(9,4, 9,99) 200 200 .fb_read = fb_sys_read, 201 201 .fb_write = fb_sys_write, … … 331 331 } 332 332 333 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)333 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 334 334 info = drm_fb_helper_alloc_info(helper); 335 335 #else … … 359 359 info->fbops = &vboxfb_ops; 360 360 361 #if RTLNX_VER_MAX(6,3,0) && !RTLNX_RHEL_RANGE(8,9, 8,99) && !RTLNX_RHEL_ MAJ_PREREQ(9,3)361 #if RTLNX_VER_MAX(6,3,0) && !RTLNX_RHEL_RANGE(8,9, 8,99) && !RTLNX_RHEL_RANGE(9,3, 9,99) 362 362 /* 363 363 * This seems to be done for safety checking that the framebuffer … … 392 392 393 393 #ifdef CONFIG_FB_DEFERRED_IO 394 # if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3) || RTLNX_SUSE_MAJ_PREREQ(15,5)394 # if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) || RTLNX_SUSE_MAJ_PREREQ(15,5) 395 395 info->fix.smem_len = info->screen_size; 396 396 # endif … … 437 437 #endif 438 438 439 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)439 #if RTLNX_VER_MIN(6,2,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 440 440 drm_fb_helper_unregister_info(&fbdev->helper); 441 441 #else … … 485 485 spin_lock_init(&fbdev->dirty_lock); 486 486 487 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)487 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 488 488 drm_fb_helper_prepare(dev, &fbdev->helper, 32, &vbox_fb_helper_funcs); 489 489 #elif RTLNX_VER_MIN(3,17,0) || RTLNX_RHEL_MIN(7,2) … … 514 514 drm_helper_disable_unused_functions(dev); 515 515 516 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)516 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 517 517 ret = drm_fb_helper_initial_config(&fbdev->helper); 518 518 #else … … 533 533 struct fb_info *fbdev = VBOX_FBDEV_INFO(vbox->fbdev->helper); 534 534 535 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)535 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 536 536 fbdev->fix.smem_start = pci_resource_start(VBOX_DRM_TO_PCI_DEV(vbox->fbdev->helper.dev), 0) + gpu_addr; 537 537 #else -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r101029 r102874 37 37 #include <drm/drm_crtc_helper.h> 38 38 39 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)39 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 40 40 # include <drm/drm_modeset_helper.h> 41 41 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r101029 r102874 40 40 #include <linux/export.h> 41 41 #include <drm/drm_crtc_helper.h> 42 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3)42 #if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) 43 43 # include <drm/drm_modeset_helper_vtables.h> 44 44 # include <drm/drm_modeset_helper.h> -
trunk/src/VBox/Additions/linux/drm/vbox_prime.c
r102794 r102874 74 74 } 75 75 76 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_ MAJ_PREREQ(9,4)76 #if RTLNX_VER_MAX(6,6,0) && !RTLNX_RHEL_RANGE(9,4, 9,99) 77 77 int vbox_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *area) 78 78 { -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r101029 r102874 322 322 tt->func = &vbox_tt_backend_func; 323 323 #endif 324 #if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,2) || RTLNX_SUSE_MAJ_PREREQ(15,5)324 #if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_RANGE(9,2, 9,99) || RTLNX_SUSE_MAJ_PREREQ(15,5) 325 325 if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined, 0)) { 326 326 #elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99) … … 646 646 #endif 647 647 648 #if RTLNX_VER_MIN(6,1,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_ MAJ_PREREQ(9,3) || RTLNX_SUSE_MAJ_PREREQ(15,5)648 #if RTLNX_VER_MIN(6,1,0) || RTLNX_RHEL_RANGE(8,9, 8,99) || RTLNX_RHEL_RANGE(9,3, 9,99) || RTLNX_SUSE_MAJ_PREREQ(15,5) 649 649 ret = ttm_bo_init_validate(&vbox->ttm.bdev, &vboxbo->bo, 650 650 #else -
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r102795 r102874 99 99 /** Starting from 6.4.0, iter_iov() macro should be used in order to access to iov field 100 100 * of struct iov_iter. */ 101 #if RTLNX_VER_MIN(6,4,0) || RTLNX_RHEL_ MAJ_PREREQ(9,4)101 #if RTLNX_VER_MIN(6,4,0) || RTLNX_RHEL_RANGE(9,4, 9,99) 102 102 # define VBSF_GET_ITER_IOV(_iter) iter_iov(_iter) 103 103 #else … … 2121 2121 #if RTLNX_VER_MIN(2,6,19) 2122 2122 /* See kernel 6.0.0 change eba2d3d798295dc43cae8fade102f9d083a2a741. */ 2123 # if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_ MAJ_PREREQ(9,4)2123 # if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_RANGE(9,4, 9,99) 2124 2124 # define VBOX_IOV_GET_PAGES iov_iter_get_pages2 2125 2125 # else -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r101592 r102874 48 48 # include <linux/nsproxy.h> 49 49 #endif 50 #if RTLNX_VER_MIN(6,4,10) || RTLNX_RHEL_ MAJ_PREREQ(9,4)50 #if RTLNX_VER_MIN(6,4,10) || RTLNX_RHEL_RANGE(9,4, 9,99) 51 51 # include <net/gso.h> 52 52 #endif -
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r102304 r102874 1263 1263 # endif 1264 1264 1265 # if RTLNX_VER_MIN(6,5,0) || RTLNX_RHEL_ MAJ_PREREQ(9,4)1265 # if RTLNX_VER_MIN(6,5,0) || RTLNX_RHEL_RANGE(9,4, 9,99) 1266 1266 pEntry = __pte_map(&u.Middle, ulAddr); 1267 1267 # elif RTLNX_VER_MIN(2,5,5) || defined(pte_offset_map) /* As usual, RHEL 3 had pte_offset_map earlier. */
Note:
See TracChangeset
for help on using the changeset viewer.