Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/iface.c

    ra1313b8c rc61338a  
    128128}
    129129/*----------------------------------------------------------------------------*/
    130 static int register_endpoint(
    131     ddf_fun_t *fun, usb_address_t address, usb_endpoint_t endpoint,
    132     usb_transfer_type_t transfer_type, usb_direction_t direction,
    133     size_t max_packet_size, unsigned int interval)
    134 {
    135         hc_t *hc = fun_to_hc(fun);
    136         assert(hc);
    137         const usb_speed_t speed =
    138             usb_device_keeper_get_speed(&hc->manager, address);
    139         size_t size = max_packet_size;
    140 
    141         usb_log_debug("Register endpoint %d:%d %s %s(%d) %zu(%zu) %u.\n",
    142             address, endpoint, usb_str_transfer_type(transfer_type),
    143             usb_str_speed(speed), direction, size, max_packet_size, interval);
    144         return bandwidth_reserve(&hc->bandwidth, address, endpoint, direction,
    145             speed, transfer_type, max_packet_size, size, interval);
    146 }
    147 /*----------------------------------------------------------------------------*/
    148 static int unregister_endpoint(
    149     ddf_fun_t *fun, usb_address_t address,
    150     usb_endpoint_t endpoint, usb_direction_t direction)
    151 {
    152         hc_t *hc = fun_to_hc(fun);
    153         assert(hc);
    154         usb_log_debug("Unregister endpoint %d:%d %d.\n",
    155             address, endpoint, direction);
    156         return bandwidth_release(&hc->bandwidth, address, endpoint, direction);
    157 }
    158 /*----------------------------------------------------------------------------*/
    159130/** Interrupt out transaction interface function
    160131 *
     
    394365        .release_address = release_address,
    395366
    396         .register_endpoint = register_endpoint,
    397         .unregister_endpoint = unregister_endpoint,
    398 
    399367        .interrupt_out = interrupt_out,
    400368        .interrupt_in = interrupt_in,
Note: See TracChangeset for help on using the changeset viewer.