qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/4] Generalise FIFO to more integer types
@ 2014-04-10  6:41 Peter Crosthwaite
  2014-04-10  6:41 ` [Qemu-devel] [PATCH v3 1/4] util/fifo: Generalise naming scheme Peter Crosthwaite
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Peter Crosthwaite @ 2014-04-10  6:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: b.galvani, peter.maydell, armbru, dslutz


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.

changed since v2:
Glueified hot paths to increase performance.
Addressed various minor review comments.
Added PL022 as example client (Markus Review).
changed since v1:
Rebased to include fifo buffer functionality.


Peter Crosthwaite (4):
  util/fifo: Generalise naming scheme
  util/fifo: Generalise for common integer widths
  ssi: pl022: Send debug info to stderr
  ssi: pl022: Convert to use FIFO

 hw/char/serial.c                |  30 +++----
 hw/net/allwinner_emac.c         |  72 +++++++--------
 hw/ssi/pl022.c                  | 103 +++++++++-------------
 hw/ssi/xilinx_spi.c             |  42 ++++-----
 hw/ssi/xilinx_spips.c           |  66 +++++++-------
 include/hw/char/serial.h        |   6 +-
 include/hw/net/allwinner_emac.h |   6 +-
 include/qemu/fifo.h             | 180 +++++++++++++++++++++++++++++++++++++
 include/qemu/fifo8.h            | 160 ---------------------------------
 util/Makefile.objs              |   2 +-
 util/fifo.c                     | 190 ++++++++++++++++++++++++++++++++++++++++
 util/fifo8.c                    | 126 --------------------------
 12 files changed, 525 insertions(+), 458 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-10  6:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-10  6:41 [Qemu-devel] [PATCH v3 0/4] Generalise FIFO to more integer types Peter Crosthwaite
2014-04-10  6:41 ` [Qemu-devel] [PATCH v3 1/4] util/fifo: Generalise naming scheme Peter Crosthwaite
2014-04-10  6:42 ` [Qemu-devel] [PATCH v3 2/4] util/fifo: Generalise for common integer widths Peter Crosthwaite
2014-04-10  6:43 ` [Qemu-devel] [PATCH v3 3/4] ssi: pl022: Send debug info to stderr Peter Crosthwaite
2014-04-10  6:43 ` [Qemu-devel] [PATCH v3 4/4] ssi: pl022: Convert to use FIFO Peter Crosthwaite

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).