~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
64
64
 
 
65
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32)
 
66
#  ifdef RHEL_RELEASE_CODE
 
67
#   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1)
 
68
#    define DRM_RHEL61
 
69
#   endif
 
70
#  endif
 
71
# endif
 
72
 
65
73
#include "drm/drmP.h"
66
74
#include "vboxvideo_drm.h"
67
75
 
83
91
    /* .driver_features = DRIVER_USE_MTRR, */
84
92
    .load = vboxvideo_driver_load,
85
93
    .reclaim_buffers = drm_core_reclaim_buffers,
86
 
    /* As of Linux 2.65.37, always the internal functions are used. */
87
 
#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 37)
 
94
    /* As of Linux 2.6.37, always the internal functions are used. */
 
95
#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 37) && !defined(DRM_RHEL61)
88
96
    .get_map_ofs = drm_core_get_map_ofs,
89
97
    .get_reg_ofs = drm_core_get_reg_ofs,
90
98
#endif