]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
vmwgfx: Document vmw_fifo_reserve
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 4 Oct 2011 18:13:13 +0000 (20:13 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 5 Oct 2011 09:17:08 +0000 (10:17 +0100)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c

index 3ba9cac579e0dc71c8433673a4a372bf362d4b4f..881f67acc061db0dc079f4aa80a6cd1136ca1629 100644 (file)
@@ -277,6 +277,16 @@ static int vmw_fifo_wait(struct vmw_private *dev_priv,
        return ret;
 }
 
+/**
+ * Reserve @bytes number of bytes in the fifo.
+ *
+ * This function will return NULL (error) on two conditions:
+ *  If it timeouts waiting for fifo space, or if @bytes is larger than the
+ *   available fifo space.
+ *
+ * Returns:
+ *   Pointer to the fifo, or null on error (possible hardware hang).
+ */
 void *vmw_fifo_reserve(struct vmw_private *dev_priv, uint32_t bytes)
 {
        struct vmw_fifo_state *fifo_state = &dev_priv->fifo;