qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5654] Document bluetooth support in qemu-doc.


From: Andrzej Zaborowski
Subject: [Qemu-devel] [5654] Document bluetooth support in qemu-doc.
Date: Sun, 09 Nov 2008 02:24:55 +0000

Revision: 5654
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5654
Author:   balrog
Date:     2008-11-09 02:24:54 +0000 (Sun, 09 Nov 2008)

Log Message:
-----------
Document bluetooth support in qemu-doc.

Modified Paths:
--------------
    trunk/hw/usb-bt.c
    trunk/qemu-doc.texi

Modified: trunk/hw/usb-bt.c
===================================================================
--- trunk/hw/usb-bt.c   2008-11-09 00:28:40 UTC (rev 5653)
+++ trunk/hw/usb-bt.c   2008-11-09 02:24:54 UTC (rev 5654)
@@ -623,6 +623,8 @@
 {
     struct USBBtState *s;
 
+    if (!hci)
+        return NULL;
     s = qemu_mallocz(sizeof(struct USBBtState));
     if (!s)
         return NULL;

Modified: trunk/qemu-doc.texi
===================================================================
--- trunk/qemu-doc.texi 2008-11-09 00:28:40 UTC (rev 5653)
+++ trunk/qemu-doc.texi 2008-11-09 02:24:54 UTC (rev 5654)
@@ -782,6 +782,62 @@
 
 @end table
 
+Bluetooth(R) options:
address@hidden @option
+
address@hidden -bt hci[...]
+Defines the function of the corresponding Bluetooth HCI.  -bt options
+are matched with the HCIs present in the chosen machine type.  For
+example when emulating a machine with only one HCI built into it, only
+the first @code{-bt hci[...]} option is valid and defines the HCI's
+logic.  The Transport Layer is decided by the machine type.  Currently
+the machines @code{n800} and @code{n810} have one HCI and all other
+machines have none.
+
address@hidden
+The following three types are recognized:
+
address@hidden @code
address@hidden -bt hci,null
+(default) The corresponding Bluetooth HCI assumes no internal logic
+and will not respond to any HCI commands or emit events.
+
address@hidden -bt hci,host[:@var{id}]
+(@code{bluez} only) The corresponding HCI passes commands / events
+to / from the physical HCI identified by the name @var{id} (default:
address@hidden) on the computer running QEMU.  Only available on @code{bluez}
+capable systems like Linux.
+
address@hidden -bt hci[,address@hidden
+Add a virtual, standard HCI that will participate in the Bluetooth
+scatternet @var{n} (default @code{0}).  Similarly to @option{-net}
+VLANs, devices inside a bluetooth network @var{n} can only communicate
+with other devices in the same network (scatternet).
address@hidden table
+
address@hidden -bt vhci[,address@hidden
+(Linux-host only) Create a HCI in scatternet @var{n} (default 0) attached
+to the host bluetooth stack instead of to the emulated target.  This
+allows the host and target machines to participate in a common scatternet
+and communicate.  Requires the Linux @code{vhci} driver installed.  Can
+be used as following:
+
address@hidden
+qemu [...OPTIONS...] -bt hci,vlan=5 -bt vhci,vlan=5
address@hidden example
+
address@hidden -bt device:@var{dev}[,address@hidden
+Emulate a bluetooth device @var{dev} and place it in network @var{n}
+(default @code{0}).  QEMU can only emulate one type of bluetooth devices
+currently:
+
address@hidden @code
address@hidden keyboard
+Virtual wireless keyboard implementing the HIDP bluetooth profile.
address@hidden table
+
address@hidden table
+
 Linux boot specific: When using these options, you can use a given
 Linux kernel without installing it in the disk image. It can be useful
 for easier testing of various kernels.
@@ -1767,6 +1823,15 @@
 qemu [...OPTIONS...] -net user,vlan=0 -usbdevice net:vlan=0
 @end example
 Currently this cannot be used in machines that support PCI NICs.
address@hidden bt[:@var{hci-type}]
+Bluetooth dongle whose type is specified in the same format as with
+the @option{-bt hci} option, @pxref{bt-hcis,,allowed HCI types}.  If
+no type is given, the HCI logic corresponds to @code{-bt hci,vlan=0}.
+This USB device implements the USB Transport Layer of HCI.  Example
+usage:
address@hidden
+qemu [...OPTIONS...] -usbdevice bt:hci,vlan=3 -bt device:keyboard,vlan=3
address@hidden example
 @end table
 
 @node host_usb_devices
@@ -2664,6 +2729,8 @@
 @item
 Three OMAP on-chip UARTs and on-chip STI debugging console
 @item
+A Bluetooth(R) transciever and HCI connected to an UART
address@hidden
 Mentor Graphics "Inventra" dual-role USB controller embedded in a TI
 TUSB6010 chip - only USB host mode is supported
 @item






reply via email to

[Prev in Thread] Current Thread [Next in Thread]