mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[usb] Add USB_INTERRUPT_OUT internal type
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -265,7 +265,8 @@ int usb_endpoint_described ( struct usb_endpoint *ep,
|
||||
burst = ( descx ? descx->burst : USB_ENDPOINT_BURST ( sizes ) );
|
||||
|
||||
/* Calculate interval */
|
||||
if ( type == USB_INTERRUPT ) {
|
||||
if ( ( type & USB_ENDPOINT_ATTR_TYPE_MASK ) ==
|
||||
USB_ENDPOINT_ATTR_INTERRUPT ) {
|
||||
if ( port->speed >= USB_SPEED_HIGH ) {
|
||||
/* 2^(desc->interval-1) is a microframe count */
|
||||
interval = ( 1 << ( desc->interval - 1 ) );
|
||||
|
||||
Reference in New Issue
Block a user