struct usb_composite_dev { struct usb_gadget * gadget; struct usb_request * req; unsigned bufsiz; struct usb_configuration * config; };
gadget
req
bufsiz
config
One of these devices is allocated and initialized before the associated device driver's bind is called.
it appears that some WUSB devices will need to be built by combining a normal (wired) gadget with a wireless one. This revision of the gadget framework should probably try to make sure doing that won't hurt too much.
(a) a second gadget here, discovery mechanism TBD, but likely needing separate lqregister/unregister WUSB gadgetrq calls; (b) updates to usb_gadget to include flags lqis it wirelessrq, lqis it wiredrq, plus (presumably in a wrapper structure) bandgroup and PHY info; (c) presumably a wireless_ep wrapping a usb_ep, and reporting wireless-specific parameters like maxburst and maxsequence; (d) configurations that are specific to wireless links; (e) function drivers that understand wireless configs and will support wireless for (additional) function instances; (f) a function to support association setup (like CBAF), not necessarily requiring a wireless adapter; (g) composite device setup that can create one or more wireless configs, including appropriate association setup support; (h) more, TBD.
David Brownell <dbrownell@users.sourceforge.net>