]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/fifo8: Expose fifo8_pop_buf()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 22 Jul 2024 11:27:53 +0000 (13:27 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 23 Jul 2024 20:34:54 +0000 (22:34 +0200)
commit23ad5711730f994d66520a3283aac2979d89389e
tree1370a75038d2e2b2baf65a9473440a434423738a
parent06252bf5122f047ed5c14fb75f3167f11b882352
util/fifo8: Expose fifo8_pop_buf()

Extract fifo8_pop_buf() from hw/scsi/esp.c and expose
it as part of the <qemu/fifo8.h> API. This function takes
care of non-contiguous (wrapped) FIFO buffer (which is an
implementation detail).

Suggested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20240722160745.67904-7-philmd@linaro.org>
hw/scsi/esp.c
include/qemu/fifo8.h
util/fifo8.c