Ignore:
Timestamp:
2014-01-24T02:10:16Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
42de21a
Parents:
3de7a62
Message:

usb: Add support for multiple packets per microframe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hw_struct/queue_head.c

    r3de7a62 r4e732f1a  
    7979        }
    8080
    81         // TODO Fix 'multi' 1 packet should be safe. Probably won't work
    82         // without enabling parking mode in async schedule
    8381        // TODO Figure out how to correctly use CMASK and SMASK for LS/FS
    8482        // INT transfers. Current values are just guesses
    85         /* Setting TT stuff on HS endpoints is OK, the fields are ignored */
     83        /* Setting TT stuff on HS endpoints is OK, the fields are ignored,
     84         * and so is setting multi on async (should be 1 anyway)*/
    8685        EHCI_MEM32_WR(instance->ep_cap,
    87             QH_EP_CAP_MULTI_SET(1) |
     86            QH_EP_CAP_MULTI_SET(ep->packets) |
    8887            QH_EP_CAP_TT_PORT_SET(ep->tt.port) |
    8988            QH_EP_CAP_TT_ADDR_SET(ep->tt.address) |
Note: See TracChangeset for help on using the changeset viewer.