Changeset 80712 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Sep 10, 2019 7:25:36 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 133253
- Location:
- trunk/src/VBox/Additions/linux
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r79690 r80712 42 42 #include "vbox_drv.h" 43 43 44 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) 44 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) || defined(RHEL_81) 45 45 #include <drm/drm_probe_helper.h> 46 46 #endif … … 308 308 .driver_features = 309 309 DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ | 310 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) 310 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) && !defined(RHEL_81) 311 311 DRIVER_IRQ_SHARED | 312 312 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r79025 r80712 51 51 52 52 #if defined(RHEL_MAJOR) && defined(RHEL_MINOR) 53 # if RHEL_MAJOR == 8 && RHEL_MINOR >= 1 54 # define RHEL_81 55 # endif 56 # if RHEL_MAJOR == 8 && RHEL_MINOR >= 0 57 # define RHEL_80 58 # endif 59 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 7 60 # define RHEL_77 61 # endif 53 62 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 6 54 63 # define RHEL_76 … … 188 197 189 198 struct { 190 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) 199 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(RHEL_77) && !defined(RHEL_81) 191 200 struct drm_global_reference mem_global_ref; 192 201 struct ttm_bo_global_ref bo_global_ref; -
trunk/src/VBox/Additions/linux/drm/vbox_irq.c
r77850 r80712 36 36 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) 37 37 #include <drm/drm_crtc_helper.h> 38 # if defined(RHEL_81) 39 # include <drm/drm_probe_helper.h> 40 # endif 38 41 #else 39 42 #include <drm/drm_probe_helper.h> -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r79025 r80712 606 606 #endif 607 607 608 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && !defined(OPENSUSE_151) 608 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && !defined(OPENSUSE_151) && !defined(RHEL_77) && !defined(RHEL_81) 609 609 static void ttm_bo_put(struct ttm_buffer_object *bo) 610 610 { -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r79694 r80712 43 43 #include <drm/drm_plane_helper.h> 44 44 #endif 45 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) 45 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) || defined(RHEL_81) 46 46 #include <drm/drm_probe_helper.h> 47 47 #endif … … 541 541 sum += edid[i]; 542 542 edid[EDID_SIZE - 1] = (0x100 - (sum & 0xFF)) & 0xFF; 543 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) 543 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) || defined(RHEL_77) || defined(RHEL_81) 544 544 drm_connector_update_edid_property(connector, (struct edid *)edid); 545 545 #else … … 716 716 #endif 717 717 718 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) 718 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) || defined(RHEL_77) || defined(RHEL_81) 719 719 drm_connector_attach_encoder(connector, encoder); 720 720 #else -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r80270 r80712 47 47 } 48 48 49 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) 49 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(RHEL_77) && !defined(RHEL_81) 50 50 static int vbox_ttm_mem_global_init(struct drm_global_reference *ref) 51 51 { … … 298 298 struct ttm_bo_device *bdev = &vbox->ttm.bdev; 299 299 300 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) 300 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(RHEL_77) && !defined(RHEL_81) 301 301 ret = vbox_ttm_global_init(vbox); 302 302 if (ret) … … 304 304 #endif 305 305 ret = ttm_bo_device_init(&vbox->ttm.bdev, 306 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) 306 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(RHEL_77) && !defined(RHEL_81) 307 307 vbox->ttm.bo_global_ref.ref.object, 308 308 #endif … … 318 318 if (ret) { 319 319 DRM_ERROR("Error initialising bo driver; %d\n", ret); 320 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) 320 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(RHEL_77) && !defined(RHEL_81) 321 321 goto err_ttm_global_release; 322 322 #else … … 344 344 err_device_release: 345 345 ttm_bo_device_release(&vbox->ttm.bdev); 346 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) 346 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(RHEL_77) && !defined(RHEL_81) 347 347 err_ttm_global_release: 348 348 vbox_ttm_global_release(vbox); … … 361 361 #endif 362 362 ttm_bo_device_release(&vbox->ttm.bdev); 363 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) 363 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(RHEL_77) && !defined(RHEL_81) 364 364 vbox_ttm_global_release(vbox); 365 365 #endif -
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r80582 r80712 80 80 #endif 81 81 82 #ifdef RHEL_RELEASE_CODE 83 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 1) 84 # define RHEL_81 85 # endif 86 #endif 82 87 83 88 /********************************************************************************************************************************* … … 1409 1414 * Check that this is valid user memory that is actually in the kernel range. 1410 1415 */ 1411 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) 1416 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) || defined(RHEL_81) 1412 1417 if ( access_ok((void *)uPtrFrom, cPages << PAGE_SHIFT) 1413 1418 && uPtrFrom >= USER_DS.seg)
Note:
See TracChangeset
for help on using the changeset viewer.