From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
To: qemu-devel@nongnu.org
Cc: b.galvani@gmail.com, dslutz@verizon.com
Subject: [Qemu-devel] [PATCH for-2.1 v2 0/2] Generalise FIFO to more integer types
Date: Mon, 7 Apr 2014 19:04:08 -0700 [thread overview]
Message-ID: <cover.1396920202.git.peter.crosthwaite@xilinx.com> (raw)
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.
CC some recent contributors around this code.
changed since v1:
Rebased to include fifo buffer functionality.
Peter Crosthwaite (2):
util/fifo: s/fifo8/fifo globally
util/fifo: Generalise for common integer widths
hw/char/serial.c | 30 +++---
hw/net/allwinner_emac.c | 72 +++++++-------
hw/ssi/xilinx_spi.c | 42 ++++-----
hw/ssi/xilinx_spips.c | 70 +++++++-------
include/hw/char/serial.h | 6 +-
include/hw/net/allwinner_emac.h | 6 +-
include/qemu/fifo.h | 166 ++++++++++++++++++++++++++++++++
include/qemu/fifo8.h | 160 -------------------------------
util/Makefile.objs | 2 +-
util/fifo.c | 203 ++++++++++++++++++++++++++++++++++++++++
util/fifo8.c | 126 -------------------------
11 files changed, 483 insertions(+), 400 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.9.1.1.gbb9f595
next reply other threads:[~2014-04-08 2:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-08 2:04 Peter Crosthwaite [this message]
2014-04-08 2:04 ` [Qemu-devel] [PATCH for-2.1 v2 1/2] util/fifo: s/fifo8/fifo globally Peter Crosthwaite
2014-04-08 18:48 ` Beniamino Galvani
2014-04-09 1:50 ` Peter Crosthwaite
2014-04-08 2:05 ` [Qemu-devel] [PATCH for-2.1 v2 2/2] util/fifo: Generalise for common integer widths Peter Crosthwaite
2014-04-08 21:42 ` Beniamino Galvani
2014-04-09 1:51 ` Peter Crosthwaite
2014-04-08 7:14 ` [Qemu-devel] [PATCH for-2.1 v2 0/2] Generalise FIFO to more integer types Markus Armbruster
2014-04-08 7:24 ` Peter Crosthwaite
2014-04-08 9:10 ` Markus Armbruster
2014-04-08 21:22 ` Don Slutz
2014-04-09 0:03 ` Peter Crosthwaite
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1396920202.git.peter.crosthwaite@xilinx.com \
--to=peter.crosthwaite@xilinx.com \
--cc=b.galvani@gmail.com \
--cc=dslutz@verizon.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.