Changeset a5b3de6 in mainline for uspace/lib/usbhost/include


Ignore:
Timestamp:
2017-10-25T11:55:15Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2b35478
Parents:
c3d926f3
Message:

usbhost endpoint: removed target

The reasons for having usb_target_t inside endpoint have been dismissed. Enpoint is not a target of a transaction, so this was just misleading.

Location:
uspace/lib/usbhost/include/usb/host
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/endpoint.h

    rc3d926f3 ra5b3de6  
    6060        /** USB device */
    6161        device_t *device;
    62         /** USB address. */
    63         usb_target_t target;
     62        /** Enpoint number */
     63        usb_endpoint_t endpoint;
    6464        /** Communication direction. */
    6565        usb_direction_t direction;
     
    108108        return item ? list_get_instance(item, endpoint_t, link) : NULL;
    109109}
     110
    110111#endif
    111112
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    rc3d926f3 ra5b3de6  
    5555/** Structure stores additional data needed for communication with EP */
    5656typedef struct usb_transfer_batch {
     57        /** Target for communication */
     58        usb_target_t target;
     59
    5760        /** Endpoint used for communication */
    5861        endpoint_t *ep;
     62
    5963        /** Size reported to be sent */
    6064        size_t expected_size;
     
    96100 */
    97101#define USB_TRANSFER_BATCH_ARGS(batch) \
    98         (batch).ep->target.address, (batch).ep->target.endpoint, \
     102        (batch).target.address, (batch).target.endpoint, \
    99103        usb_str_speed((batch).ep->speed), \
    100104        usb_str_transfer_type_short((batch).ep->transfer_type), \
Note: See TracChangeset for help on using the changeset viewer.