Received: from eggs.gnu.org ([2001:4830:134:3::10]:51546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae6Eh-00052S-L6 for qemu-devel@nongnu.org; Thu, 10 Mar 2016 14:27:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ae6Ec-0001wP-Qm for qemu-devel@nongnu.org; Thu, 10 Mar 2016 14:27:03 -0500 Received: from zose-mta05.web4all.fr ([185.49.20.50]:60187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae6Ec-0001wL-K0 for qemu-devel@nongnu.org; Thu, 10 Mar 2016 14:26:58 -0500 References: From: Jean-Christophe DUBOIS Message-ID: <56E1CA80.3030009@tribudubois.net> Date: Thu, 10 Mar 2016 20:26:56 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 09/12] FIFO: Add a FIFO32 implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Peter Crosthwaite Le 10/03/2016 11:25, Peter Maydell a =C3=A9crit : > On 2 March 2016 at 05:27, Jean-Christophe Dubois = wrote: >> This one is build on top of the existing FIFO8 >> >> Signed-off-by: Jean-Christophe Dubois >> --- >> >> Changes since v1: >> * None >> >> Changes since v2: >> * Added copyright >> * define Fifo32 as a struct containing Fifo8 >> * remove fifo32_pop_buf() >> >> include/qemu/fifo32.h | 186 ++++++++++++++++++++++++++++++++++++++++= ++++++++++ >> 1 file changed, 186 insertions(+) >> create mode 100644 include/qemu/fifo32.h >> >> diff --git a/include/qemu/fifo32.h b/include/qemu/fifo32.h >> new file mode 100644 >> index 0000000..f1b9ecf >> --- /dev/null >> +++ b/include/qemu/fifo32.h >> @@ -0,0 +1,186 @@ >> +/* >> + * Generic FIFO32 component, based on FIFO8. >> + * >> + * Copyright (c) 2016 Jean-Christophe Dubois >> + * >> + * This program is free software; you can redistribute it and/or >> + * modify it under the terms of the GNU General Public License >> + * as published by the Free Software Foundation; either version >> + * 2 of the License, or (at your option) any later version. >> + * >> + * You should have received a copy of the GNU General Public License = along >> + * with this program; if not, see . >> + */ >> + >> +#ifndef FIFO32_H >> +#define FIFO32_H >> + >> +#include "qemu/osdep.h" >> +#include "qemu/fifo8.h" >> + >> +typedef struct { >> + Fifo8 fifo; >> +} Fifo32; >> + >> +/** >> + * fifo32_create: >> + * @fifo: struct Fifo32 to initialise with new FIFO >> + * @capacity: capacity of the newly created FIFO expressed in 32 bits= words > "32 bits word" should be "32 bit word" throughout. > > There should be a comment somewhere noting that there is no > fifo32_pop_buf() because the data is not stored in the buffer > as a set of native-order words. OK > > Otherwise > Reviewed-by: Peter Maydell > > thanks > -- PMM >