Changeset 83c3123 in mainline for uspace/drv/bus/usb/vhc/connhost.c


Ignore:
Timestamp:
2011-10-27T11:40:06Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7265558
Parents:
4267908
Message:

libusbhost: Store bandwidth in endpoint structure.

Remove redundant node_t tructure and use endpoint_t directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/vhc/connhost.c

    r4267908 r83c3123  
    143143        VHC_DATA(vhc, fun);
    144144
    145         endpoint_t *ep = endpoint_get(
    146             address, endpoint, direction, transfer_type, USB_SPEED_FULL, 1);
     145        endpoint_t *ep = endpoint_create(
     146            address, endpoint, direction, transfer_type, USB_SPEED_FULL, 1, 0);
    147147        if (ep == NULL) {
    148148                return ENOMEM;
     
    414414
    415415        endpoint_t *ep = usb_endpoint_manager_get_ep(&vhc->ep_manager,
    416             target.address, target.endpoint, USB_DIRECTION_IN, NULL);
     416            target.address, target.endpoint, USB_DIRECTION_IN);
    417417        if (ep == NULL) {
    418418                return ENOENT;
     
    456456
    457457        endpoint_t *ep = usb_endpoint_manager_get_ep(&vhc->ep_manager,
    458             target.address, target.endpoint, USB_DIRECTION_OUT, NULL);
     458            target.address, target.endpoint, USB_DIRECTION_OUT);
    459459        if (ep == NULL) {
    460460                return ENOENT;
Note: See TracChangeset for help on using the changeset viewer.