[usb] Parse endpoint descriptor bInterval field

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-02-09 23:50:35 +00:00
parent cf153f60a5
commit 17aceb34da
4 changed files with 46 additions and 5 deletions

View File

@@ -806,6 +806,9 @@ enum xhci_endpoint_state {
/** Input endpoint type */
#define XHCI_EP_TYPE_IN XHCI_EP_TYPE ( 4 )
/** Periodic endpoint type */
#define XHCI_EP_TYPE_PERIODIC XHCI_EP_TYPE ( 1 )
/** Endpoint dequeue cycle state */
#define XHCI_EP_DCS 0x00000001UL
@@ -1078,6 +1081,8 @@ struct xhci_endpoint {
unsigned int ctx;
/** Endpoint type */
unsigned int type;
/** Endpoint interval */
unsigned int interval;
/** Endpoint context */
struct xhci_endpoint_context *context;
/** Transfer ring */