Changeset 4e732f1a in mainline for uspace/drv/bus/usb


Ignore:
Timestamp:
2014-01-24T02:10:16Z (12 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.

Location:
uspace/drv/bus/usb
Files:
3 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) |
  • uspace/drv/bus/usb/ehci/hw_struct/queue_head.h

    r3de7a62 r4e732f1a  
    3939#include <usb/host/endpoint.h>
    4040
     41#include "../utils/malloc32.h"
    4142#include "link_pointer.h"
    4243#include "mem_access.h"
  • uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c

    r3de7a62 r4e732f1a  
    6363{
    6464        assert(instance);
    65         memset(instance, 0, sizeof(ed_t));
     65        memset(instance, 0, sizeof(*instance));
    6666
    6767        if (ep == NULL) {
Note: See TracChangeset for help on using the changeset viewer.