Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSdKe-0000Pa-7E for qemu-devel@nongnu.org; Fri, 12 Nov 2004 10:27:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSdKd-0000Ol-9V for qemu-devel@nongnu.org; Fri, 12 Nov 2004 10:27:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSdKc-0000OY-Vk for qemu-devel@nongnu.org; Fri, 12 Nov 2004 10:27:23 -0500 Received: from [134.58.240.41] (helo=nibbel.kulnet.kuleuven.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSdC1-0000Rm-AK for qemu-devel@nongnu.org; Fri, 12 Nov 2004 10:18:29 -0500 Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id E54464B78F for ; Fri, 12 Nov 2004 16:18:27 +0100 (CET) Received: from octavianus.kulnet.kuleuven.ac.be (octavianus.kulnet.kuleuven.ac.be [134.58.240.71]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 6C7F24B85E for ; Fri, 12 Nov 2004 16:18:27 +0100 (CET) Received: from [127.0.0.1] (srv04.mech.kuleuven.ac.be [134.58.24.40]) by octavianus.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 4CDC9AF09A for ; Fri, 12 Nov 2004 16:18:27 +0100 (CET) Message-ID: <4194D453.5030501@mech.kuleuven.ac.be> Date: Fri, 12 Nov 2004 16:18:43 +0100 From: Panagiotis Issaris MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030109090007030502050309" Subject: [Qemu-devel] Updated PCNet patch Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------030109090007030502050309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I've updated the PCNet patch to the current CVS. Two hunks failed, but the fixes were trivial. With friendly regards, Takis -- ------------------------------------------------------------------------ Panagiotis Issaris Katholieke Universiteit Leuven Division Production Engineering, Machine Design and Automation Celestijnenlaan 300B panagiotis.issaris@mech.kuleuven.ac.be B-3001 Leuven Belgium http://www.mech.kuleuven.ac.be/pma ------------------------------------------------------------------------ --------------030109090007030502050309 Content-Type: text/x-patch; name="qemu-pcnet-20041112T1610.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-pcnet-20041112T1610.diff" Index: Makefile.target =================================================================== RCS file: /cvsroot/qemu/qemu/Makefile.target,v retrieving revision 1.46 diff -w -b -B -u -r1.46 Makefile.target --- Makefile.target 11 Nov 2004 16:55:08 -0000 1.46 +++ Makefile.target 12 Nov 2004 15:12:33 -0000 @@ -299,7 +299,7 @@ # Hardware support VL_OBJS+= ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV) VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o -VL_OBJS+= cirrus_vga.o mixeng.o +VL_OBJS+= cirrus_vga.o mixeng.o pcnet.o endif ifeq ($(TARGET_ARCH), ppc) VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV) Index: vl.c =================================================================== RCS file: /cvsroot/qemu/qemu/vl.c,v retrieving revision 1.105 diff -w -b -B -u -r1.105 vl.c --- vl.c 9 Nov 2004 23:08:30 -0000 1.105 +++ vl.c 12 Nov 2004 15:12:33 -0000 @@ -125,6 +125,7 @@ int sb16_enabled = 1; int adlib_enabled = 1; int gus_enabled = 1; +int nic_pcnet = 0; int pci_enabled = 1; int prep_enabled = 0; int rtc_utc = 1; @@ -2508,6 +2509,7 @@ "-prep Simulate a PREP system (default is PowerMAC)\n" "-g WxH[xDEPTH] Set the initial VGA graphic mode\n" #endif + "-nic-pcnet simulate an AMD PC-Net PCI ethernet adaptor\n" "\n" "Network options:\n" "-nics n simulate 'n' network cards [default=1]\n" @@ -2614,6 +2616,7 @@ QEMU_OPTION_L, QEMU_OPTION_no_code_copy, QEMU_OPTION_pci, + QEMU_OPTION_nic_pcnet, QEMU_OPTION_isa, QEMU_OPTION_prep, QEMU_OPTION_localtime, @@ -2687,6 +2690,7 @@ /* temporary options */ { "pci", 0, QEMU_OPTION_pci }, + { "nic-pcnet", 0, QEMU_OPTION_nic_pcnet }, { "cirrusvga", 0, QEMU_OPTION_cirrusvga }, { NULL }, }; @@ -3024,6 +3028,9 @@ case QEMU_OPTION_pci: pci_enabled = 1; break; + case QEMU_OPTION_nic_pcnet: + nic_pcnet = 1; + break; case QEMU_OPTION_isa: pci_enabled = 0; break; Index: vl.h =================================================================== RCS file: /cvsroot/qemu/qemu/vl.h,v retrieving revision 1.60 diff -w -b -B -u -r1.60 vl.h --- vl.h 9 Nov 2004 23:08:30 -0000 1.60 +++ vl.h 12 Nov 2004 15:12:33 -0000 @@ -596,6 +596,12 @@ void isa_ne2000_init(int base, int irq, NetDriverState *nd); void pci_ne2000_init(PCIBus *bus, NetDriverState *nd); +/* pcnet.c */ + +extern int nic_pcnet; + +void pci_pcnet_init(PCIBus *bus, NetDriverState *nd); + /* pckbd.c */ void kbd_init(void); Index: hw/pc.c =================================================================== RCS file: /cvsroot/qemu/qemu/hw/pc.c,v retrieving revision 1.32 diff -w -b -B -u -r1.32 pc.c --- hw/pc.c 9 Nov 2004 23:08:30 -0000 1.32 +++ hw/pc.c 12 Nov 2004 15:12:33 -0000 @@ -534,6 +534,9 @@ if (pci_enabled) { for(i = 0; i < nb_nics; i++) { + if (nic_pcnet) + pci_pcnet_init(pci_bus, &nd_table[i]); + else pci_ne2000_init(pci_bus, &nd_table[i]); } pci_piix3_ide_init(pci_bus, bs_table); --------------030109090007030502050309--