From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGyvN-0008Nn-Em for qemu-devel@nongnu.org; Mon, 21 Jan 2008 10:51:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGyvL-0008Lq-OB for qemu-devel@nongnu.org; Mon, 21 Jan 2008 10:51:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGyvL-0008LU-7Y for qemu-devel@nongnu.org; Mon, 21 Jan 2008 10:50:59 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JGyvK-0006j6-Ui for qemu-devel@nongnu.org; Mon, 21 Jan 2008 10:50:59 -0500 Received: by ug-out-1314.google.com with SMTP id m2so868604uge.4 for ; Mon, 21 Jan 2008 07:50:56 -0800 (PST) Message-ID: Date: Mon, 21 Jan 2008 17:50:56 +0200 From: "=?ISO-8859-5?B?T3MgwNDX4NDR3uLn2No=?=" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11950_14452648.1200930656104" Subject: [Qemu-devel] USB reset device Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_11950_14452648.1200930656104 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline My question is connected with the following: /* specific usb messages, also sent in the 'pid' parameter */ #define USB_MSG_ATTACH 0x100 #define USB_MSG_DETACH 0x101 #define USB_MSG_RESET 0x102 This is some lines, in "usb.h" file in qemu sources. Is this some type of standard, and where I can read documentation, about? I want to ask also the following. If some device is connected to USB port, and I reset the port - what happen? In qemu sources we have: 1. Something (non interesting for me) ... 2. Reset all devices. 3. Change the state of devices from "reset" to "attached". Is this normal? To enumerate device (i.e. SET_ADDRESS) it is necessary to reset explicitly device first (reset port is not *enough*). R. ------=_Part_11950_14452648.1200930656104 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline My question is connected with the following:

/* specific usb messages, also sent in the 'pid' parameter */
#define USB_MSG_ATTACH   0x100
#define USB_MSG_DETACH   0x101
#define USB_MSG_RESET    0x102

This is some lines, in "usb.h" file in qemu sources. Is this some type of standard, and where I can read documentation, about?

  I want to ask also the following. If some device is connected to USB port, and I reset the port - what happen? In qemu sources we have:
  1. Something (non interesting for me) ...
  2. Reset all devices.
  3. Change the state of devices from "reset" to "attached".
Is this normal? To enumerate device (i.e. SET_ADDRESS) it is necessary to reset explicitly device first (reset port is not enough).

R.
------=_Part_11950_14452648.1200930656104--