hw/devices: Move SMSC 91C111 declaration into a new header
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 12 Apr 2019 16:54:16 +0000 (18:54 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:57:21 +0000 (17:57 +0100)
This commit finally deletes "hw/devices.h".

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190412165416.7977-13-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/gumstix.c
hw/arm/integratorcp.c
hw/arm/mainstone.c
hw/arm/realview.c
hw/arm/versatilepb.c
hw/net/smc91c111.c
include/hw/devices.h [deleted file]
include/hw/net/smc91c111.h [new file with mode: 0644]

index 79886ce378797a8deb78b87b9379e31744886e29..343cbfd7da8695e07479794af296d6db0dad5045 100644 (file)
@@ -40,7 +40,7 @@
 #include "hw/arm/pxa.h"
 #include "net/net.h"
 #include "hw/block/flash.h"
-#include "hw/devices.h"
+#include "hw/net/smc91c111.h"
 #include "hw/boards.h"
 #include "exec/address-spaces.h"
 #include "sysemu/qtest.h"
index 4eceebb9ea74f3add9c6ac42ab46753625771736..0b6f24465e43fe36dd38c330f31585d49ca662ea 100644 (file)
 #include "qemu-common.h"
 #include "cpu.h"
 #include "hw/sysbus.h"
-#include "hw/devices.h"
 #include "hw/boards.h"
 #include "hw/arm/arm.h"
 #include "hw/misc/arm_integrator_debug.h"
+#include "hw/net/smc91c111.h"
 #include "net/net.h"
 #include "exec/address-spaces.h"
 #include "sysemu/sysemu.h"
index e96738ad267a3795e247e22e87107f890bfc4c78..c1cec5903795d03ed0455bcb0f3c592b182a7246 100644 (file)
@@ -18,7 +18,7 @@
 #include "hw/arm/pxa.h"
 #include "hw/arm/arm.h"
 #include "net/net.h"
-#include "hw/devices.h"
+#include "hw/net/smc91c111.h"
 #include "hw/boards.h"
 #include "hw/block/flash.h"
 #include "hw/sysbus.h"
index e9983c87639ae9a2b83ca5d41a20e00cdc89f0b4..05a244df255eb636dd9e00eda3bfad6ed37c9c9e 100644 (file)
@@ -14,8 +14,8 @@
 #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/net/smc91c111.h"
 #include "hw/pci/pci.h"
 #include "net/net.h"
 #include "sysemu/sysemu.h"
index d67181810a6b7854903bd26d39bc254d20a5c97f..25166e15171091ba8cae17b3cf1563e62148d72f 100644 (file)
@@ -13,7 +13,7 @@
 #include "cpu.h"
 #include "hw/sysbus.h"
 #include "hw/arm/arm.h"
-#include "hw/devices.h"
+#include "hw/net/smc91c111.h"
 #include "net/net.h"
 #include "sysemu/sysemu.h"
 #include "hw/pci/pci.h"
index 99da2d92973e7a799fde5b7c6344683136879e25..d19ea0750d30e5bd497f5af96391ea29bddd2563 100644 (file)
@@ -10,7 +10,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "net/net.h"
-#include "hw/devices.h"
+#include "hw/net/smc91c111.h"
 #include "qemu/log.h"
 /* For crc32 */
 #include <zlib.h>
diff --git a/include/hw/devices.h b/include/hw/devices.h
deleted file mode 100644 (file)
index ebc45c8..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef QEMU_DEVICES_H
-#define QEMU_DEVICES_H
-
-/* Devices that have nowhere better to go.  */
-
-#include "hw/hw.h"
-
-/* smc91c111.c */
-void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
-
-#endif
diff --git a/include/hw/net/smc91c111.h b/include/hw/net/smc91c111.h
new file mode 100644 (file)
index 0000000..a66ba41
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * SMSC 91C111 Ethernet interface emulation
+ *
+ * Copyright (c) 2005 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_SMC91C111_H
+#define HW_NET_SMC91C111_H
+
+#include "hw/irq.h"
+#include "net/net.h"
+
+void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
+
+#endif