Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JbWdB-0003CZ-QB for qemu-devel@nongnu.org; Tue, 18 Mar 2008 03:53:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JbWdA-0003Bz-8q for qemu-devel@nongnu.org; Tue, 18 Mar 2008 03:53:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbWdA-0003Bw-6W for qemu-devel@nongnu.org; Tue, 18 Mar 2008 03:53:08 -0400 Received: from www.seclab.tuwien.ac.at ([128.130.60.29] helo=mail.seclab.tuwien.ac.at) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JbWd9-0008SS-Qi for qemu-devel@nongnu.org; Tue, 18 Mar 2008 03:53:08 -0400 Received: from ckol.seclab.tuwien.ac.at (ckol.seclab.tuwien.ac.at [128.130.60.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.seclab.tuwien.ac.at (Postfix) with ESMTP id E478230524 for ; Tue, 18 Mar 2008 08:52:48 +0100 (CET) From: Clemens Kolbitsch References: <20080228144515.27197gmx1@mx060.gmx.net> In-Reply-To: <20080228144515.27197gmx1@mx060.gmx.net> MIME-Version: 1.0 Content-Disposition: inline Date: Tue, 18 Mar 2008 08:53:05 +0100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200803180853.05563.clemens.kol@gmx.at> Subject: [Qemu-devel] Re: Re: Re: Atheros Wireless Device Emulation 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 Patch #1: Necessary changes to Qemu itself... Makefile and hw/pci.c to include the device: diff -Naur qemu/hw/pci.c qemu-altered/hw/pci.c --- qemu/hw/pci.c 2008-02-03 03:20:18.000000000 +0100 +++ qemu-altered/hw/pci.c 2008-03-01 12:59:50.000000000 +0100 @@ -636,6 +636,8 @@ pci_i82559er_init(bus, nd, devfn); } else if (strcmp(nd->model, "rtl8139") == 0) { pci_rtl8139_init(bus, nd, devfn); + } else if (strncmp(nd->model, "atheros_wlan", 12) == 0) { + pci_Atheros_WLAN_init(bus, nd, devfn); } else if (strcmp(nd->model, "e1000") == 0) { pci_e1000_init(bus, nd, devfn); } else if (strcmp(nd->model, "pcnet") == 0) { diff -Naur qemu/hw/pci.h qemu-altered/hw/pci.h --- qemu/hw/pci.h 2008-02-03 03:20:18.000000000 +0100 +++ qemu-altered/hw/pci.h 2008-03-01 13:00:20.000000000 +0100 @@ -126,6 +126,10 @@ void pci_rtl8139_init(PCIBus *bus, NICInfo *nd, int devfn); +/* atheros_wlan.c */ + +void pci_Atheros_WLAN_init(PCIBus *bus, NICInfo *nd, int devfn); + /* e1000.c */ void pci_e1000_init(PCIBus *bus, NICInfo *nd, int devfn); diff -Naur qemu/Makefile.target qemu-altered/Makefile.target --- qemu/Makefile.target 2008-02-27 18:53:27.000000000 +0100 +++ qemu-altered/Makefile.target 2008-03-01 12:58:54.000000000 +0100 @@ -528,6 +528,8 @@ OBJS += pcnet.o OBJS += rtl8139.o OBJS += e1000.o +OBJS += atheros_wlan.o atheros_wlan_io.o atheros_wlan_ap.o +OBJS += atheros_wlan_packet.o atheros_wlan_crc32.o ifeq ($(TARGET_BASE_ARCH), i386) # Hardware support