Changeset dd7078c in mainline


Ignore:
Timestamp:
2013-09-01T16:16:17Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f03199
Parents:
26e2de3
Message:

ohci: Add additional checks and a TODO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c

    r26e2de3 rdd7078c  
    3333 */
    3434#include "endpoint_descriptor.h"
     35#include "macros.h"
    3536
    3637/** USB direction to OHCI values translation table. */
     
    6162                return;
    6263        }
    63         /* Non-dummy ED must have TD assigned */
     64        /* Non-dummy ED must have corresponding EP and TD assigned */
    6465        assert(td);
     66        assert(ep);
     67        assert(ep->direction < ARRAY_SIZE(dir));
    6568
    6669        /* Status: address, endpoint nr, direction mask and max packet size. */
     
    7780
    7881        /* Isochronous format flag */
     82        // TODO: We need iTD instead of TD for iso transfers
    7983        if (ep->transfer_type == USB_TRANSFER_ISOCHRONOUS)
    8084                OHCI_MEM32_SET(instance->status, ED_STATUS_F_FLAG);
Note: See TracChangeset for help on using the changeset viewer.