Changeset 71947 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Apr 20, 2018 2:59:20 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r69524 r71947 273 273 .master_drop = vbox_master_drop, 274 274 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73) 275 # if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) 275 # if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) && !defined(RHEL_75) 276 276 .set_busid = drm_pci_set_busid, 277 277 # endif -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r69748 r71947 50 50 51 51 #if defined(RHEL_MAJOR) && defined(RHEL_MINOR) 52 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 5 53 # define RHEL_75 54 # endif 52 55 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 4 53 # define RHEL_7354 56 # define RHEL_74 55 # elif RHEL_MAJOR == 7 && RHEL_MINOR >= 3 57 # endif 58 # if RHEL_MAJOR == 7 && RHEL_MINOR >= 3 56 59 # define RHEL_73 57 60 # endif … … 63 66 #endif 64 67 #include <drm/drm_fb_helper.h> 65 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 68 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 66 69 #include <drm/drm_encoder.h> 67 70 #endif … … 160 163 161 164 int vbox_driver_load(struct drm_device *dev, unsigned long flags); 162 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 165 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 163 166 void vbox_driver_unload(struct drm_device *dev); 164 167 #else -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r69748 r71947 318 318 info->fix.smem_len = size; 319 319 320 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 320 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 321 321 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); 322 322 #else … … 401 401 drm_fb_helper_prepare(dev, &fbdev->helper, &vbox_fb_helper_funcs); 402 402 #endif 403 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 403 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 404 404 ret = drm_fb_helper_init(dev, &fbdev->helper, vbox->num_crtcs); 405 405 #else -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r68334 r71947 173 173 int ret; 174 174 175 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 175 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 176 176 drm_helper_mode_fill_fb_struct(dev, &vbox_fb->base, mode_cmd); 177 177 #else … … 405 405 } 406 406 407 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 407 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 408 408 void vbox_driver_unload(struct drm_device *dev) 409 409 #else … … 427 427 kfree(vbox); 428 428 dev->dev_private = NULL; 429 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) 429 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) && !defined(RHEL_75) 430 430 return 0; 431 431 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r71946 r71947 70 70 height = mode->vdisplay ? mode->vdisplay : 480; 71 71 crtc_id = vbox_crtc->crtc_id; 72 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 72 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 73 73 bpp = crtc->enabled ? CRTC_FB(crtc)->format->cpp[0] * 8 : 32; 74 74 pitch = crtc->enabled ? CRTC_FB(crtc)->pitches[0] : width * bpp / 8; … … 94 94 VBoxVideoSetModeRegisters( 95 95 width, height, pitch * 8 / bpp, 96 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 96 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 97 97 CRTC_FB(crtc)->format->cpp[0] * 8, 98 98 #else -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r68336 r71947 268 268 .io_mem_reserve = &vbox_ttm_io_mem_reserve, 269 269 .io_mem_free = &vbox_ttm_io_mem_free, 270 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) 270 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) || defined(RHEL_75) 271 271 .io_mem_pfn = ttm_bo_default_io_mem_pfn, 272 272 #endif 273 273 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)) \ 274 274 || defined(RHEL_74) 275 # ifndef RHEL_75 275 276 .lru_tail = &ttm_bo_default_lru_tail, 276 277 .swap_lru_tail = &ttm_bo_default_swap_lru_tail, 278 # endif 277 279 #endif 278 280 };
Note:
See TracChangeset
for help on using the changeset viewer.