]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Add macros for interrupt endpoint types.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 8 May 2012 14:44:01 +0000 (07:44 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 18 May 2012 22:42:02 +0000 (15:42 -0700)
commit7cf3c3005014f1e4dd7fe5b548728824de1b2c1b
tree44981a2e18be90cf52ebe3f4ee1a2c98f060c3eb
parent731101808b6687579de5dd45c04b825fab84d5f0
USB: Add macros for interrupt endpoint types.

The USB 3.0 spec defines a new way of differentiating interrupt
endpoints.  The idea is that some interrupt endpoints are used for
notifications, i.e. they continually NAK the transfer until something
changes on the device.  Other interrupt endpoints are used as a way to
periodically transfer data.

The USB 3.0 endpoint descriptor uses bits 5:4 of bmAttributes for
interrupt endpoints, to define the endpoint as either a Notification
endpoint, or a Periodic endpoint.  Introduce macros to dig out that
information.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
include/linux/usb/ch9.h