VirtualBox

Ignore:
Timestamp:
Mar 9, 2016 11:20:48 AM (9 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: additional kernel module build fixes.

Location:
trunk/src/VBox/Additions/linux/drm
Files:
4 edited

Legend:

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

    r59635 r59964  
    218218    .unload = vbox_driver_unload,
    219219    .lastclose = vbox_driver_lastclose,
    220 #if LINUX_VERSION_CODE > KERNEL_VERSION(3, 17, 0)
     220#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0)
    221221    .set_busid = drm_pci_set_busid,
    222222#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r59951 r59964  
    9797{
    9898    struct drm_device *dev = fbdev->helper.dev;
    99     struct vbox_private *vbox = dev->dev_private;
    10099    int i;
    101100
     
    267266    struct fb_info *info;
    268267    __u32 pitch;
    269     unsigned int fb_pitch;
    270268    int size, ret;
    271269    struct device *device = &dev->pdev->dev;
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r59947 r59964  
    112112    struct vbox_private *vbox = fb->dev->dev_private;
    113113    unsigned i;
    114     unsigned long flags;
    115114
    116115    LogFunc(("vboxvideo: %d: fb=%p, num_rects=%u, vbox=%p\n", __LINE__, fb,
     
    420419    struct vbox_private *vbox = dev->dev_private;
    421420
     421#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
    422422    if (vbox->fbdev)
    423423        drm_fb_helper_restore_fbdev_mode_unlocked(&vbox->fbdev->helper);
     424#else
     425    mutex_lock(&dev->mode_config.mutex);
     426    if (vbox->fbdev)
     427        drm_fb_helper_restore_fbdev_mode(&vbox->fbdev->helper);
     428    mutex_unlock(&dev->mode_config.mutex);
     429#endif
    424430}
    425431
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r59947 r59964  
    337337}
    338338
     339#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
     340static struct drm_encoder *drm_encoder_find(struct drm_device *dev, uint32_t id)
     341{
     342     struct drm_mode_object *mo;
     343     mo = drm_mode_object_find(dev, id, DRM_MODE_OBJECT_ENCODER);
     344     return mo ? obj_to_encoder(mo) : NULL;
     345}
     346#endif
    339347
    340348static struct drm_encoder *vbox_best_single_encoder(struct drm_connector *connector)
     
    501509    struct vbox_connector *vbox_connector;
    502510    struct drm_connector *connector;
    503     int rc;
    504511
    505512    LogFunc(("vboxvideo: %d: dev=%p, encoder=%p\n", __LINE__, dev,
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