qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC v1 0/2]  Generalise FIFO to more integer types
@ 2014-01-03  1:41 Peter Crosthwaite
  2014-01-03  1:42 ` [Qemu-devel] [RFC v1 1/2] util/fifo: s/fifo8/fifo globally Peter Crosthwaite
  2014-01-03  1:43 ` [Qemu-devel] [RFC v1 2/2] util/fifo: Generalise for common integer widths Peter Crosthwaite
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Crosthwaite @ 2014-01-03  1:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: b.galvani, edgar.iglesias, pbonzini, peter.maydell


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

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

end of thread, other threads:[~2014-01-03  1:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-03  1:41 [Qemu-devel] [RFC v1 0/2] Generalise FIFO to more integer types Peter Crosthwaite
2014-01-03  1:42 ` [Qemu-devel] [RFC v1 1/2] util/fifo: s/fifo8/fifo globally Peter Crosthwaite
2014-01-03  1:43 ` [Qemu-devel] [RFC v1 2/2] util/fifo: Generalise for common integer widths 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).