Ignore:
File:
1 edited

Legend:

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

    ra7e2f0d r4abc304  
    4545
    4646/*----------------------------------------------------------------------------*/
    47 /** Gets handle of the respective hc (parent device).
    48  *
    49  * @param[in] root_hub_fun Root hub function seeking hc handle.
    50  * @param[out] handle Place to write the handle.
    51  * @return Error code.
    52  */
    53 static int usb_iface_get_hc_handle_rh_impl(
    54     ddf_fun_t *root_hub_fun, devman_handle_t *handle)
     47static int usb_iface_get_hc_handle_rh_impl(ddf_fun_t *root_hub_fun,
     48    devman_handle_t *handle)
    5549{
    56         /* TODO: Can't this use parent pointer? */
    5750        ddf_fun_t *hc_fun = root_hub_fun->driver_data;
    5851        assert(hc_fun != NULL);
     
    6356}
    6457/*----------------------------------------------------------------------------*/
    65 /** Gets USB address of the calling device.
    66  *
    67  * @param[in] fun Root hub function.
    68  * @param[in] handle Handle of the device seeking address.
    69  * @param[out] address Place to store found address.
    70  * @return Error code.
    71  */
    72 static int usb_iface_get_address_rh_impl(
    73     ddf_fun_t *fun, devman_handle_t handle, usb_address_t *address)
     58static int usb_iface_get_address_rh_impl(ddf_fun_t *fun, devman_handle_t handle,
     59    usb_address_t *address)
    7460{
    75         /* TODO: What does this do? Is it neccessary? Can't it use implemented
    76          * hc function?*/
    7761        assert(fun);
    7862        ddf_fun_t *hc_fun = fun->driver_data;
     
    8165        assert(hc);
    8266
    83         usb_address_t addr = device_keeper_find(&hc->device_manager, handle);
     67        usb_address_t addr = device_keeper_find(&hc->device_manager,
     68            handle);
    8469        if (addr < 0) {
    8570                return addr;
     
    9883};
    9984/*----------------------------------------------------------------------------*/
    100 /** Gets root hub hw resources.
    101  *
    102  * @param[in] fun Root hub function.
    103  * @return Pointer to the resource list used by the root hub.
    104  */
    10585static hw_resource_list_t *get_resource_list(ddf_fun_t *dev)
    10686{
     
    11191        assert(hc);
    11292
    113         /* TODO: fix memory leak */
     93        //TODO: fix memory leak
    11494        hw_resource_list_t *resource_list = malloc(sizeof(hw_resource_list_t));
    11595        assert(resource_list);
Note: See TracChangeset for help on using the changeset viewer.