diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-10-10 14:23:27 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-10 18:47:19 +0400 |
commit | 5438ae88d098c086cfb94be5327c49a04fc6bfd7 (patch) | |
tree | 7ab7c17c9efe7b4c7f1dd02b45fed4296ef19ced /drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |
parent | 57c5ee79acba9582762c09c269e0e2ae1adf1b31 (diff) | |
download | linux-5438ae88d098c086cfb94be5327c49a04fc6bfd7.tar.xz |
vmwgfx: Wrap drm_read and drm_poll
Make sure the device is processing the fifo when these functions are
called in case they might sleep waiting for an event.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index 83b2563e684a..0e9b2cefaa9d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h @@ -469,6 +469,10 @@ extern int vmw_present_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); +extern unsigned int vmw_fops_poll(struct file *filp, + struct poll_table_struct *wait); +extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer, + size_t count, loff_t *offset); /** * Fifo utilities - vmwgfx_fifo.c |