From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDGf0-0002yq-Ka for qemu-devel@nongnu.org; Thu, 29 Mar 2012 10:49:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDGes-0004kX-QQ for qemu-devel@nongnu.org; Thu, 29 Mar 2012 10:49:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDGes-0004k0-JT for qemu-devel@nongnu.org; Thu, 29 Mar 2012 10:49:02 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2TEn0XW019340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 29 Mar 2012 10:49:00 -0400 From: Gerd Hoffmann Date: Thu, 29 Mar 2012 16:48:52 +0200 Message-Id: <1333032538-3919-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 0/6] usb: descriptor rework. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Hi, This patch series reworks the usb descriptor handling in qemu. It adds a struct for the binary representation of usb descriptors. It is put into use for both generating usb descriptors (for emulated devices) and parsing usb descriptors (usb-host driver). Additionally the usb-host parser code has been completely rewritten to simplify the logic and to make it more robust. please review, Gerd Gerd Hoffmann (6): usb: add USBDescriptor, use for device descriptors. usb: use USBDescriptor for device qualifier descriptors. usb: use USBDescriptor for config descriptors. usb: use USBDescriptor for interface descriptors. usb: use USBDescriptor for endpoint descriptors. usb-host: rewrite usb_linux_update_endp_table hw/usb/desc.c | 126 ++++++++++++++++++---------------- hw/usb/desc.h | 63 +++++++++++++++++ hw/usb/host-linux.c | 194 ++++++++++++++++++++++++++------------------------ trace-events | 6 ++ 4 files changed, 237 insertions(+), 152 deletions(-)