Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port.c

    r76fbd9a re882e3a  
    3535
    3636#include <bool.h>
    37 #include <devman.h>
    3837#include <errno.h>
    3938#include <str_error.h>
     
    7170        return EOK;
    7271}
    73 
     72/*----------------------------------------------------------------------------*/
    7473/**
    7574 * Clear feature on hub port.
     
    9392            sizeof(clear_request), NULL, 0);
    9493}
    95 
     94/*----------------------------------------------------------------------------*/
    9695/**
    9796 * Set feature on hub port.
     
    115114            sizeof(clear_request), NULL, 0);
    116115}
    117 
     116/*----------------------------------------------------------------------------*/
    118117/**
    119118 * Mark reset process as failed due to external reasons
     
    130129        fibril_mutex_unlock(&port->mutex);
    131130}
    132 
     131/*----------------------------------------------------------------------------*/
    133132/**
    134133 * Process interrupts on given port
     
    246245            port->port_number, status);
    247246}
    248 
     247/*----------------------------------------------------------------------------*/
    249248/**
    250249 * routine called when a device on port has been removed
     
    300299        return EOK;
    301300}
    302 
     301/*----------------------------------------------------------------------------*/
    303302/**
    304303 * Process port reset change
     
    336335        }
    337336}
    338 
     337/*----------------------------------------------------------------------------*/
    339338/** Retrieve port status.
    340339 *
     
    353352                .request = USB_HUB_REQUEST_GET_STATUS,
    354353                .value = 0,
    355                 .index = uint16_host2usb(port->port_number),
     354                .index = port->port_number,
    356355                .length = sizeof(usb_port_status_t),
    357356        };
     
    376375        return EOK;
    377376}
    378 
     377/*----------------------------------------------------------------------------*/
    379378/** Callback for enabling a specific port.
    380379 *
     
    408407        return port->reset_okay ? EOK : ESTALL;
    409408}
    410 
     409/*----------------------------------------------------------------------------*/
    411410/** Fibril for adding a new device.
    412411 *
     
    455454        return rc;
    456455}
    457 
     456/*----------------------------------------------------------------------------*/
    458457/** Start device adding when connection change is detected.
    459458 *
Note: See TracChangeset for help on using the changeset viewer.