]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw: move char backends to backends/
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 3 Feb 2013 19:21:00 +0000 (20:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Mar 2013 12:18:23 +0000 (13:18 +0100)
Braille and msmouse support is in hw/, but it is not hardware.
Move it to the backends/ directory.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
backends/Makefile.objs
backends/baum.c [moved from hw/baum.c with 99% similarity]
backends/msmouse.c [moved from hw/msmouse.c with 99% similarity]
hw/Makefile.objs
include/char/baum.h [moved from hw/baum.h with 100% similarity]
include/char/msmouse.h [moved from hw/msmouse.h with 100% similarity]
qemu-char.c
vl.c

index 883676106b6d7e7c4ea8b7af8e92262b61149e99..464bc3e220f4ccc6d7e0f1d4fe5786dd3f7c0f31 100644 (file)
@@ -1,2 +1,6 @@
 common-obj-y += rng.o rng-egd.o
 common-obj-$(CONFIG_POSIX) += rng-random.o
+
+common-obj-y += msmouse.o
+common-obj-$(CONFIG_BRLAPI) += baum.o
+$(obj)/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS) 
similarity index 99%
rename from hw/baum.c
rename to backends/baum.c
index 09dcb9cc7413725cc70971d4d7467847318248e8..37ccca8211078e208ca0cce711fbcad62fc383a0 100644 (file)
--- a/hw/baum.c
@@ -24,8 +24,8 @@
 #include "qemu-common.h"
 #include "char/char.h"
 #include "qemu/timer.h"
-#include "usb.h"
-#include "baum.h"
+#include "hw/usb.h"
+#include "char/baum.h"
 #include <brlapi.h>
 #include <brlapi_constants.h>
 #include <brlapi_keycodes.h>
similarity index 99%
rename from hw/msmouse.c
rename to backends/msmouse.c
index ef47aed4e92c595a177f8d372e4face9c34e5a37..bf2ff2aca86256e9e64b9e6f09029ead72330a1f 100644 (file)
@@ -25,7 +25,7 @@
 #include "qemu-common.h"
 #include "char/char.h"
 #include "ui/console.h"
-#include "msmouse.h"
+#include "char/msmouse.h"
 
 #define MSMOUSE_LO6(n) ((n) & 0x3f)
 #define MSMOUSE_HI2(n) (((n) & 0xc0) >> 6)
index 40ebe466ad404900ce9f934c6d5e5e7c03855a76..5750332f54772c7445b926f7138d5c5bf6f4043c 100644 (file)
@@ -190,10 +190,9 @@ common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
 common-obj-$(CONFIG_SD) += sd.o
 common-obj-y += bt.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
 common-obj-y += bt-hci-csr.o
-common-obj-y += msmouse.o ps2.o
+common-obj-y += ps2.o
 common-obj-y += qdev-monitor.o
 common-obj-y += qdev-properties-system.o
-common-obj-$(CONFIG_BRLAPI) += baum.o
 
 # xen backend driver support
 common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
@@ -218,5 +217,4 @@ obj-$(CONFIG_KVM) += ivshmem.o
 obj-$(CONFIG_LINUX) += vfio_pci.o
 endif
 
-$(obj)/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS) 
 endif
similarity index 100%
rename from hw/baum.h
rename to include/char/baum.h
similarity index 100%
rename from hw/msmouse.h
rename to include/char/msmouse.h
index 160decc2f07311d8b37c107266468765c92490c7..6dc1474546ad0355e0f37787e393dca637be8e93 100644 (file)
@@ -28,8 +28,8 @@
 #include "qemu/timer.h"
 #include "char/char.h"
 #include "hw/usb.h"
-#include "hw/baum.h"
-#include "hw/msmouse.h"
+#include "char/baum.h"
+#include "char/msmouse.h"
 #include "qmp-commands.h"
 
 #include <unistd.h>
diff --git a/vl.c b/vl.c
index c03edf1bfb9cbfe81c680c8e85856db17255986c..e0a8eeb24b53691e97487b46b48d97dbe431d221 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -119,7 +119,7 @@ int main(int argc, char **argv)
 #include "hw/pcmcia.h"
 #include "hw/pc.h"
 #include "hw/isa.h"
-#include "hw/baum.h"
+#include "char/baum.h"
 #include "hw/bt.h"
 #include "hw/watchdog.h"
 #include "hw/smbios.h"