]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/usb.h
usb: introduce usb_device authorization bits
[linux-2.6-omap-h63xx.git] / include / linux / usb.h
index a51f34e805727636daa9378d560e4e2adf1a16ff..92d63c6b6fc6f980356f04ec4e2e93da43a0c6e4 100644 (file)
@@ -346,6 +346,11 @@ struct usb_tt;
  *
  * Usbcore drivers should not set usbdev->state directly.  Instead use
  * usb_set_device_state().
+ *
+ * @authorized: (user space) policy determines if we authorize this
+ *              device to be used or not. By default, wired USB
+ *              devices are authorized. WUSB devices are not, until we
+ *              authorize them from user space. FIXME -- complete doc
  */
 struct usb_device {
        int             devnum;         /* Address on USB bus */
@@ -380,6 +385,8 @@ struct usb_device {
 
        unsigned discon_suspended:1;    /* Disconnected while suspended */
        unsigned have_langid:1;         /* whether string_langid is valid */
+       unsigned authorized:1;          /* Policy has determined we can use it */
+       unsigned wusb:1;                /* Device is Wireless USB */
        int string_langid;              /* language ID for strings */
 
        /* static strings from the device */