qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: Re: Re: Atheros Wireless Device Emulation


From: Clemens Kolbitsch
Subject: [Qemu-devel] Re: Re: Re: Atheros Wireless Device Emulation
Date: Tue, 18 Mar 2008 08:53:05 +0100
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]