diff options
author | Daniel Mack <zonque@gmail.com> | 2011-09-12 12:54:10 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-09-14 11:06:47 -0400 |
commit | 00137425fe5892e6e531ffee6bf5f108d823b70f (patch) | |
tree | 8a7ea40868142944c5eacf8a9d7af6e8d5aa7b1c /include/linux/usb | |
parent | dba8b46992c55946d3b092934f581a343403118f (diff) |
USB: Add endpoint usage definitions to ch9.h
The endpoint usage field is described in the USB 2.0 specification,
chapter 9.6.6.
Also, move the sync type fields block down by some lines to reflect the
fact that these are also stuffed in bmAttributes.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ch9.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 0fd3fbdd8283..f30253599501 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h | |||
@@ -377,12 +377,6 @@ struct usb_endpoint_descriptor { | |||
377 | #define USB_ENDPOINT_NUMBER_MASK 0x0f /* in bEndpointAddress */ | 377 | #define USB_ENDPOINT_NUMBER_MASK 0x0f /* in bEndpointAddress */ |
378 | #define USB_ENDPOINT_DIR_MASK 0x80 | 378 | #define USB_ENDPOINT_DIR_MASK 0x80 |
379 | 379 | ||
380 | #define USB_ENDPOINT_SYNCTYPE 0x0c | ||
381 | #define USB_ENDPOINT_SYNC_NONE (0 << 2) | ||
382 | #define USB_ENDPOINT_SYNC_ASYNC (1 << 2) | ||
383 | #define USB_ENDPOINT_SYNC_ADAPTIVE (2 << 2) | ||
384 | #define USB_ENDPOINT_SYNC_SYNC (3 << 2) | ||
385 | |||
386 | #define USB_ENDPOINT_XFERTYPE_MASK 0x03 /* in bmAttributes */ | 380 | #define USB_ENDPOINT_XFERTYPE_MASK 0x03 /* in bmAttributes */ |
387 | #define USB_ENDPOINT_XFER_CONTROL 0 | 381 | #define USB_ENDPOINT_XFER_CONTROL 0 |
388 | #define USB_ENDPOINT_XFER_ISOC 1 | 382 | #define USB_ENDPOINT_XFER_ISOC 1 |
@@ -390,6 +384,17 @@ struct usb_endpoint_descriptor { | |||
390 | #define USB_ENDPOINT_XFER_INT 3 | 384 | #define USB_ENDPOINT_XFER_INT 3 |
391 | #define USB_ENDPOINT_MAX_ADJUSTABLE 0x80 | 385 | #define USB_ENDPOINT_MAX_ADJUSTABLE 0x80 |
392 | 386 | ||
387 | #define USB_ENDPOINT_SYNCTYPE 0x0c | ||
388 | #define USB_ENDPOINT_SYNC_NONE (0 << 2) | ||
389 | #define USB_ENDPOINT_SYNC_ASYNC (1 << 2) | ||
390 | #define USB_ENDPOINT_SYNC_ADAPTIVE (2 << 2) | ||
391 | #define USB_ENDPOINT_SYNC_SYNC (3 << 2) | ||
392 | |||
393 | #define USB_ENDPOINT_USAGE_MASK 0x30 | ||
394 | #define USB_ENDPOINT_USAGE_DATA 0x00 | ||
395 | #define USB_ENDPOINT_USAGE_FEEDBACK 0x10 | ||
396 | #define USB_ENDPOINT_USAGE_IMPLICIT_FB 0x20 /* Implicit feedback Data endpoint */ | ||
397 | |||
393 | /*-------------------------------------------------------------------------*/ | 398 | /*-------------------------------------------------------------------------*/ |
394 | 399 | ||
395 | /** | 400 | /** |