Skip to content

Commit

Permalink
hw: move char backends to backends/
Browse files Browse the repository at this point in the history
Braille and msmouse support is in hw/, but it is not hardware.
Move it to the backends/ directory.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Mar 1, 2013
1 parent 288f1e3 commit 159b6e9
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
4 changes: 4 additions & 0 deletions backends/Makefile.objs
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 2 additions & 2 deletions hw/baum.c → backends/baum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion hw/msmouse.c → backends/msmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions hw/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -218,5 +217,4 @@ obj-$(CONFIG_KVM) += ivshmem.o
obj-$(CONFIG_LINUX) += vfio_pci.o
endif

$(obj)/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
endif
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions qemu-char.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion vl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 159b6e9

Please sign in to comment.