Changeset 49627 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Nov 22, 2013 3:11:53 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 90852
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r49518 r49627 48 48 #include "vbox_drv.h" 49 49 50 #include <VBox/VBoxGuest.h> 51 50 52 #include <linux/module.h> 51 53 #include <linux/console.h> … … 91 93 }; 92 94 95 96 static struct drm_ioctl_desc vbox_ioctls[] = 97 { 98 DRM_IOCTL_DEF_DRV(VBOX_DISABLE_HGSMI, VBoxDisableHGSMI, 99 DRM_UNLOCKED|DRM_ROOT_ONLY), 100 DRM_IOCTL_DEF_DRV(VBOX_ENABLE_HGSMI, VBoxEnableHGSMI, 101 DRM_UNLOCKED|DRM_ROOT_ONLY) 102 }; 103 104 93 105 static const struct file_operations vbox_fops = 94 106 { … … 114 126 .unload = vbox_driver_unload, 115 127 128 .ioctls = vbox_ioctls, 129 .num_ioctls = RT_ELEMENTS(vbox_ioctls), 116 130 .fops = &vbox_fops, 117 131 .name = DRIVER_NAME, -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r49518 r49627 90 90 unsigned cCrtcs; 91 91 bool vga2_clone; 92 /** Amount of available VRAM, including space used for buffers. */ 93 uint32_t full_vram_size; 94 /** Amount of available VRAM, not including space used for buffers. */ 92 95 uint32_t vram_size; 96 /** Is HGSMI currently disabled? */ 97 bool fDisableHGSMI; 93 98 94 99 struct vbox_fbdev *fbdev; … … 161 166 extern int vbox_mode_init(struct drm_device *dev); 162 167 extern void vbox_mode_fini(struct drm_device *dev); 168 extern void VBoxRefreshModes(struct drm_device *pDev); 163 169 164 170 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) … … 222 228 uint32_t flags, struct vbox_bo **pvboxbo); 223 229 230 /** IOCtl handler to stop this driver using HGSMI so that user space can. */ 231 extern int VBoxDisableHGSMI(struct drm_device *dev, void *data, 232 struct drm_file *file_priv); 233 /** IOCtl handler to start this driver using HGSMI again. */ 234 extern int VBoxEnableHGSMI(struct drm_device *dev, void *data, 235 struct drm_file *file_priv); 236 224 237 int vbox_gem_create(struct drm_device *dev, 225 238 u32 size, bool iskernel,
Note:
See TracChangeset
for help on using the changeset viewer.