[RFC/PATCH 08/12] usb: gadget: composite: add bos and capabilities fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



we will use those to pass in the BOS descriptor
and device capabilities.

Signed-off-by: Felipe Balbi <balbi@xxxxxx>
---
 include/linux/usb/composite.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h
index c7f859d..0761384 100644
--- a/include/linux/usb/composite.h
+++ b/include/linux/usb/composite.h
@@ -249,6 +249,8 @@ int usb_add_config(struct usb_composite_dev *,
  *	identifiers.
  * @strings: tables of strings, keyed by identifiers assigned during bind()
  *	and language IDs provided in control requests
+ * @bos: BOS (Binary Device Object Store) descriptor
+ * @capabilities: Device Capabilities as defined by USB3.0 Standard
  * @needs_serial: set to 1 if the gadget needs userspace to provide
  * 	a serial number.  If one is not provided, warning will be printed.
  * @unbind: Reverses bind; called as a side effect of unregistering
@@ -276,6 +278,10 @@ struct usb_composite_driver {
 	const char				*iManufacturer;
 	const struct usb_device_descriptor	*dev;
 	struct usb_gadget_strings		**strings;
+
+	struct usb_bos_descriptor		*bos;
+	const struct usb_dev_cap_header		**capabilities;
+
 	unsigned		needs_serial:1;
 
 	int			(*unbind)(struct usb_composite_dev *);
@@ -330,6 +336,8 @@ struct usb_composite_dev {
 	unsigned			bufsiz;
 
 	struct usb_configuration	*config;
+	struct usb_bos_descriptor	*bos;
+	const struct usb_dev_cap_header	**capabilities;
 
 	/* private: */
 	/* internals */
-- 
1.7.4.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux