From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=37674 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PN6DA-0008CZ-Kf for qemu-devel@nongnu.org; Mon, 29 Nov 2010 11:04:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PN6D9-0003w3-IL for qemu-devel@nongnu.org; Mon, 29 Nov 2010 11:04:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PN6D9-0003vy-AH for qemu-devel@nongnu.org; Mon, 29 Nov 2010 11:04:15 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oATG4D08005890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 29 Nov 2010 11:04:14 -0500 From: Gerd Hoffmann Date: Mon, 29 Nov 2010 17:03:57 +0100 Message-Id: <1291046649-19353-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 00/12] usb descriptor overhaul. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Hi, This patch series is the start for an overhaul of the usb descriptor handling for emulated usb devices. Instead of storing the device desriptors in blobs (aka char arrays) they are stored in structs, which makes it alot easier to work with them. This in turn allows to move common device management to common code, the last two patches show the direction I'm heading to, more simliar patches will follow. cheers, Gerd Gerd Hoffmann (12): usb: data structs and helpers for usb descriptors. usb hid: use new descriptor infrastructure. usb serial: use new descriptor infrastructure. usb storage: use new descriptor infrastructure. usb wacom: use new descriptor infrastructure. usb bluetooth: use new descriptor infrastructure. usb hub: use new descriptor infrastructure. usb descriptors: add settable strings. usb storage: serial number support usb network: use new descriptor infrastructure. usb: move USB_REQ_SET_ADDRESS handling to common code usb: move USB_REQ_{GET,SET}_CONFIGURATION handling to common code Makefile.objs | 2 +- hw/usb-bt.c | 501 +++++++++++++++++++++++-------------------------------- hw/usb-bus.c | 1 + hw/usb-desc.c | 303 +++++++++++++++++++++++++++++++++ hw/usb-desc.h | 89 ++++++++++ hw/usb-hid.c | 459 +++++++++++++++++++++++---------------------------- hw/usb-hub.c | 152 +++++++++-------- hw/usb-msd.c | 183 ++++++++------------- hw/usb-net.c | 500 ++++++++++++++++++++++++------------------------------ hw/usb-serial.c | 209 +++++++++-------------- hw/usb-wacom.c | 188 ++++++++------------- hw/usb.h | 20 +++ 12 files changed, 1351 insertions(+), 1256 deletions(-) create mode 100644 hw/usb-desc.c create mode 100644 hw/usb-desc.h