Changeset 59964 in vbox for trunk/src/VBox/Additions/linux/drm
- Timestamp:
- Mar 9, 2016 11:20:48 AM (9 years ago)
- 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 218 218 .unload = vbox_driver_unload, 219 219 .lastclose = vbox_driver_lastclose, 220 #if LINUX_VERSION_CODE > KERNEL_VERSION(3, 17, 0)220 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) 221 221 .set_busid = drm_pci_set_busid, 222 222 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r59951 r59964 97 97 { 98 98 struct drm_device *dev = fbdev->helper.dev; 99 struct vbox_private *vbox = dev->dev_private;100 99 int i; 101 100 … … 267 266 struct fb_info *info; 268 267 __u32 pitch; 269 unsigned int fb_pitch;270 268 int size, ret; 271 269 struct device *device = &dev->pdev->dev; -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r59947 r59964 112 112 struct vbox_private *vbox = fb->dev->dev_private; 113 113 unsigned i; 114 unsigned long flags;115 114 116 115 LogFunc(("vboxvideo: %d: fb=%p, num_rects=%u, vbox=%p\n", __LINE__, fb, … … 420 419 struct vbox_private *vbox = dev->dev_private; 421 420 421 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) 422 422 if (vbox->fbdev) 423 423 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 424 430 } 425 431 -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r59947 r59964 337 337 } 338 338 339 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) 340 static 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 339 347 340 348 static struct drm_encoder *vbox_best_single_encoder(struct drm_connector *connector) … … 501 509 struct vbox_connector *vbox_connector; 502 510 struct drm_connector *connector; 503 int rc;504 511 505 512 LogFunc(("vboxvideo: %d: dev=%p, encoder=%p\n", __LINE__, dev,
Note:
See TracChangeset
for help on using the changeset viewer.