From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Pwa-00070H-0m for qemu-devel@nongnu.org; Thu, 23 Jan 2014 14:28:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6PwZ-0002gn-5t for qemu-devel@nongnu.org; Thu, 23 Jan 2014 14:28:03 -0500 Received: from mail-qa0-x231.google.com ([2607:f8b0:400d:c00::231]:41389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6PwZ-0002gW-1t for qemu-devel@nongnu.org; Thu, 23 Jan 2014 14:28:03 -0500 Received: by mail-qa0-f49.google.com with SMTP id w8so2688217qac.8 for ; Thu, 23 Jan 2014 11:28:01 -0800 (PST) MIME-Version: 1.0 Date: Thu, 23 Jan 2014 11:28:01 -0800 Message-ID: From: rajan pathak Content-Type: multipart/alternative; boundary=001a11c1707e5a60aa04f0a83ddb Subject: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Stefan Hajnoczi --001a11c1707e5a60aa04f0a83ddb Content-Type: text/plain; charset=ISO-8859-1 Hello Experts I am new to QEMU development and trying to emulate Ethernet controller based on Corext-A15 platform. Current I am able to up the QEMU console and see it uses SMSC 91C111 Ethernet interface emulation code. I have compiled the kernel using versatile_defconfig where I can see CONFIG_SMC91X,So I guess it uses SMSC 91C111 as its Ethernet controller. I can see call to this smc91c111_init(nd, 0x10010000, sic[25]); function is made inside hw/arm/versatilepb.c which triggers the initialization of emulated SMSC Ethernet controller in hw/net/smc91c111.c. I am looking to emulate Ethernet controller based on Cortex-A15 platform,so for Do I need to use vexpress_defconfig instead of versatile_defconfig? If I have to use vexpress what would initializtion point of my emulated Ethernet controller based Cortex-A15 platform? Would be inside vexpress_common_init() of vexpress.c /* 0x4e000000 LAN9118 Ethernet */ if (nd_table[0].used) { lan9118_init(&nd_table[0], map[VE_ETHERNET], pic[15]); } Could anyone please confirm this above understanding of mine? Thanks Rajan --001a11c1707e5a60aa04f0a83ddb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hel= lo Experts

I am new to QEMU development and trying to emu= late Ethernet controller based on
Corext-A15 platform.

Current I am able to up the QEMU console and see it uses SMSC 91C111 Ethern= et interface emulation code.

I have compiled the kernel using = versatile_defconfig where I can see CONFIG_SMC91X,So I guess it uses SMSC 9= 1C111 as its Ethernet controller.

I can see call to this=A0 smc91c111_init(nd, 0x10010000, sic[25])= ; function is made inside hw/arm/versatilepb.c which triggers the initializ= ation of emulated SMSC Ethernet controller in hw/net/smc91c111.c.

I am looking to emulate Ethernet controller based on Cortex-A15 platf= orm,so for
Do I need to use vexpress_defconfig instead of versatil= e_defconfig?

If I have to use vexpress what would initializtio= n point of my emulated Ethernet controller based Cortex-A15 platform?

Would be inside vexpress_common_init() of vexpress.c

/* 0x= 4e000000 LAN9118 Ethernet */
=A0=A0=A0 if (nd_table[0].used) {
=A0=A0= =A0=A0=A0=A0=A0 lan9118_init(&nd_table[0], map[VE_ETHERNET], pic[15]);<= br>=A0=A0=A0 }

Could anyone please confirm this above understanding of mine?

Thanks
Rajan


--001a11c1707e5a60aa04f0a83ddb--