mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
hw/core: stream: Add an end-of-packet flag
Some stream clients stream an endless stream of data while other clients stream data in packets. Stream interfaces usually have a way to signal the end of a packet or the last beat of a transfer. This adds an end-of-packet flag to the push interface. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Message-Id: <20200506082513.18751-6-edgar.iglesias@gmail.com>
This commit is contained in:
parent
e3a8926d0e
commit
51b19950ca
5 changed files with 22 additions and 13 deletions
|
@ -868,7 +868,7 @@ static void xlnx_zynqmp_qspips_notify(void *opaque)
|
|||
|
||||
memcpy(rq->dma_buf, rxd, num);
|
||||
|
||||
ret = stream_push(rq->dma, rq->dma_buf, num);
|
||||
ret = stream_push(rq->dma, rq->dma_buf, num, false);
|
||||
assert(ret == num);
|
||||
xlnx_zynqmp_qspips_check_flush(rq);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue