]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ipack: Move IndustryPack out of hw/char/
authorAndreas Färber <afaerber@suse.de>
Thu, 1 Aug 2013 22:48:40 +0000 (00:48 +0200)
committerAndreas Färber <afaerber@suse.de>
Fri, 14 Feb 2014 20:11:53 +0000 (21:11 +0100)
Move the header defining an IPackBus and IPackDevice base class into
a new include/ directory and move their implementation and a
PCI-IndustryPack bridge out of hw/char/ directory into a new hw/ipack/.

Acked-by: Alberto Garcia <agarcia@igalia.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/Makefile.objs
hw/char/Makefile.objs
hw/char/ipoctal232.c
hw/ipack/Makefile.objs [new file with mode: 0644]
hw/ipack/ipack.c [moved from hw/char/ipack.c with 99% similarity]
hw/ipack/tpci200.c [moved from hw/char/tpci200.c with 99% similarity]
include/hw/ipack/ipack.h [moved from hw/char/ipack.h with 100% similarity]
tests/Makefile

index d91b9cc6c662a367a463c08234cfa48f8858ca49..05a00dc40133e7f0bbfbeed47e1be07bf38bbfc3 100644 (file)
@@ -12,6 +12,7 @@ devices-dirs-$(CONFIG_SOFTMMU) += i2c/
 devices-dirs-$(CONFIG_SOFTMMU) += ide/
 devices-dirs-$(CONFIG_SOFTMMU) += input/
 devices-dirs-$(CONFIG_SOFTMMU) += intc/
+devices-dirs-$(CONFIG_IPACK) += ipack/
 devices-dirs-$(CONFIG_SOFTMMU) += isa/
 devices-dirs-$(CONFIG_SOFTMMU) += misc/
 devices-dirs-$(CONFIG_SOFTMMU) += net/
index be2a7d953ad81ad6c70fdc540fe07a5de5ad237a..317385d26fd6b1d81d3cc015eab768856f28f27e 100644 (file)
@@ -1,4 +1,4 @@
-common-obj-$(CONFIG_IPACK) += tpci200.o ipoctal232.o ipack.o
+common-obj-$(CONFIG_IPACK) += ipoctal232.o
 common-obj-$(CONFIG_ESCC) += escc.o
 common-obj-$(CONFIG_PARALLEL) += parallel.o
 common-obj-$(CONFIG_PL011) += pl011.o
index 99bab4dd83f36a77ae29279689b3d74554413567..f9c388ed0b86b443416baab622fc396a98531c5f 100644 (file)
@@ -8,7 +8,7 @@
  * later version.
  */
 
-#include "ipack.h"
+#include "hw/ipack/ipack.h"
 #include "qemu/bitops.h"
 #include "sysemu/char.h"
 
diff --git a/hw/ipack/Makefile.objs b/hw/ipack/Makefile.objs
new file mode 100644 (file)
index 0000000..8b9bdcb
--- /dev/null
@@ -0,0 +1,2 @@
+common-obj-$(CONFIG_IPACK) += ipack.o
+common-obj-$(CONFIG_IPACK) += tpci200.o
similarity index 99%
rename from hw/char/ipack.c
rename to hw/ipack/ipack.c
index 15cef7b9f9802b308a5ee9963554bea57fe6e4de..ed63d2ac61ef523ff5b5b0ccab996eff0c669fef 100644 (file)
@@ -8,7 +8,7 @@
  * later version.
  */
 
-#include "ipack.h"
+#include "hw/ipack/ipack.h"
 
 IPackDevice *ipack_device_find(IPackBus *bus, int32_t slot)
 {
similarity index 99%
rename from hw/char/tpci200.c
rename to hw/ipack/tpci200.c
index a49d2ed5c114967c04f2c5a9ef9063b22c1b8dd5..e1b69b45520fdf4c436c1da74e8e035a015a2bce 100644 (file)
@@ -8,7 +8,7 @@
  * later version.
  */
 
-#include "ipack.h"
+#include "hw/ipack/ipack.h"
 #include "hw/pci/pci.h"
 #include "qemu/bitops.h"
 #include <stdio.h>
similarity index 100%
rename from hw/char/ipack.h
rename to include/hw/ipack/ipack.h
index 584fe4eac833206cf76828629ffabe0153f88b53..0ef8727873950fd445b3fa495e30a5e66e81e9bb 100644 (file)
@@ -65,7 +65,7 @@ check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh
 # All QTests for now are POSIX-only, but the dependencies are
 # really in libqtest, not in the testcases themselves.
 
-gcov-files-ipack-y += hw/char/ipack.c
+gcov-files-ipack-y += hw/ipack/ipack.c
 check-qtest-ipack-y += tests/ipoctal232-test$(EXESUF)
 gcov-files-ipack-y += hw/char/ipoctal232.c
 
@@ -89,7 +89,7 @@ gcov-files-pci-y += $(gcov-files-virtio-y) hw/virtio/virtio-pci.c
 check-qtest-pci-y += tests/tpci200-test$(EXESUF)
 gcov-files-pci-y += hw/char/tpci200.c
 check-qtest-pci-y += $(check-qtest-ipack-y)
-gcov-files-pci-y += $(gcov-files-ipack-y) hw/char/tpci200.c
+gcov-files-pci-y += $(gcov-files-ipack-y) hw/ipack/tpci200.c
 
 check-qtest-i386-y = tests/endianness-test$(EXESUF)
 check-qtest-i386-y += tests/fdc-test$(EXESUF)