VirtualBox

Changeset 22588 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Aug 31, 2009 9:30:13 AM (15 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: make the kernel rendering module work on recent Linux kernels, based on patch by Lubomir Rintel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c

    r17938 r22588  
    6767};
    6868
     69int vboxvideo_driver_load(struct drm_device * dev, unsigned long flags)
     70{
     71# if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 28)
     72        return drm_vblank_init(dev, 1);
     73#else
     74    return 0;
     75#endif
     76}
     77
    6978static struct drm_driver driver = {
    7079        /* .driver_features = DRIVER_USE_MTRR, */
     80        .load = vboxvideo_driver_load,
    7181        .reclaim_buffers = drm_core_reclaim_buffers,
    7282        .get_map_ofs = drm_core_get_map_ofs,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette