Skip to contentSkip to conversation

[5348] Use VHCI to allow the host os to participate in a qemu bluetooth " vlan".

Qemu-devel Andrzej Zaborowski 1 participant 1 message Sep 29, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 5348

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5348
Author:   balrog
Date:     2008-09-29 00:31:41 +0000 (Mon, 29 Sep 2008)

Log Message:
-----------
Use VHCI to allow the host os to participate in a qemu bluetooth "vlan".

This does the reverse of bt-host.c, proxying from guest to host. Appears to be more reliable.

Modified Paths:
--------------
trunk/Makefile
trunk/hw/bt.h

Added Paths:
-----------
trunk/bt-vhci.c

Modified: trunk/Makefile
===================================================================

Makefile +1 -1
@@ -81,7 +81,7 @@
 OBJS+=usb.o usb-hub.o usb-linux.o usb-hid.o usb-msd.o usb-wacom.o
 OBJS+=usb-serial.o usb-net.o
 OBJS+=sd.o ssi-sd.o
-OBJS+=bt.o bt-host.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
+OBJS+=bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
 
 ifdef CONFIG_BRLAPI
 OBJS+= baum.o

Added: trunk/bt-vhci.c
===================================================================

bt-vhci.c +172 -0

172 lines not on this page · raw message

Modified: trunk/hw/bt.h
===================================================================

hw/bt.h +8 -0
@@ -115,6 +115,9 @@
 /* bt-host.c */
 struct HCIInfo *bt_host_hci(const char *id);
 
+/* bt-vhci.c */
+void bt_vhci_init(struct HCIInfo *info);
+
 /* bt-hci-csr.c */
 enum {
     csrhci_pin_reset,
@@ -167,6 +170,11 @@
 /* bt-sdp.c */
 void bt_l2cap_sdp_init(struct bt_l2cap_device_s *dev);
 
+/* bt-hid.c */
+struct bt_device_s *bt_mouse_init(struct bt_scatternet_s *net);
+struct bt_device_s *bt_tablet_init(struct bt_scatternet_s *net);
+struct bt_device_s *bt_keyboard_init(struct bt_scatternet_s *net);
+
 /* Link Management Protocol layer defines */
 
 #define LLID_ACLU_CONT		0x1