Changeset 4ca18ae in mainline


Ignore:
Timestamp:
2011-04-06T22:21:12Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
87305bb
Parents:
f567bcf
Message:

Drop usage of deprecated deice-keeper_t toggle interface

Location:
uspace/drv/uhci-hcd
Files:
3 edited

Legend:

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

    rf567bcf r4ca18ae  
    4949        td_t *tds;
    5050        size_t transfers;
    51 //      usb_device_keeper_t *manager;
    5251} uhci_batch_t;
    5352
     
    7372 * @param[in] func_out function to call on outbound transaction completion
    7473 * @param[in] arg additional parameter to func_in or func_out
    75  * @param[in] manager Pointer to toggle management structure.
     74 * @param[in] ep Pointer to endpoint toggle management structure.
    7675 * @return Valid pointer if all substructures were successfully created,
    7776 * NULL otherwise.
     
    8685    char* setup_buffer, size_t setup_size,
    8786    usbhc_iface_transfer_in_callback_t func_in,
    88     usbhc_iface_transfer_out_callback_t func_out, void *arg,
    89     usb_device_keeper_t *manager, endpoint_t *ep
     87    usbhc_iface_transfer_out_callback_t func_out, void *arg, endpoint_t *ep
    9088    )
    9189{
     
    115113            "Failed to allocate batch instance.\n");
    116114        bzero(data, sizeof(uhci_batch_t));
    117 //      data->manager = manager;
    118115        instance->private_data = data;
    119116
     
    181178                            instance, i, data->tds[i].status);
    182179                        td_print_status(&data->tds[i]);
    183                         endpoint_toggle_set(instance->ep,
    184                             td_toggle(&data->tds[i]));
    185 /*
    186                         usb_device_keeper_set_toggle(data->manager,
    187                             instance->target, instance->direction,
    188                             td_toggle(&data->tds[i]));
    189 */
     180                        if (instance->ep != NULL)
     181                                endpoint_toggle_set(instance->ep,
     182                                    td_toggle(&data->tds[i]));
    190183                        if (i > 0)
    191184                                goto substract_ret;
     
    315308        const bool low_speed = instance->speed == USB_SPEED_LOW;
    316309        int toggle = endpoint_toggle_get(instance->ep);
    317 //      usb_device_keeper_get_toggle(
    318 //          data->manager, instance->target, instance->direction);
    319310        assert(toggle == 0 || toggle == 1);
    320311
     
    348339        td_set_ioc(&data->tds[transfer - 1]);
    349340        endpoint_toggle_set(instance->ep, toggle);
    350 //      usb_device_keeper_set_toggle(data->manager, instance->target,
    351 //          instance->direction, toggle);
    352341}
    353342/*----------------------------------------------------------------------------*/
  • uspace/drv/uhci-hcd/batch.h

    rf567bcf r4ca18ae  
    5656    usbhc_iface_transfer_out_callback_t func_out,
    5757                void *arg,
    58                 usb_device_keeper_t *manager,
    5958                endpoint_t *ep
    6059                );
  • uspace/drv/uhci-hcd/iface.c

    rf567bcf r4ca18ae  
    246246        usb_transfer_batch_t *batch =
    247247            batch_get(fun, target, ep->transfer_type, ep->max_packet_size,
    248                 ep->speed, data, size, NULL, 0, NULL, callback, arg,
    249                 &hc->manager, ep);
     248                ep->speed, data, size, NULL, 0, NULL, callback, arg, ep);
    250249        if (!batch)
    251250                return ENOMEM;
     
    305304        usb_transfer_batch_t *batch =
    306305            batch_get(fun, target, ep->transfer_type, ep->max_packet_size,
    307                 ep->speed, data, size, NULL, 0, callback, NULL, arg,
    308                 &hc->manager, ep);
     306                ep->speed, data, size, NULL, 0, callback, NULL, arg, ep);
    309307        if (!batch)
    310308                return ENOMEM;
     
    353351        usb_transfer_batch_t *batch =
    354352            batch_get(fun, target, ep->transfer_type, ep->max_packet_size,
    355                 ep->speed, data, size, NULL, 0, NULL, callback, arg,
    356                 &hc->manager, ep);
     353                ep->speed, data, size, NULL, 0, NULL, callback, arg, ep);
    357354        if (!batch)
    358355                return ENOMEM;
     
    400397        usb_transfer_batch_t *batch =
    401398            batch_get(fun, target, ep->transfer_type, ep->max_packet_size,
    402                 ep->speed, data, size, NULL, 0, callback, NULL, arg,
    403                 &hc->manager, ep);
     399                ep->speed, data, size, NULL, 0, callback, NULL, arg, ep);
    404400        if (!batch)
    405401                return ENOMEM;
     
    449445        usb_transfer_batch_t *batch =
    450446            batch_get(fun, target, USB_TRANSFER_CONTROL, max_packet_size, speed,
    451                 data, size, setup_data, setup_size, NULL, callback, arg,
    452                 &hc->manager, ep);
     447                data, size, setup_data, setup_size, NULL, callback, arg, ep);
    453448        if (!batch)
    454449                return ENOMEM;
     
    496491        usb_transfer_batch_t *batch =
    497492            batch_get(fun, target, USB_TRANSFER_CONTROL, max_packet_size, speed,
    498                 data, size, setup_data, setup_size, callback, NULL, arg,
    499                 &hc->manager, ep);
     493                data, size, setup_data, setup_size, callback, NULL, arg, ep);
    500494        if (!batch)
    501495                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.