diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/usb.h | 196 | ||||
| -rw-r--r-- | include/linux/usb/audio.h | 2 | ||||
| -rw-r--r-- | include/linux/usb/cdc.h | 4 | ||||
| -rw-r--r-- | include/linux/usb/ch9.h | 17 | ||||
| -rw-r--r-- | include/linux/usb/g_printer.h | 4 | ||||
| -rw-r--r-- | include/linux/usb/gadget.h | 2 | ||||
| -rw-r--r-- | include/linux/usb/gadgetfs.h | 16 | ||||
| -rw-r--r-- | include/linux/usb/input.h | 8 | ||||
| -rw-r--r-- | include/linux/usb/iowarrior.h | 6 | ||||
| -rw-r--r-- | include/linux/usb/isp116x.h | 6 | ||||
| -rw-r--r-- | include/linux/usb/midi.h | 2 | ||||
| -rw-r--r-- | include/linux/usb/net2280.h | 9 | ||||
| -rw-r--r-- | include/linux/usb/otg.h | 6 | ||||
| -rw-r--r-- | include/linux/usb/quirks.h | 5 | ||||
| -rw-r--r-- | include/linux/usb/rndis_host.h | 9 | ||||
| -rw-r--r-- | include/linux/usb/serial.h | 21 | ||||
| -rw-r--r-- | include/linux/usb/sl811.h | 5 | ||||
| -rw-r--r-- | include/linux/usb/usbnet.h | 8 | ||||
| -rw-r--r-- | include/linux/usb_usual.h | 1 | ||||
| -rw-r--r-- | include/linux/usbdevice_fs.h | 7 |
20 files changed, 194 insertions, 140 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 583e0481dfa0..c08689ea9b4b 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | struct usb_device; | 24 | struct usb_device; |
| 25 | struct usb_driver; | 25 | struct usb_driver; |
| 26 | struct wusb_dev; | ||
| 26 | 27 | ||
| 27 | /*-------------------------------------------------------------------------*/ | 28 | /*-------------------------------------------------------------------------*/ |
| 28 | 29 | ||
| @@ -341,103 +342,146 @@ struct usb_bus { | |||
| 341 | 342 | ||
| 342 | struct usb_tt; | 343 | struct usb_tt; |
| 343 | 344 | ||
| 344 | /* | 345 | /** |
| 345 | * struct usb_device - kernel's representation of a USB device | 346 | * struct usb_device - kernel's representation of a USB device |
| 346 | * | 347 | * @devnum: device number; address on a USB bus |
| 347 | * FIXME: Write the kerneldoc! | 348 | * @devpath: device ID string for use in messages (e.g., /port/...) |
| 348 | * | 349 | * @state: device state: configured, not attached, etc. |
| 350 | * @speed: device speed: high/full/low (or error) | ||
| 351 | * @tt: Transaction Translator info; used with low/full speed dev, highspeed hub | ||
| 352 | * @ttport: device port on that tt hub | ||
| 353 | * @toggle: one bit for each endpoint, with ([0] = IN, [1] = OUT) endpoints | ||
| 354 | * @parent: our hub, unless we're the root | ||
| 355 | * @bus: bus we're part of | ||
| 356 | * @ep0: endpoint 0 data (default control pipe) | ||
| 357 | * @dev: generic device interface | ||
| 358 | * @descriptor: USB device descriptor | ||
| 359 | * @config: all of the device's configs | ||
| 360 | * @actconfig: the active configuration | ||
| 361 | * @ep_in: array of IN endpoints | ||
| 362 | * @ep_out: array of OUT endpoints | ||
| 363 | * @rawdescriptors: raw descriptors for each config | ||
| 364 | * @bus_mA: Current available from the bus | ||
| 365 | * @portnum: parent port number (origin 1) | ||
| 366 | * @level: number of USB hub ancestors | ||
| 367 | * @can_submit: URBs may be submitted | ||
| 368 | * @discon_suspended: disconnected while suspended | ||
| 369 | * @persist_enabled: USB_PERSIST enabled for this device | ||
| 370 | * @have_langid: whether string_langid is valid | ||
| 371 | * @authorized: policy has said we can use it; | ||
| 372 | * (user space) policy determines if we authorize this device to be | ||
| 373 | * used or not. By default, wired USB devices are authorized. | ||
| 374 | * WUSB devices are not, until we authorize them from user space. | ||
| 375 | * FIXME -- complete doc | ||
| 376 | * @authenticated: Crypto authentication passed | ||
| 377 | * @wusb: device is Wireless USB | ||
| 378 | * @string_langid: language ID for strings | ||
| 379 | * @product: iProduct string, if present (static) | ||
| 380 | * @manufacturer: iManufacturer string, if present (static) | ||
| 381 | * @serial: iSerialNumber string, if present (static) | ||
| 382 | * @filelist: usbfs files that are open to this device | ||
| 383 | * @usb_classdev: USB class device that was created for usbfs device | ||
| 384 | * access from userspace | ||
| 385 | * @usbfs_dentry: usbfs dentry entry for the device | ||
| 386 | * @maxchild: number of ports if hub | ||
| 387 | * @children: child devices - USB devices that are attached to this hub | ||
| 388 | * @pm_usage_cnt: usage counter for autosuspend | ||
| 389 | * @quirks: quirks of the whole device | ||
| 390 | * @urbnum: number of URBs submitted for the whole device | ||
| 391 | * @active_duration: total time device is not suspended | ||
| 392 | * @autosuspend: for delayed autosuspends | ||
| 393 | * @pm_mutex: protects PM operations | ||
| 394 | * @last_busy: time of last use | ||
| 395 | * @autosuspend_delay: in jiffies | ||
| 396 | * @connect_time: time device was first connected | ||
| 397 | * @auto_pm: autosuspend/resume in progress | ||
| 398 | * @do_remote_wakeup: remote wakeup should be enabled | ||
| 399 | * @reset_resume: needs reset instead of resume | ||
| 400 | * @autosuspend_disabled: autosuspend disabled by the user | ||
| 401 | * @autoresume_disabled: autoresume disabled by the user | ||
| 402 | * @skip_sys_resume: skip the next system resume | ||
| 403 | * | ||
| 404 | * Notes: | ||
| 349 | * Usbcore drivers should not set usbdev->state directly. Instead use | 405 | * Usbcore drivers should not set usbdev->state directly. Instead use |
| 350 | * usb_set_device_state(). | 406 | * usb_set_device_state(). |
| 351 | * | ||
| 352 | * @authorized: (user space) policy determines if we authorize this | ||
| 353 | * device to be used or not. By default, wired USB | ||
| 354 | * devices are authorized. WUSB devices are not, until we | ||
| 355 | * authorize them from user space. FIXME -- complete doc | ||
| 356 | */ | 407 | */ |
| 357 | struct usb_device { | 408 | struct usb_device { |
| 358 | int devnum; /* Address on USB bus */ | 409 | int devnum; |
| 359 | char devpath [16]; /* Use in messages: /port/port/... */ | 410 | char devpath [16]; |
| 360 | enum usb_device_state state; /* configured, not attached, etc */ | 411 | enum usb_device_state state; |
| 361 | enum usb_device_speed speed; /* high/full/low (or error) */ | 412 | enum usb_device_speed speed; |
| 362 | 413 | ||
| 363 | struct usb_tt *tt; /* low/full speed dev, highspeed hub */ | 414 | struct usb_tt *tt; |
| 364 | int ttport; /* device port on that tt hub */ | 415 | int ttport; |
| 365 | 416 | ||
| 366 | unsigned int toggle[2]; /* one bit for each endpoint | 417 | unsigned int toggle[2]; |
| 367 | * ([0] = IN, [1] = OUT) */ | ||
| 368 | 418 | ||
| 369 | struct usb_device *parent; /* our hub, unless we're the root */ | 419 | struct usb_device *parent; |
| 370 | struct usb_bus *bus; /* Bus we're part of */ | 420 | struct usb_bus *bus; |
| 371 | struct usb_host_endpoint ep0; | 421 | struct usb_host_endpoint ep0; |
| 372 | 422 | ||
| 373 | struct device dev; /* Generic device interface */ | 423 | struct device dev; |
| 374 | 424 | ||
| 375 | struct usb_device_descriptor descriptor;/* Descriptor */ | 425 | struct usb_device_descriptor descriptor; |
| 376 | struct usb_host_config *config; /* All of the configs */ | 426 | struct usb_host_config *config; |
| 377 | 427 | ||
| 378 | struct usb_host_config *actconfig;/* the active configuration */ | 428 | struct usb_host_config *actconfig; |
| 379 | struct usb_host_endpoint *ep_in[16]; | 429 | struct usb_host_endpoint *ep_in[16]; |
| 380 | struct usb_host_endpoint *ep_out[16]; | 430 | struct usb_host_endpoint *ep_out[16]; |
| 381 | 431 | ||
| 382 | char **rawdescriptors; /* Raw descriptors for each config */ | 432 | char **rawdescriptors; |
| 383 | 433 | ||
| 384 | unsigned short bus_mA; /* Current available from the bus */ | 434 | unsigned short bus_mA; |
| 385 | u8 portnum; /* Parent port number (origin 1) */ | 435 | u8 portnum; |
| 386 | u8 level; /* Number of USB hub ancestors */ | 436 | u8 level; |
| 387 | 437 | ||
| 388 | unsigned can_submit:1; /* URBs may be submitted */ | 438 | unsigned can_submit:1; |
| 389 | unsigned discon_suspended:1; /* Disconnected while suspended */ | 439 | unsigned discon_suspended:1; |
| 390 | unsigned have_langid:1; /* whether string_langid is valid */ | 440 | unsigned persist_enabled:1; |
| 391 | unsigned authorized:1; /* Policy has said we can use it */ | 441 | unsigned have_langid:1; |
| 392 | unsigned wusb:1; /* Device is Wireless USB */ | 442 | unsigned authorized:1; |
| 393 | int string_langid; /* language ID for strings */ | 443 | unsigned authenticated:1; |
| 444 | unsigned wusb:1; | ||
| 445 | int string_langid; | ||
| 394 | 446 | ||
| 395 | /* static strings from the device */ | 447 | /* static strings from the device */ |
| 396 | char *product; /* iProduct string, if present */ | 448 | char *product; |
| 397 | char *manufacturer; /* iManufacturer string, if present */ | 449 | char *manufacturer; |
| 398 | char *serial; /* iSerialNumber string, if present */ | 450 | char *serial; |
| 399 | 451 | ||
| 400 | struct list_head filelist; | 452 | struct list_head filelist; |
| 401 | #ifdef CONFIG_USB_DEVICE_CLASS | 453 | #ifdef CONFIG_USB_DEVICE_CLASS |
| 402 | struct device *usb_classdev; | 454 | struct device *usb_classdev; |
| 403 | #endif | 455 | #endif |
| 404 | #ifdef CONFIG_USB_DEVICEFS | 456 | #ifdef CONFIG_USB_DEVICEFS |
| 405 | struct dentry *usbfs_dentry; /* usbfs dentry entry for the device */ | 457 | struct dentry *usbfs_dentry; |
| 406 | #endif | 458 | #endif |
| 407 | /* | ||
| 408 | * Child devices - these can be either new devices | ||
| 409 | * (if this is a hub device), or different instances | ||
| 410 | * of this same device. | ||
| 411 | * | ||
| 412 | * Each instance needs its own set of data structures. | ||
| 413 | */ | ||
| 414 | 459 | ||
| 415 | int maxchild; /* Number of ports if hub */ | 460 | int maxchild; |
| 416 | struct usb_device *children[USB_MAXCHILDREN]; | 461 | struct usb_device *children[USB_MAXCHILDREN]; |
| 417 | 462 | ||
| 418 | int pm_usage_cnt; /* usage counter for autosuspend */ | 463 | int pm_usage_cnt; |
| 419 | u32 quirks; /* quirks of the whole device */ | 464 | u32 quirks; |
| 420 | atomic_t urbnum; /* number of URBs submitted for | 465 | atomic_t urbnum; |
| 421 | the whole device */ | ||
| 422 | 466 | ||
| 423 | unsigned long active_duration; /* total time device is not suspended */ | 467 | unsigned long active_duration; |
| 424 | 468 | ||
| 425 | #ifdef CONFIG_PM | 469 | #ifdef CONFIG_PM |
| 426 | struct delayed_work autosuspend; /* for delayed autosuspends */ | 470 | struct delayed_work autosuspend; |
| 427 | struct mutex pm_mutex; /* protects PM operations */ | 471 | struct mutex pm_mutex; |
| 428 | 472 | ||
| 429 | unsigned long last_busy; /* time of last use */ | 473 | unsigned long last_busy; |
| 430 | int autosuspend_delay; /* in jiffies */ | 474 | int autosuspend_delay; |
| 431 | unsigned long connect_time; /* time device was first connected */ | 475 | unsigned long connect_time; |
| 432 | 476 | ||
| 433 | unsigned auto_pm:1; /* autosuspend/resume in progress */ | 477 | unsigned auto_pm:1; |
| 434 | unsigned do_remote_wakeup:1; /* remote wakeup should be enabled */ | 478 | unsigned do_remote_wakeup:1; |
| 435 | unsigned reset_resume:1; /* needs reset instead of resume */ | 479 | unsigned reset_resume:1; |
| 436 | unsigned persist_enabled:1; /* USB_PERSIST enabled for this dev */ | 480 | unsigned autosuspend_disabled:1; |
| 437 | unsigned autosuspend_disabled:1; /* autosuspend and autoresume */ | 481 | unsigned autoresume_disabled:1; |
| 438 | unsigned autoresume_disabled:1; /* disabled by the user */ | 482 | unsigned skip_sys_resume:1; |
| 439 | unsigned skip_sys_resume:1; /* skip the next system resume */ | ||
| 440 | #endif | 483 | #endif |
| 484 | struct wusb_dev *wusb_dev; | ||
| 441 | }; | 485 | }; |
| 442 | #define to_usb_device(d) container_of(d, struct usb_device, dev) | 486 | #define to_usb_device(d) container_of(d, struct usb_device, dev) |
| 443 | 487 | ||
| @@ -898,10 +942,11 @@ struct usbdrv_wrap { | |||
| 898 | * and should normally be the same as the module name. | 942 | * and should normally be the same as the module name. |
| 899 | * @probe: Called to see if the driver is willing to manage a particular | 943 | * @probe: Called to see if the driver is willing to manage a particular |
| 900 | * interface on a device. If it is, probe returns zero and uses | 944 | * interface on a device. If it is, probe returns zero and uses |
| 901 | * dev_set_drvdata() to associate driver-specific data with the | 945 | * usb_set_intfdata() to associate driver-specific data with the |
| 902 | * interface. It may also use usb_set_interface() to specify the | 946 | * interface. It may also use usb_set_interface() to specify the |
| 903 | * appropriate altsetting. If unwilling to manage the interface, | 947 | * appropriate altsetting. If unwilling to manage the interface, |
| 904 | * return a negative errno value. | 948 | * return -ENODEV, if genuine IO errors occured, an appropriate |
| 949 | * negative errno value. | ||
| 905 | * @disconnect: Called when the interface is no longer accessible, usually | 950 | * @disconnect: Called when the interface is no longer accessible, usually |
| 906 | * because its device has been (or is being) disconnected or the | 951 | * because its device has been (or is being) disconnected or the |
| 907 | * driver module is being unloaded. | 952 | * driver module is being unloaded. |
| @@ -916,10 +961,7 @@ struct usbdrv_wrap { | |||
| 916 | * @pre_reset: Called by usb_reset_composite_device() when the device | 961 | * @pre_reset: Called by usb_reset_composite_device() when the device |
| 917 | * is about to be reset. | 962 | * is about to be reset. |
| 918 | * @post_reset: Called by usb_reset_composite_device() after the device | 963 | * @post_reset: Called by usb_reset_composite_device() after the device |
| 919 | * has been reset, or in lieu of @resume following a reset-resume | 964 | * has been reset |
| 920 | * (i.e., the device is reset instead of being resumed, as might | ||
| 921 | * happen if power was lost). The second argument tells which is | ||
| 922 | * the reason. | ||
| 923 | * @id_table: USB drivers use ID table to support hotplugging. | 965 | * @id_table: USB drivers use ID table to support hotplugging. |
| 924 | * Export this with MODULE_DEVICE_TABLE(usb,...). This must be set | 966 | * Export this with MODULE_DEVICE_TABLE(usb,...). This must be set |
| 925 | * or your driver's probe function will never get called. | 967 | * or your driver's probe function will never get called. |
| @@ -1411,6 +1453,7 @@ extern int usb_submit_urb(struct urb *urb, gfp_t mem_flags); | |||
| 1411 | extern int usb_unlink_urb(struct urb *urb); | 1453 | extern int usb_unlink_urb(struct urb *urb); |
| 1412 | extern void usb_kill_urb(struct urb *urb); | 1454 | extern void usb_kill_urb(struct urb *urb); |
| 1413 | extern void usb_kill_anchored_urbs(struct usb_anchor *anchor); | 1455 | extern void usb_kill_anchored_urbs(struct usb_anchor *anchor); |
| 1456 | extern void usb_unlink_anchored_urbs(struct usb_anchor *anchor); | ||
| 1414 | extern void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor); | 1457 | extern void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor); |
| 1415 | extern void usb_unanchor_urb(struct urb *urb); | 1458 | extern void usb_unanchor_urb(struct urb *urb); |
| 1416 | extern int usb_wait_anchor_empty_timeout(struct usb_anchor *anchor, | 1459 | extern int usb_wait_anchor_empty_timeout(struct usb_anchor *anchor, |
| @@ -1661,13 +1704,12 @@ extern void usb_unregister_notify(struct notifier_block *nb); | |||
| 1661 | #define dbg(format, arg...) do {} while (0) | 1704 | #define dbg(format, arg...) do {} while (0) |
| 1662 | #endif | 1705 | #endif |
| 1663 | 1706 | ||
| 1664 | #define err(format, arg...) printk(KERN_ERR "%s: " format "\n" , \ | 1707 | #define err(format, arg...) printk(KERN_ERR KBUILD_MODNAME ": " \ |
| 1665 | __FILE__ , ## arg) | 1708 | format "\n" , ## arg) |
| 1666 | #define info(format, arg...) printk(KERN_INFO "%s: " format "\n" , \ | 1709 | #define info(format, arg...) printk(KERN_INFO KBUILD_MODNAME ": " \ |
| 1667 | __FILE__ , ## arg) | 1710 | format "\n" , ## arg) |
| 1668 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n" , \ | 1711 | #define warn(format, arg...) printk(KERN_WARNING KBUILD_MODNAME ": " \ |
| 1669 | __FILE__ , ## arg) | 1712 | format "\n" , ## arg) |
| 1670 | |||
| 1671 | 1713 | ||
| 1672 | #endif /* __KERNEL__ */ | 1714 | #endif /* __KERNEL__ */ |
| 1673 | 1715 | ||
diff --git a/include/linux/usb/audio.h b/include/linux/usb/audio.h index 2dfeef16b221..8cb025fef634 100644 --- a/include/linux/usb/audio.h +++ b/include/linux/usb/audio.h | |||
| @@ -50,4 +50,4 @@ struct usb_ac_header_descriptor_##n { \ | |||
| 50 | __u8 baInterfaceNr[n]; \ | 50 | __u8 baInterfaceNr[n]; \ |
| 51 | } __attribute__ ((packed)) | 51 | } __attribute__ ((packed)) |
| 52 | 52 | ||
| 53 | #endif | 53 | #endif /* __LINUX_USB_AUDIO_H */ |
diff --git a/include/linux/usb/cdc.h b/include/linux/usb/cdc.h index 94ee4ecf0564..71e52f2f6a38 100644 --- a/include/linux/usb/cdc.h +++ b/include/linux/usb/cdc.h | |||
| @@ -6,6 +6,9 @@ | |||
| 6 | * firmware based USB peripherals. | 6 | * firmware based USB peripherals. |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #ifndef __LINUX_USB_CDC_H | ||
| 10 | #define __LINUX_USB_CDC_H | ||
| 11 | |||
| 9 | #define USB_CDC_SUBCLASS_ACM 0x02 | 12 | #define USB_CDC_SUBCLASS_ACM 0x02 |
| 10 | #define USB_CDC_SUBCLASS_ETHERNET 0x06 | 13 | #define USB_CDC_SUBCLASS_ETHERNET 0x06 |
| 11 | #define USB_CDC_SUBCLASS_WHCM 0x08 | 14 | #define USB_CDC_SUBCLASS_WHCM 0x08 |
| @@ -221,3 +224,4 @@ struct usb_cdc_notification { | |||
| 221 | __le16 wLength; | 224 | __le16 wLength; |
| 222 | } __attribute__ ((packed)); | 225 | } __attribute__ ((packed)); |
| 223 | 226 | ||
| 227 | #endif /* __LINUX_USB_CDC_H */ | ||
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 6169438ec5a2..7e0d3084f76c 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h | |||
| @@ -66,8 +66,8 @@ | |||
| 66 | #define USB_RECIP_ENDPOINT 0x02 | 66 | #define USB_RECIP_ENDPOINT 0x02 |
| 67 | #define USB_RECIP_OTHER 0x03 | 67 | #define USB_RECIP_OTHER 0x03 |
| 68 | /* From Wireless USB 1.0 */ | 68 | /* From Wireless USB 1.0 */ |
| 69 | #define USB_RECIP_PORT 0x04 | 69 | #define USB_RECIP_PORT 0x04 |
| 70 | #define USB_RECIP_RPIPE 0x05 | 70 | #define USB_RECIP_RPIPE 0x05 |
| 71 | 71 | ||
| 72 | /* | 72 | /* |
| 73 | * Standard requests, for the bRequest field of a SETUP packet. | 73 | * Standard requests, for the bRequest field of a SETUP packet. |
| @@ -102,10 +102,16 @@ | |||
| 102 | #define USB_REQ_LOOPBACK_DATA_READ 0x16 | 102 | #define USB_REQ_LOOPBACK_DATA_READ 0x16 |
| 103 | #define USB_REQ_SET_INTERFACE_DS 0x17 | 103 | #define USB_REQ_SET_INTERFACE_DS 0x17 |
| 104 | 104 | ||
| 105 | /* The Link Power Mangement (LPM) ECN defines USB_REQ_TEST_AND_SET command, | ||
| 106 | * used by hubs to put ports into a new L1 suspend state, except that it | ||
| 107 | * forgot to define its number ... | ||
| 108 | */ | ||
| 109 | |||
| 105 | /* | 110 | /* |
| 106 | * USB feature flags are written using USB_REQ_{CLEAR,SET}_FEATURE, and | 111 | * USB feature flags are written using USB_REQ_{CLEAR,SET}_FEATURE, and |
| 107 | * are read as a bit array returned by USB_REQ_GET_STATUS. (So there | 112 | * are read as a bit array returned by USB_REQ_GET_STATUS. (So there |
| 108 | * are at most sixteen features of each type.) | 113 | * are at most sixteen features of each type.) Hubs may also support a |
| 114 | * new USB_REQ_TEST_AND_SET_FEATURE to put ports into L1 suspend. | ||
| 109 | */ | 115 | */ |
| 110 | #define USB_DEVICE_SELF_POWERED 0 /* (read only) */ | 116 | #define USB_DEVICE_SELF_POWERED 0 /* (read only) */ |
| 111 | #define USB_DEVICE_REMOTE_WAKEUP 1 /* dev may initiate wakeup */ | 117 | #define USB_DEVICE_REMOTE_WAKEUP 1 /* dev may initiate wakeup */ |
| @@ -180,6 +186,7 @@ struct usb_ctrlrequest { | |||
| 180 | #define USB_DT_WIRELESS_ENDPOINT_COMP 0x11 | 186 | #define USB_DT_WIRELESS_ENDPOINT_COMP 0x11 |
| 181 | #define USB_DT_WIRE_ADAPTER 0x21 | 187 | #define USB_DT_WIRE_ADAPTER 0x21 |
| 182 | #define USB_DT_RPIPE 0x22 | 188 | #define USB_DT_RPIPE 0x22 |
| 189 | #define USB_DT_CS_RADIO_CONTROL 0x23 | ||
| 183 | 190 | ||
| 184 | /* Conventional codes for class-specific descriptors. The convention is | 191 | /* Conventional codes for class-specific descriptors. The convention is |
| 185 | * defined in the USB "Common Class" Spec (3.11). Individual class specs | 192 | * defined in the USB "Common Class" Spec (3.11). Individual class specs |
| @@ -574,7 +581,9 @@ enum usb_device_state { | |||
| 574 | /* NOTE: there are actually four different SUSPENDED | 581 | /* NOTE: there are actually four different SUSPENDED |
| 575 | * states, returning to POWERED, DEFAULT, ADDRESS, or | 582 | * states, returning to POWERED, DEFAULT, ADDRESS, or |
| 576 | * CONFIGURED respectively when SOF tokens flow again. | 583 | * CONFIGURED respectively when SOF tokens flow again. |
| 584 | * At this level there's no difference between L1 and L2 | ||
| 585 | * suspend states. (L2 being original USB 1.1 suspend.) | ||
| 577 | */ | 586 | */ |
| 578 | }; | 587 | }; |
| 579 | 588 | ||
| 580 | #endif /* __LINUX_USB_CH9_H */ | 589 | #endif /* __LINUX_USB_CH9_H */ |
diff --git a/include/linux/usb/g_printer.h b/include/linux/usb/g_printer.h index 0c5ea1e3eb98..6178fde50f74 100644 --- a/include/linux/usb/g_printer.h +++ b/include/linux/usb/g_printer.h | |||
| @@ -18,6 +18,8 @@ | |||
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | */ | 19 | */ |
| 20 | 20 | ||
| 21 | #ifndef __LINUX_USB_G_PRINTER_H | ||
| 22 | #define __LINUX_USB_G_PRINTER_H | ||
| 21 | 23 | ||
| 22 | #define PRINTER_NOT_ERROR 0x08 | 24 | #define PRINTER_NOT_ERROR 0x08 |
| 23 | #define PRINTER_SELECTED 0x10 | 25 | #define PRINTER_SELECTED 0x10 |
| @@ -29,3 +31,5 @@ | |||
| 29 | */ | 31 | */ |
| 30 | #define GADGET_GET_PRINTER_STATUS _IOR('g', 0x21, unsigned char) | 32 | #define GADGET_GET_PRINTER_STATUS _IOR('g', 0x21, unsigned char) |
| 31 | #define GADGET_SET_PRINTER_STATUS _IOWR('g', 0x22, unsigned char) | 33 | #define GADGET_SET_PRINTER_STATUS _IOWR('g', 0x22, unsigned char) |
| 34 | |||
| 35 | #endif /* __LINUX_USB_G_PRINTER_H */ | ||
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index f3295296b435..d8128f7102c9 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
| @@ -846,4 +846,4 @@ extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *, | |||
| 846 | 846 | ||
| 847 | extern void usb_ep_autoconfig_reset(struct usb_gadget *) __devinit; | 847 | extern void usb_ep_autoconfig_reset(struct usb_gadget *) __devinit; |
| 848 | 848 | ||
| 849 | #endif /* __LINUX_USB_GADGET_H */ | 849 | #endif /* __LINUX_USB_GADGET_H */ |
diff --git a/include/linux/usb/gadgetfs.h b/include/linux/usb/gadgetfs.h index c291ab1af747..ea45f265ec05 100644 --- a/include/linux/usb/gadgetfs.h +++ b/include/linux/usb/gadgetfs.h | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | #ifndef __LINUX_USB_GADGETFS_H | ||
| 2 | #define __LINUX_USB_GADGETFS_H | ||
| 3 | |||
| 4 | #include <asm/types.h> | ||
| 5 | #include <asm/ioctl.h> | ||
| 6 | |||
| 7 | #include <linux/usb/ch9.h> | ||
| 8 | |||
| 9 | /* | 1 | /* |
| 10 | * Filesystem based user-mode API to USB Gadget controller hardware | 2 | * Filesystem based user-mode API to USB Gadget controller hardware |
| 11 | * | 3 | * |
| @@ -23,6 +15,14 @@ | |||
| 23 | * then performing data transfers by reading or writing. | 15 | * then performing data transfers by reading or writing. |
| 24 | */ | 16 | */ |
| 25 | 17 | ||
| 18 | #ifndef __LINUX_USB_GADGETFS_H | ||
| 19 | #define __LINUX_USB_GADGETFS_H | ||
| 20 | |||
| 21 | #include <asm/types.h> | ||
| 22 | #include <asm/ioctl.h> | ||
| 23 | |||
| 24 | #include <linux/usb/ch9.h> | ||
| 25 | |||
| 26 | /* | 26 | /* |
| 27 | * Events are delivered on the ep0 file descriptor, when the user mode driver | 27 | * Events are delivered on the ep0 file descriptor, when the user mode driver |
| 28 | * reads from this file descriptor after writing the descriptors. Don't | 28 | * reads from this file descriptor after writing the descriptors. Don't |
diff --git a/include/linux/usb/input.h b/include/linux/usb/input.h index 716e0cc16043..0e010b220e85 100644 --- a/include/linux/usb/input.h +++ b/include/linux/usb/input.h | |||
| @@ -1,6 +1,3 @@ | |||
| 1 | #ifndef __USB_INPUT_H | ||
| 2 | #define __USB_INPUT_H | ||
| 3 | |||
| 4 | /* | 1 | /* |
| 5 | * Copyright (C) 2005 Dmitry Torokhov | 2 | * Copyright (C) 2005 Dmitry Torokhov |
| 6 | * | 3 | * |
| @@ -9,6 +6,9 @@ | |||
| 9 | * the Free Software Foundation. | 6 | * the Free Software Foundation. |
| 10 | */ | 7 | */ |
| 11 | 8 | ||
| 9 | #ifndef __LINUX_USB_INPUT_H | ||
| 10 | #define __LINUX_USB_INPUT_H | ||
| 11 | |||
| 12 | #include <linux/usb.h> | 12 | #include <linux/usb.h> |
| 13 | #include <linux/input.h> | 13 | #include <linux/input.h> |
| 14 | #include <asm/byteorder.h> | 14 | #include <asm/byteorder.h> |
| @@ -22,4 +22,4 @@ usb_to_input_id(const struct usb_device *dev, struct input_id *id) | |||
| 22 | id->version = le16_to_cpu(dev->descriptor.bcdDevice); | 22 | id->version = le16_to_cpu(dev->descriptor.bcdDevice); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | #endif | 25 | #endif /* __LINUX_USB_INPUT_H */ |
diff --git a/include/linux/usb/iowarrior.h b/include/linux/usb/iowarrior.h index de6f380e17a2..4fd6513d564c 100644 --- a/include/linux/usb/iowarrior.h +++ b/include/linux/usb/iowarrior.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #ifndef _IOWARRIOR_H_ | 1 | #ifndef __LINUX_USB_IOWARRIOR_H |
| 2 | #define _IOWARRIOR_H_ | 2 | #define __LINUX_USB_IOWARRIOR_H |
| 3 | 3 | ||
| 4 | #define CODEMERCS_MAGIC_NUMBER 0xC0 /* like COde Mercenaries */ | 4 | #define CODEMERCS_MAGIC_NUMBER 0xC0 /* like COde Mercenaries */ |
| 5 | 5 | ||
| @@ -39,4 +39,4 @@ struct iowarrior_info { | |||
| 39 | */ | 39 | */ |
| 40 | #define IOW_GETINFO _IOR(CODEMERCS_MAGIC_NUMBER, 3, struct iowarrior_info) | 40 | #define IOW_GETINFO _IOR(CODEMERCS_MAGIC_NUMBER, 3, struct iowarrior_info) |
| 41 | 41 | ||
| 42 | #endif /* _IOWARRIOR_H_ */ | 42 | #endif /* __LINUX_USB_IOWARRIOR_H */ |
diff --git a/include/linux/usb/isp116x.h b/include/linux/usb/isp116x.h index 67d2826f34fe..96ca114e88d0 100644 --- a/include/linux/usb/isp116x.h +++ b/include/linux/usb/isp116x.h | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | |||
| 2 | /* | 1 | /* |
| 3 | * Board initialization code should put one of these into dev->platform_data | 2 | * Board initialization code should put one of these into dev->platform_data |
| 4 | * and place the isp116x onto platform_bus. | 3 | * and place the isp116x onto platform_bus. |
| 5 | */ | 4 | */ |
| 6 | 5 | ||
| 6 | #ifndef __LINUX_USB_ISP116X_H | ||
| 7 | #define __LINUX_USB_ISP116X_H | ||
| 8 | |||
| 7 | struct isp116x_platform_data { | 9 | struct isp116x_platform_data { |
| 8 | /* Enable internal resistors on downstream ports */ | 10 | /* Enable internal resistors on downstream ports */ |
| 9 | unsigned sel15Kres:1; | 11 | unsigned sel15Kres:1; |
| @@ -27,3 +29,5 @@ struct isp116x_platform_data { | |||
| 27 | */ | 29 | */ |
| 28 | void (*delay) (struct device *dev, int delay); | 30 | void (*delay) (struct device *dev, int delay); |
| 29 | }; | 31 | }; |
| 32 | |||
| 33 | #endif /* __LINUX_USB_ISP116X_H */ | ||
diff --git a/include/linux/usb/midi.h b/include/linux/usb/midi.h index 80624c562921..1d1040865661 100644 --- a/include/linux/usb/midi.h +++ b/include/linux/usb/midi.h | |||
| @@ -109,4 +109,4 @@ struct usb_ms_endpoint_descriptor_##n { \ | |||
| 109 | __u8 baAssocJackID[n]; \ | 109 | __u8 baAssocJackID[n]; \ |
| 110 | } __attribute__ ((packed)) | 110 | } __attribute__ ((packed)) |
| 111 | 111 | ||
| 112 | #endif | 112 | #endif /* __LINUX_USB_MIDI_H */ |
diff --git a/include/linux/usb/net2280.h b/include/linux/usb/net2280.h index ec897cb844ab..96ca549a778d 100644 --- a/include/linux/usb/net2280.h +++ b/include/linux/usb/net2280.h | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * NetChip 2280 high/full speed USB device controller. | 2 | * NetChip 2280 high/full speed USB device controller. |
| 3 | * Unlike many such controllers, this one talks PCI. | 3 | * Unlike many such controllers, this one talks PCI. |
| 4 | */ | 4 | * |
| 5 | #ifndef __LINUX_USB_NET2280_H | ||
| 6 | #define __LINUX_USB_NET2280_H | ||
| 7 | |||
| 8 | /* | ||
| 9 | * Copyright (C) 2002 NetChip Technology, Inc. (http://www.netchip.com) | 5 | * Copyright (C) 2002 NetChip Technology, Inc. (http://www.netchip.com) |
| 10 | * Copyright (C) 2003 David Brownell | 6 | * Copyright (C) 2003 David Brownell |
| 11 | * | 7 | * |
| @@ -24,6 +20,9 @@ | |||
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 | */ | 21 | */ |
| 26 | 22 | ||
| 23 | #ifndef __LINUX_USB_NET2280_H | ||
| 24 | #define __LINUX_USB_NET2280_H | ||
| 25 | |||
| 27 | /*-------------------------------------------------------------------------*/ | 26 | /*-------------------------------------------------------------------------*/ |
| 28 | 27 | ||
| 29 | /* NET2280 MEMORY MAPPED REGISTERS | 28 | /* NET2280 MEMORY MAPPED REGISTERS |
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h index e007074ebe41..1db25d152ad8 100644 --- a/include/linux/usb/otg.h +++ b/include/linux/usb/otg.h | |||
| @@ -1,11 +1,13 @@ | |||
| 1 | /* USB OTG (On The Go) defines */ | 1 | /* USB OTG (On The Go) defines */ |
| 2 | |||
| 3 | /* | 2 | /* |
| 3 | * | ||
| 4 | * These APIs may be used between USB controllers. USB device drivers | 4 | * These APIs may be used between USB controllers. USB device drivers |
| 5 | * (for either host or peripheral roles) don't use these calls; they | 5 | * (for either host or peripheral roles) don't use these calls; they |
| 6 | * continue to use just usb_device and usb_gadget. | 6 | * continue to use just usb_device and usb_gadget. |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #ifndef __LINUX_USB_OTG_H | ||
| 10 | #define __LINUX_USB_OTG_H | ||
| 9 | 11 | ||
| 10 | /* OTG defines lots of enumeration states before device reset */ | 12 | /* OTG defines lots of enumeration states before device reset */ |
| 11 | enum usb_otg_state { | 13 | enum usb_otg_state { |
| @@ -129,3 +131,5 @@ otg_start_srp(struct otg_transceiver *otg) | |||
| 129 | 131 | ||
| 130 | /* for OTG controller drivers (and maybe other stuff) */ | 132 | /* for OTG controller drivers (and maybe other stuff) */ |
| 131 | extern int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num); | 133 | extern int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num); |
| 134 | |||
| 135 | #endif /* __LINUX_USB_OTG_H */ | ||
diff --git a/include/linux/usb/quirks.h b/include/linux/usb/quirks.h index 1f999ec8d08c..7f6c603db654 100644 --- a/include/linux/usb/quirks.h +++ b/include/linux/usb/quirks.h | |||
| @@ -4,6 +4,9 @@ | |||
| 4 | * belong here. | 4 | * belong here. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #ifndef __LINUX_USB_QUIRKS_H | ||
| 8 | #define __LINUX_USB_QUIRKS_H | ||
| 9 | |||
| 7 | /* string descriptors must not be fetched using a 255-byte read */ | 10 | /* string descriptors must not be fetched using a 255-byte read */ |
| 8 | #define USB_QUIRK_STRING_FETCH_255 0x00000001 | 11 | #define USB_QUIRK_STRING_FETCH_255 0x00000001 |
| 9 | 12 | ||
| @@ -12,3 +15,5 @@ | |||
| 12 | 15 | ||
| 13 | /* device can't handle Set-Interface requests */ | 16 | /* device can't handle Set-Interface requests */ |
| 14 | #define USB_QUIRK_NO_SET_INTF 0x00000004 | 17 | #define USB_QUIRK_NO_SET_INTF 0x00000004 |
| 18 | |||
| 19 | #endif /* __LINUX_USB_QUIRKS_H */ | ||
diff --git a/include/linux/usb/rndis_host.h b/include/linux/usb/rndis_host.h index edc1d4a0e272..29d6458ecb8d 100644 --- a/include/linux/usb/rndis_host.h +++ b/include/linux/usb/rndis_host.h | |||
| @@ -17,10 +17,8 @@ | |||
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | 20 | #ifndef __LINUX_USB_RNDIS_HOST_H | |
| 21 | #ifndef __RNDIS_HOST_H | 21 | #define __LINUX_USB_RNDIS_HOST_H |
| 22 | #define __RNDIS_HOST_H | ||
| 23 | |||
| 24 | 22 | ||
| 25 | /* | 23 | /* |
| 26 | * CONTROL uses CDC "encapsulated commands" with funky notifications. | 24 | * CONTROL uses CDC "encapsulated commands" with funky notifications. |
| @@ -270,5 +268,4 @@ extern int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb); | |||
| 270 | extern struct sk_buff * | 268 | extern struct sk_buff * |
| 271 | rndis_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags); | 269 | rndis_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags); |
| 272 | 270 | ||
| 273 | #endif /* __RNDIS_HOST_H */ | 271 | #endif /* __LINUX_USB_RNDIS_HOST_H */ |
| 274 | |||
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 21b4a1c6f585..8f891cbaf9ab 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | * | 10 | * |
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | |||
| 14 | #ifndef __LINUX_USB_SERIAL_H | 13 | #ifndef __LINUX_USB_SERIAL_H |
| 15 | #define __LINUX_USB_SERIAL_H | 14 | #define __LINUX_USB_SERIAL_H |
| 16 | 15 | ||
| @@ -146,8 +145,6 @@ struct usb_serial { | |||
| 146 | }; | 145 | }; |
| 147 | #define to_usb_serial(d) container_of(d, struct usb_serial, kref) | 146 | #define to_usb_serial(d) container_of(d, struct usb_serial, kref) |
| 148 | 147 | ||
| 149 | #define NUM_DONT_CARE 99 | ||
| 150 | |||
| 151 | /* get and set the serial private data pointer helper functions */ | 148 | /* get and set the serial private data pointer helper functions */ |
| 152 | static inline void *usb_get_serial_data(struct usb_serial *serial) | 149 | static inline void *usb_get_serial_data(struct usb_serial *serial) |
| 153 | { | 150 | { |
| @@ -165,18 +162,6 @@ static inline void usb_set_serial_data(struct usb_serial *serial, void *data) | |||
| 165 | * used in the syslog messages when a device is inserted or removed. | 162 | * used in the syslog messages when a device is inserted or removed. |
| 166 | * @id_table: pointer to a list of usb_device_id structures that define all | 163 | * @id_table: pointer to a list of usb_device_id structures that define all |
| 167 | * of the devices this structure can support. | 164 | * of the devices this structure can support. |
| 168 | * @num_interrupt_in: If a device doesn't have this many interrupt-in | ||
| 169 | * endpoints, it won't be sent to the driver's attach() method. | ||
| 170 | * (But it might still be sent to the probe() method.) | ||
| 171 | * @num_interrupt_out: If a device doesn't have this many interrupt-out | ||
| 172 | * endpoints, it won't be sent to the driver's attach() method. | ||
| 173 | * (But it might still be sent to the probe() method.) | ||
| 174 | * @num_bulk_in: If a device doesn't have this many bulk-in | ||
| 175 | * endpoints, it won't be sent to the driver's attach() method. | ||
| 176 | * (But it might still be sent to the probe() method.) | ||
| 177 | * @num_bulk_out: If a device doesn't have this many bulk-out | ||
| 178 | * endpoints, it won't be sent to the driver's attach() method. | ||
| 179 | * (But it might still be sent to the probe() method.) | ||
| 180 | * @num_ports: the number of different ports this device will have. | 165 | * @num_ports: the number of different ports this device will have. |
| 181 | * @calc_num_ports: pointer to a function to determine how many ports this | 166 | * @calc_num_ports: pointer to a function to determine how many ports this |
| 182 | * device has dynamically. It will be called after the probe() | 167 | * device has dynamically. It will be called after the probe() |
| @@ -212,10 +197,6 @@ static inline void usb_set_serial_data(struct usb_serial *serial, void *data) | |||
| 212 | struct usb_serial_driver { | 197 | struct usb_serial_driver { |
| 213 | const char *description; | 198 | const char *description; |
| 214 | const struct usb_device_id *id_table; | 199 | const struct usb_device_id *id_table; |
| 215 | char num_interrupt_in; | ||
| 216 | char num_interrupt_out; | ||
| 217 | char num_bulk_in; | ||
| 218 | char num_bulk_out; | ||
| 219 | char num_ports; | 200 | char num_ports; |
| 220 | 201 | ||
| 221 | struct list_head driver_list; | 202 | struct list_head driver_list; |
| @@ -340,5 +321,5 @@ static inline void usb_serial_debug_data(int debug, | |||
| 340 | 321 | ||
| 341 | 322 | ||
| 342 | 323 | ||
| 343 | #endif /* ifdef __LINUX_USB_SERIAL_H */ | 324 | #endif /* __LINUX_USB_SERIAL_H */ |
| 344 | 325 | ||
diff --git a/include/linux/usb/sl811.h b/include/linux/usb/sl811.h index 877373da410d..3afe4d16fcef 100644 --- a/include/linux/usb/sl811.h +++ b/include/linux/usb/sl811.h | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | |||
| 2 | /* | 1 | /* |
| 3 | * board initialization should put one of these into dev->platform_data | 2 | * board initialization should put one of these into dev->platform_data |
| 4 | * and place the sl811hs onto platform_bus named "sl811-hcd". | 3 | * and place the sl811hs onto platform_bus named "sl811-hcd". |
| 5 | */ | 4 | */ |
| 6 | 5 | ||
| 6 | #ifndef __LINUX_USB_SL811_H | ||
| 7 | #define __LINUX_USB_SL811_H | ||
| 8 | |||
| 7 | struct sl811_platform_data { | 9 | struct sl811_platform_data { |
| 8 | unsigned can_wakeup:1; | 10 | unsigned can_wakeup:1; |
| 9 | 11 | ||
| @@ -24,3 +26,4 @@ struct sl811_platform_data { | |||
| 24 | /* void (*clock_enable)(struct device *dev, int is_on); */ | 26 | /* void (*clock_enable)(struct device *dev, int is_on); */ |
| 25 | }; | 27 | }; |
| 26 | 28 | ||
| 29 | #endif /* __LINUX_USB_SL811_H */ | ||
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index e0501da3dd11..ba09fe88adda 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h | |||
| @@ -19,10 +19,8 @@ | |||
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | 22 | #ifndef __LINUX_USB_USBNET_H | |
| 23 | #ifndef __USBNET_H | 23 | #define __LINUX_USB_USBNET_H |
| 24 | #define __USBNET_H | ||
| 25 | |||
| 26 | 24 | ||
| 27 | /* interface from usbnet core to each USB networking link we handle */ | 25 | /* interface from usbnet core to each USB networking link we handle */ |
| 28 | struct usbnet { | 26 | struct usbnet { |
| @@ -211,4 +209,4 @@ extern int usbnet_nway_reset(struct net_device *net); | |||
| 211 | printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net->name , ## arg); \ | 209 | printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net->name , ## arg); \ |
| 212 | 210 | ||
| 213 | 211 | ||
| 214 | #endif /* __USBNET_H */ | 212 | #endif /* __LINUX_USB_USBNET_H */ |
diff --git a/include/linux/usb_usual.h b/include/linux/usb_usual.h index 0a40dfa44c9f..d9a3bbe38e6b 100644 --- a/include/linux/usb_usual.h +++ b/include/linux/usb_usual.h | |||
| @@ -85,6 +85,7 @@ enum { US_DO_ALL_FLAGS }; | |||
| 85 | #define US_SC_LOCKABLE 0x07 /* Password-protected */ | 85 | #define US_SC_LOCKABLE 0x07 /* Password-protected */ |
| 86 | 86 | ||
| 87 | #define US_SC_ISD200 0xf0 /* ISD200 ATA */ | 87 | #define US_SC_ISD200 0xf0 /* ISD200 ATA */ |
| 88 | #define US_SC_CYP_ATACB 0xf1 /* Cypress ATACB */ | ||
| 88 | #define US_SC_DEVICE 0xff /* Use device's value */ | 89 | #define US_SC_DEVICE 0xff /* Use device's value */ |
| 89 | 90 | ||
| 90 | /* Protocols */ | 91 | /* Protocols */ |
diff --git a/include/linux/usbdevice_fs.h b/include/linux/usbdevice_fs.h index 17cb108b7db0..3118ede2c67b 100644 --- a/include/linux/usbdevice_fs.h +++ b/include/linux/usbdevice_fs.h | |||
| @@ -77,8 +77,11 @@ struct usbdevfs_connectinfo { | |||
| 77 | unsigned char slow; | 77 | unsigned char slow; |
| 78 | }; | 78 | }; |
| 79 | 79 | ||
| 80 | #define USBDEVFS_URB_SHORT_NOT_OK 1 | 80 | #define USBDEVFS_URB_SHORT_NOT_OK 0x01 |
| 81 | #define USBDEVFS_URB_ISO_ASAP 2 | 81 | #define USBDEVFS_URB_ISO_ASAP 0x02 |
| 82 | #define USBDEVFS_URB_NO_FSBR 0x20 | ||
| 83 | #define USBDEVFS_URB_ZERO_PACKET 0x40 | ||
| 84 | #define USBDEVFS_URB_NO_INTERRUPT 0x80 | ||
| 82 | 85 | ||
| 83 | #define USBDEVFS_URB_TYPE_ISO 0 | 86 | #define USBDEVFS_URB_TYPE_ISO 0 |
| 84 | #define USBDEVFS_URB_TYPE_INTERRUPT 1 | 87 | #define USBDEVFS_URB_TYPE_INTERRUPT 1 |
