~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Additions/linux/drm/vboxvideo_drm.c

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-03-31 23:25:01 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20130331232501-l72jhvixkeyyz6xc
Tags: 4.2.10-dfsg-0ubuntu1
* Start the virtualbox-guest-x11 init script earlier.
  The vboxvideo module needs to be loaded before X starts.
* Change runlevels of virtualbox-guest-x11 init script on upgrade.
* Fix build failure with the Debian wheezy kernel which backports the drm
  subsystem from Linux 3.4. (Closes: #703358)
* Drop build-dependency on bcc as it's not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
#include "drm/drmP.h"
77
77
#include "vboxvideo_drm.h"
78
78
 
 
79
# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
 
80
#  ifdef DRM_IOCTL_MODE_GETPLANE
 
81
#   define DRM_DEBIAN70
 
82
#  endif
 
83
# endif
 
84
 
79
85
static struct pci_device_id pciidlist[] = {
80
86
        vboxvideo_PCI_IDS
81
87
};
88
94
    return 0;
89
95
#endif
90
96
}
91
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63)
 
97
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) || defined(DRM_DEBIAN70)
92
98
/* since linux-3.3.0-rc1 drm_driver::fops is pointer */
93
99
static struct file_operations driver_fops =
94
100
{
114
120
    .get_map_ofs = drm_core_get_map_ofs,
115
121
    .get_reg_ofs = drm_core_get_reg_ofs,
116
122
#endif
117
 
# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_RHEL63)
 
123
# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_RHEL63) && !defined(DRM_DEBIAN70)
118
124
    .fops =
119
125
    {
120
126
        .owner = THIS_MODULE,
131
137
        .poll = drm_poll,
132
138
        .fasync = drm_fasync,
133
139
    },
134
 
#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) */
 
140
#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) || defined(DRM_DEBIAN70) */
135
141
    .fops = &driver_fops,
136
142
#endif
137
143
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(DRM_RHEL61)