Changeset 48354 in vbox
- Timestamp:
- Sep 6, 2013 12:52:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c
r47088 r48354 69 69 # endif 70 70 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 3) 71 # define DRM_ RHEL6371 # define DRM_FOPS_AS_POINTER 72 72 # endif 73 73 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4) 74 # define DRM_ RHEL6474 # define DRM_NO_RECLAIM_BUFFERS 75 75 # endif 76 76 # endif … … 83 83 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 39) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) 84 84 # if defined(DRM_MODE_OBJECT_PLANE) && defined(DRM_IOCTL_MODE_ADDFB2) 85 # define DRM_ DEBIAN_34ON3285 # define DRM_FOPS_AS_POINTER 86 86 # endif 87 87 # endif 88 88 # endif 89 90 #ifdef CONFIG_SUSE_KERNEL 91 /* This is to cover the SLES 11 SP3 kernel back-ports. */ 92 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,61) 93 # if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0) 94 # define DRM_FOPS_AS_POINTER 95 # define DRM_NO_RECLAIM_BUFFERS 96 # endif 97 # endif 98 #endif 89 99 90 100 static struct pci_device_id pciidlist[] = { … … 102 112 #endif 103 113 } 104 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_ RHEL63) || defined(DRM_DEBIAN_34ON32)114 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_FOPS_AS_POINTER) 105 115 /* since linux-3.3.0-rc1 drm_driver::fops is pointer */ 106 116 static struct file_operations driver_fops = … … 120 130 /* .driver_features = DRIVER_USE_MTRR, */ 121 131 .load = vboxvideo_driver_load, 122 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) && !defined(DRM_ RHEL64)132 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) && !defined(DRM_NO_RECLAIM_BUFFERS) 123 133 .reclaim_buffers = drm_core_reclaim_buffers, 124 134 #endif … … 128 138 .get_reg_ofs = drm_core_get_reg_ofs, 129 139 #endif 130 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_ RHEL63) && !defined(DRM_DEBIAN_34ON32)140 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_FOPS_AS_POINTER) 131 141 .fops = 132 142 { … … 145 155 .fasync = drm_fasync, 146 156 }, 147 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_ RHEL63) || defined(DRM_DEBIAN_34ON32) */157 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_FOPS_AS_POINTER) */ 148 158 .fops = &driver_fops, 149 159 #endif
Note:
See TracChangeset
for help on using the changeset viewer.