From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8M9g-0002Ev-U3 for qemu-devel@nongnu.org; Fri, 26 Jun 2015 01:26:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8M9b-0004qx-F3 for qemu-devel@nongnu.org; Fri, 26 Jun 2015 01:26:24 -0400 Received: from nschwmtas04p.mx.bigpond.com ([61.9.189.146]:36089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8M9b-0004pk-20 for qemu-devel@nongnu.org; Fri, 26 Jun 2015 01:26:19 -0400 Received: from nschwcmgw07p ([61.9.190.167]) by nschwmtas04p.mx.bigpond.com with ESMTP id <20150626052614.QDXU15081.nschwmtas04p.mx.bigpond.com@nschwcmgw07p> for ; Fri, 26 Jun 2015 05:26:14 +0000 From: gerg@uclinux.org Date: Fri, 26 Jun 2015 15:27:12 +1000 Message-Id: <1435296436-12152-1-git-send-email-gerg@uclinux.org> Subject: [Qemu-devel] [PATCH 0/4] hw/net: fix m68/ColdFire ethernet fec support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The following set of patches fixes the emulated ColdFire ethernet fec driver. There is primarily two problems that need to be fixed. 1. The emulated driver needs to support probing of an attached phy. It is strait forward to emulate an attached phy, but to avoid using magic numbers I have factored out the common MII register and value definitions into their own mii.h file first. 2. Fix the fec driver receiver to return the correct value. With these changes in place the qemu m5208evb board emulation can probe, identify and use the fec ethernet running a Linux guest. hw/net/mcf_fec.c | 54 ++++++++++++++++++++++++++-- include/hw/net/allwinner_emac.h | 40 --------------------- include/hw/net/mii.h | 76 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 128 insertions(+), 42 deletions(-)