Changeset 89690 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Jun 14, 2021 6:33:10 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145138
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r89689 r89690 263 263 }; 264 264 265 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) 265 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 266 266 static void 267 267 #else … … 287 287 mutex_unlock(&vbox->hw_mutex); 288 288 289 #if RTLNX_VER_MAX(5,9,0) && !RTLNX_RHEL_MAJ_PREREQ(8,4) 289 #if RTLNX_VER_MAX(5,9,0) && !RTLNX_RHEL_MAJ_PREREQ(8,4) && !RTLNX_SUSE_MAJ_PREREQ(15,3) 290 290 return 0; 291 291 #endif … … 311 311 312 312 static struct drm_driver driver = { 313 #if RTLNX_VER_MAX(5,4,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3) 313 #if RTLNX_VER_MAX(5,4,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3) && !RTLNX_SUSE_MAJ_PREREQ(15,3) 314 314 .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ | 315 315 # if RTLNX_VER_MAX(5,1,0) && !RTLNX_RHEL_MAJ_PREREQ(8,1) … … 317 317 # endif 318 318 DRIVER_PRIME, 319 #else /* >= 5.4.0 && RHEL >= 8.3 */319 #else /* >= 5.4.0 && RHEL >= 8.3 && SLES >= 15-SP3 */ 320 320 .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ, 321 321 #endif /* < 5.4.0 */ -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r89278 r89690 152 152 #endif 153 153 154 #if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3) 154 #if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3) || RTLNX_SUSE_MAJ_PREREQ(15,3) 155 155 # include <drm/drm_file.h> 156 156 # include <drm/drm_drv.h> … … 160 160 # include <drm/drm_irq.h> 161 161 # include <drm/drm_vblank.h> 162 #else /* < 5.5.0 || RHEL < 8.3 */162 #else /* < 5.5.0 || RHEL < 8.3 || SLES < 15-SP3 */ 163 163 # include <drm/drmP.h> 164 164 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r88405 r89690 411 411 vbox_bo_unreserve(bo); 412 412 } 413 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) 413 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 414 414 drm_gem_object_put(afb->obj); 415 415 #else … … 444 444 drm_fb_helper_prepare(dev, &fbdev->helper, &vbox_fb_helper_funcs); 445 445 #endif 446 #if RTLNX_VER_MIN(5,7,0) || RTLNX_RHEL_MIN(8,4) 446 #if RTLNX_VER_MIN(5,7,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 447 447 ret = drm_fb_helper_init(dev, &fbdev->helper); 448 448 #elif RTLNX_VER_MIN(4,11,0) || RTLNX_RHEL_MAJ_PREREQ(7,5) … … 456 456 return ret; 457 457 458 #if RTLNX_VER_MAX(5,7,0) && !RTLNX_RHEL_MAJ_PREREQ(8,4) 458 #if RTLNX_VER_MAX(5,7,0) && !RTLNX_RHEL_MAJ_PREREQ(8,4) && !RTLNX_SUSE_MAJ_PREREQ(15,3) 459 459 ret = drm_fb_helper_single_add_all_connectors(&fbdev->helper); 460 460 if (ret) -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r88405 r89690 47 47 48 48 if (vbox_fb->obj) 49 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) 49 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 50 50 drm_gem_object_put(vbox_fb->obj); 51 51 #else … … 226 226 kfree(vbox_fb); 227 227 err_unref_obj: 228 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) 228 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 229 229 drm_gem_object_put(obj); 230 230 #else … … 597 597 598 598 ret = drm_gem_handle_create(file, gobj, &handle); 599 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) 599 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 600 600 drm_gem_object_put(gobj); 601 601 #else … … 634 634 static inline u64 vbox_bo_mmap_offset(struct vbox_bo *bo) 635 635 { 636 #if RTLNX_VER_MIN(5,4,0) || RTLNX_RHEL_MIN(8,3) 636 #if RTLNX_VER_MIN(5,4,0) || RTLNX_RHEL_MIN(8,3) || RTLNX_SUSE_MAJ_PREREQ(15,3) 637 637 return drm_vma_node_offset_addr(&bo->bo.base.vma_node); 638 638 #elif RTLNX_VER_MAX(3,12,0) && !RTLNX_RHEL_MAJ_PREREQ(7,0) -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r88405 r89690 399 399 *connector) 400 400 { 401 #if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3) 401 #if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3) || RTLNX_SUSE_MAJ_PREREQ(15,3) 402 402 struct drm_encoder *encoder; 403 403 … … 889 889 vbox_bo_unreserve(bo); 890 890 out_unref_obj: 891 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) 891 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 892 892 drm_gem_object_put(obj); 893 893 #else -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r89278 r89690 421 421 dev->anon_inode->i_mapping, 422 422 #endif 423 #if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3) 423 #if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3) || RTLNX_SUSE_MAJ_PREREQ(15,3) 424 424 dev->vma_offset_manager, 425 425 #elif RTLNX_VER_MAX(5,2,0) && !RTLNX_RHEL_MAJ_PREREQ(8,2) … … 627 627 static inline u64 vbox_bo_gpu_offset(struct vbox_bo *bo) 628 628 { 629 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) 629 #if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) 630 630 return bo->bo.mem.start << PAGE_SHIFT; 631 631 #else
Note:
See TracChangeset
for help on using the changeset viewer.