Skip to content

usb descriptor overhaul.

Gerd Hoffmann qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12usb: data structs and helpers for usb descriptors.Makefile.objs hw/usb-desc.c hw/usb-desc.h +1 more+336 -10 replies
2/12usb hid: use new descriptor infrastructure.hw/usb-hid.c+203 -2420 replies
3/12usb serial: use new descriptor infrastructure.hw/usb-serial.c+80 -1150 replies
4/12usb storage: use new descriptor infrastructure.hw/usb-msd.c+61 -1030 replies
5/12usb wacom: use new descriptor infrastructure.hw/usb-wacom.c+71 -1040 replies
6/12usb bluetooth: use new descriptor infrastructure.hw/usb-bt.c+200 -2700 replies
7/12usb hub: use new descriptor infrastructure.hw/usb-hub.c+78 -630 replies
8/12usb descriptors: add settable strings.hw/usb-bus.c hw/usb-desc.c hw/usb-desc.h +1 more+57 -90 replies
9/12usb storage: serial number supporthw/usb-msd.c+6 -00 replies
10/12usb network: use new descriptor infrastructure.hw/usb-net.c+207 -2430 replies
11/12usb: move USB_REQ_SET_ADDRESS handling to common codehw/usb-bt.c hw/usb-desc.c hw/usb-hid.c +5 more+4 -290 replies
12/12usb: move USB_REQ_{GET, SET}_CONFIGURATION handling to common codehw/usb-bt.c hw/usb-desc.c hw/usb-desc.h +7 more+64 -930 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/12] usb descriptor overhaul.

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