Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hub.c

    ra6add7a r357a302  
    3939#include <usbhc_iface.h>
    4040#include <errno.h>
    41 #include <assert.h>
    4241
    4342/** Check that HC connection is alright.
     
    144143/** Wrapper for registering attached device to the hub.
    145144 *
    146  * The @p enable_port function is expected to enable signaling on given
     145 * The @p enable_port function is expected to enable singalling on given
    147146 * port.
    148147 * The two arguments to it can have arbitrary meaning
     
    152151 *
    153152 * If the @p enable_port fails (i.e. does not return EOK), the device
    154  * addition is canceled.
     153 * addition is cancelled.
    155154 * The return value is then returned (it is good idea to use different
    156155 * error codes than those listed as return codes by this function itself).
     
    159158 * @param connection Opened connection to host controller.
    160159 * @param dev_speed New device speed.
    161  * @param enable_port Function for enabling signaling through the port the
     160 * @param enable_port Function for enabling signalling through the port the
    162161 *      device is attached to.
    163162 * @param port_no Port number (passed through to @p enable_port).
     
    173172 *      request or requests for descriptors when creating match ids).
    174173 */
    175 int usb_hc_new_device_wrapper(ddf_dev_t *parent, usb_hc_connection_t *connection,
     174int usb_hc_new_device_wrapper(device_t *parent, usb_hc_connection_t *connection,
    176175    usb_speed_t dev_speed,
    177176    int (*enable_port)(int port_no, void *arg), int port_no, void *arg,
    178     usb_address_t *assigned_address, devman_handle_t *assigned_handle,
    179     ddf_dev_ops_t *dev_ops, void *new_dev_data, ddf_fun_t **new_fun)
     177    usb_address_t *assigned_address, devman_handle_t *assigned_handle)
    180178{
    181179        CHECK_CONNECTION(connection);
     
    201199
    202200        /*
    203          * Enable the port (i.e. allow signaling through this port).
     201         * Enable the port (i.e. allow signalling through this port).
    204202         */
    205203        rc = enable_port(port_no, arg);
     
    253251        devman_handle_t child_handle;
    254252        rc = usb_device_register_child_in_devman(dev_addr, dev_conn.hc_handle,
    255             parent, &child_handle,
    256             dev_ops, new_dev_data, new_fun);
     253            parent, &child_handle);
    257254        if (rc != EOK) {
    258255                rc = ESTALL;
Note: See TracChangeset for help on using the changeset viewer.