Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de12d44f authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Dave Airlie
Browse files

vmwgfx: Document vmw_fifo_reserve

parent 8d3713ea
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -277,6 +277,16 @@ static int vmw_fifo_wait(struct vmw_private *dev_priv,
	return ret;
	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)
void *vmw_fifo_reserve(struct vmw_private *dev_priv, uint32_t bytes)
{
{
	struct vmw_fifo_state *fifo_state = &dev_priv->fifo;
	struct vmw_fifo_state *fifo_state = &dev_priv->fifo;