From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VytmT-0005Vb-Uv for qemu-devel@nongnu.org; Thu, 02 Jan 2014 20:42:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VytmM-0007Zo-Lx for qemu-devel@nongnu.org; Thu, 02 Jan 2014 20:42:33 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:33068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VytmM-0007Zg-Fk for qemu-devel@nongnu.org; Thu, 02 Jan 2014 20:42:26 -0500 Received: by mail-pd0-f174.google.com with SMTP id x10so14601419pdj.5 for ; Thu, 02 Jan 2014 17:42:25 -0800 (PST) Sender: Peter Crosthwaite From: Peter Crosthwaite Date: Thu, 2 Jan 2014 17:41:52 -0800 Message-Id: Subject: [Qemu-devel] [RFC v1 0/2] Generalise FIFO to more integer types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: b.galvani@gmail.com, edgar.iglesias@gmail.com, pbonzini@redhat.com, peter.maydell@linaro.org There is a utility helper for dealing with 8 bit fifos. This should be applicable to other integer widths as well. These two patches generalise this FIFO to work for 16, 32 and 64 bit ints. Peter Crosthwaite (2): util/fifo: s/fifo8/fifo globally util/fifo: Generalise for common integer widths hw/char/serial.c | 30 +++++----- hw/ssi/xilinx_spi.c | 42 ++++++------- hw/ssi/xilinx_spips.c | 66 ++++++++++---------- include/hw/char/serial.h | 6 +- include/qemu/fifo.h | 104 ++++++++++++++++++++++++++++++++ include/qemu/fifo8.h | 99 ------------------------------ util/Makefile.objs | 2 +- util/fifo.c | 152 +++++++++++++++++++++++++++++++++++++++++++++++ util/fifo8.c | 79 ------------------------ 9 files changed, 329 insertions(+), 251 deletions(-) create mode 100644 include/qemu/fifo.h delete mode 100644 include/qemu/fifo8.h create mode 100644 util/fifo.c delete mode 100644 util/fifo8.c -- 1.8.5.2