qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Beniamino Galvani <b.galvani@gmail.com>
To: qemu-devel@nongnu.org
Cc: Beniamino Galvani <b.galvani@gmail.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Peter Crosthwaite <peter.crosthwaite@xilinx.com>,
	Li Guang <lig.fnst@cn.fujitsu.com>,
	Stefan Hajnoczi <stefanha@gmail.com>
Subject: [Qemu-devel] [PATCH v3 0/2] hw/arm: add ethernet support to Allwinner A10
Date: Mon, 20 Jan 2014 00:25:17 +0100	[thread overview]
Message-ID: <1390173920-23410-1-git-send-email-b.galvani@gmail.com> (raw)

This patch series adds support for the EMAC Fast Ethernet controller
found on Allwinner SoCs to the Allwinner A10.

The main change in this version is the use of a single rx fifo instead
of multiple per-packet fifos. I added functions to manipulate the rx
fifo and, for consistency, also functions to manipulate tx fifo.

Another difference from v2 is that the function can_receive() now
can't really know if the next packet can be stored in the fifo because
with a single fifo this depends on the size of packet. So the
functions only checks if rx is enabled; if the packet can't be stored
it will be dropped in receive().

Changelog:
v3: Address comments from Peter Crosthwaite and Stefan Hajnoczi:
    * Use a single, big rx fifo instead of per-packet fifo
    * Remove link_ok field from PHY state
    * Call set_link() on post_load
    * Add missing PHY registers
    * Implement reset() method
    * Rename AwEmacMii -> RTL8201CPState
    * Rename mii_{read,write} -> aw_emac_mdio_{read,write}

v2: Address Peter Crosthwaite's comments:
    * Make phy address customizable through a property
    * Call qemu_flush_queued_packets() when rx becomes possible
    * Always create EMAC instance in SoC
    * Use uint8 arrays for fifos
    * Minor cleanups

Beniamino Galvani (2):
  hw/net: add support for Allwinner EMAC Fast Ethernet controller
  hw/arm/allwinner-a10: initialize EMAC

 default-configs/arm-softmmu.mak |    1 +
 hw/arm/allwinner-a10.c          |   16 ++
 hw/arm/cubieboard.c             |    7 +
 hw/net/Makefile.objs            |    1 +
 hw/net/allwinner_emac.c         |  589 +++++++++++++++++++++++++++++++++++++++
 include/hw/arm/allwinner-a10.h  |    3 +
 include/hw/net/allwinner_emac.h |  222 +++++++++++++++
 7 files changed, 839 insertions(+)
 create mode 100644 hw/net/allwinner_emac.c
 create mode 100644 include/hw/net/allwinner_emac.h

-- 
1.7.10.4

             reply	other threads:[~2014-01-19 23:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-19 23:25 Beniamino Galvani [this message]
2014-01-19 23:25 ` [Qemu-devel] [PATCH v3 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller Beniamino Galvani
2014-01-23 13:04   ` Peter Crosthwaite
2014-01-25 13:37     ` Beniamino Galvani
2014-01-25 23:58       ` Peter Crosthwaite
2014-01-19 23:25 ` [Qemu-devel] [PATCH v3 2/2] hw/arm/allwinner-a10: initialize EMAC Beniamino Galvani
2014-01-23 13:06   ` Peter Crosthwaite
2014-01-25 23:42   ` Andreas Färber
2014-01-26 21:25     ` Beniamino Galvani

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=1390173920-23410-1-git-send-email-b.galvani@gmail.com \
    --to=b.galvani@gmail.com \
    --cc=lig.fnst@cn.fujitsu.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /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 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).