Changeset 45228 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Mar 28, 2013 12:49:32 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84603
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c
r45001 r45228 65 65 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32) 66 66 # ifdef RHEL_RELEASE_CODE 67 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 1)67 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 1) 68 68 # define DRM_RHEL61 69 69 # endif 70 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 3)70 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 3) 71 71 # define DRM_RHEL63 72 72 # endif 73 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4)73 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4) 74 74 # define DRM_RHEL64 75 75 # endif … … 80 80 #include "vboxvideo_drm.h" 81 81 82 # ifndef RHEL_RELEASE_CODE 83 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 39) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) 84 # ifdef DRM_SWITCH_POWER_ON 85 # define DRM_DEBIAN_34ON32 86 # endif 87 # endif 88 # endif 89 82 90 static struct pci_device_id pciidlist[] = { 83 91 vboxvideo_PCI_IDS … … 92 100 #endif 93 101 } 94 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) 102 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) || defined(DRM_DEBIAN_34ON32) 95 103 /* since linux-3.3.0-rc1 drm_driver::fops is pointer */ 96 104 static struct file_operations driver_fops = … … 118 126 .get_reg_ofs = drm_core_get_reg_ofs, 119 127 #endif 120 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_RHEL63) 128 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_RHEL63) && !defined(DRM_DEBIAN_34ON32) 121 129 .fops = 122 130 { … … 135 143 .fasync = drm_fasync, 136 144 }, 137 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) */145 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) || defined(DRM_DEBIAN_34ON32) */ 138 146 .fops = &driver_fops, 139 147 #endif
Note:
See TracChangeset
for help on using the changeset viewer.