andrzej zaborowski, le Thu 17 Jan 2008 15:09:54 +0100, a écrit : > On 13/01/2008, Samuel Thibault <[EMAIL PROTECTED]> wrote: > > Samuel Thibault, le Sun 13 Jan 2008 01:55:56 +0000, a écrit : > > > Here is an updated version, that takes parameters, so as to be able to > > > notably provide the product ID. > > Can you provide a patch to the .texi docs some time, to document these > parameters and an example usb_add line to get the dongle detected > under linux?
Sure, here it is. Samuel
Index: qemu-doc.texi =================================================================== RCS file: /sources/qemu/qemu/qemu-doc.texi,v retrieving revision 1.179 diff -u -p -r1.179 qemu-doc.texi --- qemu-doc.texi 14 Jan 2008 22:09:11 -0000 1.179 +++ qemu-doc.texi 17 Jan 2008 14:46:37 -0000 @@ -525,6 +525,10 @@ Pass through the host device identified @item host:vendor_id:product_id Pass through the host device identified by vendor_id:product_id (Linux only). [EMAIL PROTECTED] serial:[EMAIL PROTECTED],[EMAIL PROTECTED]:@var{dev} +Serial converter to host character device @var{dev}, see @code{-serial} for the +available devices. + @end table @end table @@ -1562,7 +1566,7 @@ as necessary to connect multiple USB dev USB devices can be connected with the @option{-usbdevice} commandline option or the @code{usb_add} monitor command. Available devices are: [EMAIL PROTECTED] @var [EMAIL PROTECTED] @code @item @code{mouse} Virtual Mouse. This will override the PS/2 mouse emulation when activated. @item @code{tablet} @@ -1583,6 +1587,16 @@ above but it can be used with the tslib coordinates it reports touch pressure. @item @code{keyboard} Standard USB keyboard. Will override the PS/2 keyboard (if present). [EMAIL PROTECTED] @code{serial}:[EMAIL PROTECTED],[EMAIL PROTECTED]:@var{dev} +Serial converter. This emulates an FTDI FT232BM chip connected to host character +device @var{dev}. The available character devices are the same as for the [EMAIL PROTECTED] option. The @code{vendorid} and @code{productid} options can be +used to override the default 0403:FF00. For instance, [EMAIL PROTECTED] +usb_add serial:productid=FA00:tcp:192.168.0.2:4444 [EMAIL PROTECTED] example +will connect to tcp port 4444 of ip 192.168.0.2, and plug that to the virtual +serial converter, faking a Matrix Orbital LCD Display (USB ID 0403:FA00). @end table @node host_usb_devices