aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2011-10-04 14:13:13 -0400
committerDave Airlie <airlied@redhat.com>2011-10-05 05:17:08 -0400
commitde12d44fcad409e1b2956ef0ffd48818423fc701 (patch)
tree59940905d38f5d8762fa148dd54ff8d04d285795 /drivers/gpu/drm
parent8d3713ea9ef305ec89b265633dcfb977885adf66 (diff)
vmwgfx: Document vmw_fifo_reserve
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
index 3ba9cac579e0..881f67acc061 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
@@ -277,6 +277,16 @@ static int vmw_fifo_wait(struct vmw_private *dev_priv,
277 return ret; 277 return ret;
278} 278}
279 279
280/**
281 * Reserve @bytes number of bytes in the fifo.
282 *
283 * This function will return NULL (error) on two conditions:
284 * If it timeouts waiting for fifo space, or if @bytes is larger than the
285 * available fifo space.
286 *
287 * Returns:
288 * Pointer to the fifo, or null on error (possible hardware hang).
289 */
280void *vmw_fifo_reserve(struct vmw_private *dev_priv, uint32_t bytes) 290void *vmw_fifo_reserve(struct vmw_private *dev_priv, uint32_t bytes)
281{ 291{
282 struct vmw_fifo_state *fifo_state = &dev_priv->fifo; 292 struct vmw_fifo_state *fifo_state = &dev_priv->fifo;