usbcore: get BOS descriptor set
[deliverable/linux.git] / include / linux / usb.h
index c19f9100c3071bd9e343eeec82de95771c137fbd..90ab9dc1f0807799211a601fa4117aff74af8abc 100644 (file)
@@ -292,6 +292,16 @@ struct usb_host_config {
        int extralen;
 };
 
+/* USB2.0 and USB3.0 device BOS descriptor set */
+struct usb_host_bos {
+       struct usb_bos_descriptor       *desc;
+
+       /* wireless cap descriptor is handled by wusb */
+       struct usb_ext_cap_descriptor   *ext_cap;
+       struct usb_ss_cap_descriptor    *ss_cap;
+       struct usb_ss_container_id_descriptor   *ss_id;
+};
+
 int __usb_get_extra_descriptor(char *buffer, unsigned size,
        unsigned char type, void **ptr);
 #define usb_get_extra_descriptor(ifpoint, type, ptr) \
@@ -381,6 +391,7 @@ struct usb_tt;
  * @ep0: endpoint 0 data (default control pipe)
  * @dev: generic device interface
  * @descriptor: USB device descriptor
+ * @bos: USB device BOS descriptor set
  * @config: all of the device's configs
  * @actconfig: the active configuration
  * @ep_in: array of IN endpoints
@@ -442,6 +453,7 @@ struct usb_device {
        struct device dev;
 
        struct usb_device_descriptor descriptor;
+       struct usb_host_bos *bos;
        struct usb_host_config *config;
 
        struct usb_host_config *actconfig;
This page took 0.027102 seconds and 5 git commands to generate.