OSDN Git Service

stream: Add flow control API
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 16 Apr 2013 00:27:16 +0000 (10:27 +1000)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 16 Apr 2013 08:04:23 +0000 (10:04 +0200)
commit35e60bfdbc14ce31bba55cc82144f8a2a82ede68
tree2e9d9523edd263fc325a819ad6aba7d78edc4c59
parent210914e29975d17e635f9e8c1f7478c0ed7a208f
stream: Add flow control API

Add basic flow control to stream. A stream slave may return short, indicating
that it is not capable of accepting any more data at the present time. Polling
or a callback can be used via the can_push() function to determine when the
slave can receive again.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/core/stream.c
hw/dma/xilinx_axidma.c
hw/net/xilinx_axienet.c
include/hw/stream.h