- Timestamp:
- Oct 4, 2018 3:44:01 PM (6 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r74581 r74615 205 205 .mmap = vbox_mmap, 206 206 .poll = drm_poll, 207 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && !defined(RHEL_7 3)207 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && !defined(RHEL_70) 208 208 .fasync = drm_fasync, 209 209 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r74581 r74615 59 59 # define RHEL_73 60 60 # endif 61 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 2 62 # define RHEL_72 63 # endif 61 64 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 1 62 65 # define RHEL_71 66 # endif 67 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 0 68 # define RHEL_70 63 69 # endif 64 70 #endif … … 80 86 81 87 #include <drm/drmP.h> 82 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_7 3)88 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_72) 83 89 #include <drm/drm_gem.h> 84 90 #endif … … 262 268 #endif 263 269 264 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(RHEL_7 3)270 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(RHEL_71) 265 271 #define CRTC_FB(crtc) ((crtc)->fb) 266 272 #else … … 293 299 struct ttm_bo_kmap_obj kmap; 294 300 struct drm_gem_object gem; 295 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_7 3)301 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_72) 296 302 u32 placements[3]; 297 303 #else … … 368 374 struct sg_table *vbox_gem_prime_get_sg_table(struct drm_gem_object *obj); 369 375 struct drm_gem_object *vbox_gem_prime_import_sg_table(struct drm_device *dev, 370 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_7 3)376 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_72) 371 377 size_t size, 372 378 #else -
trunk/src/VBox/Additions/linux/drm/vbox_irq.c
r69083 r74615 200 200 201 201 vbox_update_mode_hints(vbox); 202 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(RHEL_7 3)202 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(RHEL_71) 203 203 ret = drm_irq_install(vbox->dev, vbox->dev->pdev->irq); 204 204 #else -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r74581 r74615 474 474 struct vbox_private *vbox = dev->dev_private; 475 475 476 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(RHEL_7 3)476 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(RHEL_71) 477 477 if (vbox->fbdev) 478 478 drm_fb_helper_restore_fbdev_mode_unlocked(&vbox->fbdev->helper); … … 563 563 static inline u64 vbox_bo_mmap_offset(struct vbox_bo *bo) 564 564 { 565 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && !defined(RHEL_7 3)565 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && !defined(RHEL_70) 566 566 return bo->bo.addr_space_offset; 567 567 #else -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r74581 r74615 40 40 #include <linux/export.h> 41 41 #include <drm/drm_crtc_helper.h> 42 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_7 3)42 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_72) 43 43 #include <drm/drm_plane_helper.h> 44 44 #endif … … 381 381 } 382 382 383 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) && !defined(RHEL_7 3)383 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) && !defined(RHEL_72) 384 384 static struct drm_encoder *drm_encoder_find(struct drm_device *dev, u32 id) 385 385 { … … 588 588 vbox_set_edid(connector, preferred_width, preferred_height); 589 589 590 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) || defined(RHEL_7 3)590 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) || defined(RHEL_72) 591 591 if (vbox_connector->vbox_crtc->x_hint != -1) 592 592 drm_object_property_set_value(&connector->base, … … 620 620 621 621 vbox_connector = to_vbox_connector(connector); 622 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_7 3)622 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_72) 623 623 drm_sysfs_connector_remove(connector); 624 624 #else … … 692 692 connector->doublescan_allowed = 0; 693 693 694 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) || defined(RHEL_7 3)694 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) || defined(RHEL_72) 695 695 drm_mode_create_suggested_offset_properties(dev); 696 696 drm_object_attach_property(&connector->base, … … 699 699 dev->mode_config.suggested_y_property, 0); 700 700 #endif 701 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_7 3)701 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_72) 702 702 drm_sysfs_connector_add(connector); 703 703 #else -
trunk/src/VBox/Additions/linux/drm/vbox_prime.c
r69325 r74615 51 51 52 52 struct drm_gem_object *vbox_gem_prime_import_sg_table(struct drm_device *dev, 53 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_7 3)53 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_72) 54 54 size_t size, 55 55 #else -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r72641 r74615 36 36 #include <ttm/ttm_page_alloc.h> 37 37 38 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_7 3)38 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_72) 39 39 #define PLACEMENT_FLAGS(placement) (placement) 40 40 #else … … 299 299 vbox->ttm.bo_global_ref.ref.object, 300 300 &vbox_bo_driver, 301 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) || defined(RHEL_7 3)301 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) || defined(RHEL_71) 302 302 dev->anon_inode->i_mapping, 303 303 #endif … … 351 351 { 352 352 u32 c = 0; 353 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_7 3)353 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_72) 354 354 bo->placement.fpfn = 0; 355 355 bo->placement.lpfn = 0; … … 373 373 bo->placement.num_placement = c; 374 374 bo->placement.num_busy_placement = c; 375 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_7 3)375 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_72) 376 376 for (i = 0; i < c; ++i) { 377 377 bo->placements[i].fpfn = 0; … … 400 400 401 401 vboxbo->bo.bdev = &vbox->ttm.bdev; 402 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(RHEL_7 3)402 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(RHEL_71) 403 403 vboxbo->bo.bdev->dev_mapping = dev->dev_mapping; 404 404 #endif … … 416 416 align >> PAGE_SHIFT, false, acc_size, 417 417 #endif 418 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_7 3)418 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_72) 419 419 NULL, 420 420 #endif
Note:
See TracChangeset
for help on using the changeset viewer.