Changeset 83073 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Feb 14, 2020 11:35:05 AM (5 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r82968 r83073 37 37 #include <linux/vt_kern.h> 38 38 39 #include <drm/drmP.h>40 39 #include <drm/drm_crtc_helper.h> 41 40 -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r82968 r83073 49 49 #include <linux/io.h> 50 50 #include <linux/string.h> 51 #include <linux/pci.h> 51 52 52 53 #if defined(RHEL_MAJOR) && defined(RHEL_MINOR) … … 104 105 #endif 105 106 107 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) 106 108 #include <drm/drmP.h> 109 #else /* >= KERNEL_VERSION(5, 5, 0) */ 110 #include <drm/drm_file.h> 111 #include <drm/drm_drv.h> 112 #include <drm/drm_device.h> 113 #include <drm/drm_ioctl.h> 114 #include <drm/drm_fourcc.h> 115 #include <drm/drm_irq.h> 116 #include <drm/drm_vblank.h> 117 #endif /* >= KERNEL_VERSION(5, 5, 0) */ 107 118 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75) 108 119 #include <drm/drm_encoder.h> -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r82968 r83073 43 43 #include <linux/init.h> 44 44 45 #include <drm/drmP.h>46 45 #include <drm/drm_crtc.h> 47 46 #include <drm/drm_fb_helper.h> -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r82968 r83073 399 399 *connector) 400 400 { 401 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) 402 struct drm_encoder *encoder; 403 404 /* There is only one encoder per connector */ 405 drm_connector_for_each_possible_encoder(connector, encoder) 406 return encoder; 407 #else /* KERNEL_VERSION < 5.5 */ 401 408 int enc_id = connector->encoder_ids[0]; 402 409 403 410 /* pick the encoder ids */ 404 411 if (enc_id) 405 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) || \406 (defined(CONFIG_SUSE_VERSION) && \407 LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)) || \408 defined(RHEL_76)412 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) || \ 413 (defined(CONFIG_SUSE_VERSION) && \ 414 LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)) || \ 415 defined(RHEL_76) 409 416 return drm_encoder_find(connector->dev, NULL, enc_id); 410 # else417 # else 411 418 return drm_encoder_find(connector->dev, enc_id); 412 # endif413 419 # endif 420 #endif /* KERNEL_VERSION < 5.5 */ 414 421 return NULL; 415 422 } -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r82968 r83073 311 311 dev->anon_inode->i_mapping, 312 312 #endif 313 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) 314 DRM_FILE_PAGE_OFFSET, true); 315 #else 313 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) 314 dev->vma_offset_manager, 315 #elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) 316 DRM_FILE_PAGE_OFFSET, 317 #endif 316 318 true); 317 #endif318 319 if (ret) { 319 320 DRM_ERROR("Error initialising bo driver; %d\n", ret);
Note:
See TracChangeset
for help on using the changeset viewer.