From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyftT-00026n-C5 for Qemu-devel@nongnu.org; Mon, 15 Jul 2013 06:20:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyftR-0007rF-EI for Qemu-devel@nongnu.org; Mon, 15 Jul 2013 06:20:35 -0400 Received: from mel.act-europe.fr ([194.98.77.210]:38431 helo=smtp.eu.adacore.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyftR-0007qe-5P for Qemu-devel@nongnu.org; Mon, 15 Jul 2013 06:20:33 -0400 Message-ID: <51E3CCCA.70301@adacore.com> Date: Mon, 15 Jul 2013 12:19:54 +0200 From: Fabien Chouteau MIME-Version: 1.0 References: <1373476202-11277-1-git-send-email-chouteau@adacore.com>, <1373476202-11277-3-git-send-email-chouteau@adacore.com>, <201307110955092430409@cn.fujitsu.com> <201307150925097674522@cn.fujitsu.com> In-Reply-To: <201307150925097674522@cn.fujitsu.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Fw: [PATCH 2/2] Add Enhanced Three-Speed EthernetController (eTSEC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yao Xingtao Cc: qemu-devel On 07/15/2013 03:25 AM, Yao Xingtao wrote: > Hi: > I'm very interesting in it, but I don't know how to create a eTSEC > device, I did a test as below: > > for(i = 0; i < nb_nics; i++) { > NICInfo *nd = &nd_table[i]; > if (!nd->model) { > nd->model = g_strdup("eTSEC"); > } > if(strcmp(nd->model, "eTSEC") == 0) { > etsec_create(ETSEC0_REGS_OFFSET, ccsr_addr_space, nd, > mpic[0x1d], mpic[0x1e], mpic[0x22]); > } > } > > When I start the qemu, an error exists" qemu-system-ppc: Unsupported NIC model: eTSEC" . > Could you tell me how to create a eTSEC device? > Maybe because your machine has a pci_nic_init_nofail() call. eTSEC is not a PCI NIC... Regards, -- Fabien Chouteau