diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-08 06:01:02 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-08 06:01:02 +0000 |
commit | 2e4d9fb126beba5177d9b58a6ecf2f2bfdb560ae (patch) | |
tree | d0791532b9f9dc042d6beb2b268da5e93c3b17f1 /vl.c | |
parent | 88cb0a02b78415429ac354d5880ab2b08321c22b (diff) |
Braille device support
(Samuel Thibault)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4173 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -28,6 +28,7 @@ #include "hw/pc.h" #include "hw/audiodev.h" #include "hw/isa.h" +#include "hw/baum.h" #include "net.h" #include "console.h" #include "sysemu.h" @@ -3473,7 +3474,12 @@ CharDriverState *qemu_chr_open(const char *filename) } else if (strstart(filename, "file:", &p)) { return qemu_chr_open_win_file_out(p); - } + } else +#endif +#ifdef CONFIG_BRLAPI + if (!strcmp(filename, "braille")) { + return chr_baum_init(); + } else #endif { return NULL; @@ -5281,6 +5287,10 @@ static int usb_device_add(const char *devname) dev = usb_wacom_init(); } else if (strstart(devname, "serial:", &p)) { dev = usb_serial_init(p); +#ifdef CONFIG_BRLAPI + } else if (!strcmp(devname, "braille")) { + dev = usb_baum_init(); +#endif } else { return -1; } |