VirtualBox

Ignore:
Timestamp:
Nov 22, 2013 3:11:53 PM (11 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: add IOCtls to disable and re-start HGSMI in the KMS driver.

File:
1 edited

Legend:

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

    r49518 r49627  
    9090    unsigned cCrtcs;
    9191    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. */
    9295    uint32_t vram_size;
     96    /** Is HGSMI currently disabled? */
     97    bool fDisableHGSMI;
    9398
    9499    struct vbox_fbdev *fbdev;
     
    161166extern int vbox_mode_init(struct drm_device *dev);
    162167extern void vbox_mode_fini(struct drm_device *dev);
     168extern void VBoxRefreshModes(struct drm_device *pDev);
    163169
    164170#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
     
    222228          uint32_t flags, struct vbox_bo **pvboxbo);
    223229
     230/** IOCtl handler to stop this driver using HGSMI so that user space can. */
     231extern int VBoxDisableHGSMI(struct drm_device *dev, void *data,
     232                            struct drm_file *file_priv);
     233/** IOCtl handler to start this driver using HGSMI again. */
     234extern int VBoxEnableHGSMI(struct drm_device *dev, void *data,
     235                           struct drm_file *file_priv);
     236
    224237int vbox_gem_create(struct drm_device *dev,
    225238           u32 size, bool iskernel,
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