Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/endpoint.c

    r9d58539 r0ee999d  
    5050endpoint_t * endpoint_create(usb_address_t address, usb_endpoint_t endpoint,
    5151    usb_direction_t direction, usb_transfer_type_t type, usb_speed_t speed,
    52     size_t max_packet_size, size_t bw)
     52    size_t max_packet_size, size_t bw, usb_address_t tt_address, unsigned tt_p)
    5353{
    5454        endpoint_t *instance = malloc(sizeof(endpoint_t));
     
    6363                instance->toggle = 0;
    6464                instance->active = false;
     65                instance->tt.address = tt_address;
     66                instance->tt.port = tt_p;
    6567                instance->hc_data.data = NULL;
    6668                instance->hc_data.toggle_get = NULL;
     
    7274        return instance;
    7375}
    74 /*----------------------------------------------------------------------------*/
     76
    7577/** Properly dispose of endpoint_t structure.
    7678 * @param instance endpoint_t structure.
     
    8486        free(instance);
    8587}
    86 /*----------------------------------------------------------------------------*/
     88
    8789/** Set device specific data and hooks.
    8890 * @param instance endpoint_t structure.
     
    101103        fibril_mutex_unlock(&instance->guard);
    102104}
    103 /*----------------------------------------------------------------------------*/
     105
    104106/** Clear device specific data and hooks.
    105107 * @param instance endpoint_t structure.
     
    115117        fibril_mutex_unlock(&instance->guard);
    116118}
    117 /*----------------------------------------------------------------------------*/
     119
    118120/** Mark the endpoint as active and block access for further fibrils.
    119121 * @param instance endpoint_t structure.
     
    128130        fibril_mutex_unlock(&instance->guard);
    129131}
    130 /*----------------------------------------------------------------------------*/
     132
    131133/** Mark the endpoint as inactive and allow access for further fibrils.
    132134 * @param instance endpoint_t structure.
     
    140142        fibril_condvar_signal(&instance->avail);
    141143}
    142 /*----------------------------------------------------------------------------*/
     144
    143145/** Get the value of toggle bit.
    144146 * @param instance endpoint_t structure.
     
    156158        return ret;
    157159}
    158 /*----------------------------------------------------------------------------*/
     160
    159161/** Set the value of toggle bit.
    160162 * @param instance endpoint_t structure.
Note: See TracChangeset for help on using the changeset viewer.