]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/devices: Move LAN9118 declarations into a new header
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 12 Apr 2019 16:54:13 +0000 (18:54 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:57:21 +0000 (17:57 +0100)
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190412165416.7977-10-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/kzm.c
hw/arm/mps2.c
hw/arm/realview.c
hw/arm/vexpress.c
hw/net/lan9118.c
include/hw/devices.h
include/hw/net/lan9118.h [new file with mode: 0644]

index 864c7bd4114d98d1d6b826907b7dc0c55a241929..139934c4ecff34993a516d9533ccae969b550073 100644 (file)
@@ -22,7 +22,7 @@
 #include "qemu/error-report.h"
 #include "exec/address-spaces.h"
 #include "net/net.h"
-#include "hw/devices.h"
+#include "hw/net/lan9118.h"
 #include "hw/char/serial.h"
 #include "sysemu/qtest.h"
 
index e3d698ba6c4c6dd8793a36366a5855ae4203d57b..54b7395849f3f0f791628a4e943922cc40b88aca 100644 (file)
@@ -36,7 +36,7 @@
 #include "hw/timer/cmsdk-apb-timer.h"
 #include "hw/timer/cmsdk-apb-dualtimer.h"
 #include "hw/misc/mps2-scc.h"
-#include "hw/devices.h"
+#include "hw/net/lan9118.h"
 #include "net/net.h"
 
 typedef enum MPS2FPGAType {
index 242f5a87b6a318540687ae9b8a4f15b37ad22d3e..e9983c87639ae9a2b83ca5d41a20e00cdc89f0b4 100644 (file)
@@ -15,6 +15,7 @@
 #include "hw/arm/arm.h"
 #include "hw/arm/primecell.h"
 #include "hw/devices.h"
+#include "hw/net/lan9118.h"
 #include "hw/pci/pci.h"
 #include "net/net.h"
 #include "sysemu/sysemu.h"
index f07134c4245350cca5ea5c0f95397c204dd48d28..d8634f3dd29394824bf5bdab4fa7708f86c1f898 100644 (file)
@@ -28,7 +28,7 @@
 #include "hw/sysbus.h"
 #include "hw/arm/arm.h"
 #include "hw/arm/primecell.h"
-#include "hw/devices.h"
+#include "hw/net/lan9118.h"
 #include "hw/i2c/i2c.h"
 #include "net/net.h"
 #include "sysemu/sysemu.h"
index a6269d9463b12fade4063026eb878e257c1008db..a428b16eda5481de778072a8121c16ea69327f5a 100644 (file)
@@ -14,7 +14,7 @@
 #include "hw/sysbus.h"
 #include "net/net.h"
 #include "net/eth.h"
-#include "hw/devices.h"
+#include "hw/net/lan9118.h"
 #include "sysemu/sysemu.h"
 #include "hw/ptimer.h"
 #include "qemu/log.h"
index ba9034050b4123d02662b8c3efadf491ffaeadc3..ebc45c87997945b7f211beb73c99f351de7a4df6 100644 (file)
@@ -8,7 +8,4 @@
 /* smc91c111.c */
 void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
 
-/* lan9118.c */
-void lan9118_init(NICInfo *, uint32_t, qemu_irq);
-
 #endif
diff --git a/include/hw/net/lan9118.h b/include/hw/net/lan9118.h
new file mode 100644 (file)
index 0000000..d13d8cd
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * SMSC LAN9118 Ethernet interface emulation
+ *
+ * Copyright (c) 2009 CodeSourcery, LLC.
+ * Written by Paul Brook
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#ifndef HW_NET_LAN9118_H
+#define HW_NET_LAN9118_H
+
+#include "hw/irq.h"
+#include "net/net.h"
+
+void lan9118_init(NICInfo *, uint32_t, qemu_irq);
+
+#endif