qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 01/17] esp.c: move esp_fifo_pop_buf() internals to new esp


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v3 01/17] esp.c: move esp_fifo_pop_buf() internals to new esp_fifo8_pop_buf() function
Date: Mon, 25 Mar 2024 11:20:53 +0100
User-agent: Mozilla Thunderbird

On 24/3/24 20:16, Mark Cave-Ayland wrote:
Update esp_fifo_pop_buf() to be a simple wrapper onto the new 
esp_fifo8_pop_buf()
function.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
  hw/scsi/esp.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)


+static uint32_t esp_fifo_pop_buf(Fifo8 *fifo, uint8_t *dest, int maxlen)

If future cleanups, maxlen can be unsigned (size_t), anyhow:

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

+{
+    return esp_fifo8_pop_buf(fifo, dest, maxlen);
+}
+
  static uint32_t esp_get_tc(ESPState *s)
  {
      uint32_t dmalen;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]