Ignore:
File:
1 edited

Legend:

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

    re882e3a r76fbd9a  
    3535
    3636#include <bool.h>
     37#include <devman.h>
    3738#include <errno.h>
    3839#include <str_error.h>
     
    7071        return EOK;
    7172}
    72 /*----------------------------------------------------------------------------*/
     73
    7374/**
    7475 * Clear feature on hub port.
     
    9293            sizeof(clear_request), NULL, 0);
    9394}
    94 /*----------------------------------------------------------------------------*/
     95
    9596/**
    9697 * Set feature on hub port.
     
    114115            sizeof(clear_request), NULL, 0);
    115116}
    116 /*----------------------------------------------------------------------------*/
     117
    117118/**
    118119 * Mark reset process as failed due to external reasons
     
    129130        fibril_mutex_unlock(&port->mutex);
    130131}
    131 /*----------------------------------------------------------------------------*/
     132
    132133/**
    133134 * Process interrupts on given port
     
    245246            port->port_number, status);
    246247}
    247 /*----------------------------------------------------------------------------*/
     248
    248249/**
    249250 * routine called when a device on port has been removed
     
    299300        return EOK;
    300301}
    301 /*----------------------------------------------------------------------------*/
     302
    302303/**
    303304 * Process port reset change
     
    335336        }
    336337}
    337 /*----------------------------------------------------------------------------*/
     338
    338339/** Retrieve port status.
    339340 *
     
    352353                .request = USB_HUB_REQUEST_GET_STATUS,
    353354                .value = 0,
    354                 .index = port->port_number,
     355                .index = uint16_host2usb(port->port_number),
    355356                .length = sizeof(usb_port_status_t),
    356357        };
     
    375376        return EOK;
    376377}
    377 /*----------------------------------------------------------------------------*/
     378
    378379/** Callback for enabling a specific port.
    379380 *
     
    407408        return port->reset_okay ? EOK : ESTALL;
    408409}
    409 /*----------------------------------------------------------------------------*/
     410
    410411/** Fibril for adding a new device.
    411412 *
     
    454455        return rc;
    455456}
    456 /*----------------------------------------------------------------------------*/
     457
    457458/** Start device adding when connection change is detected.
    458459 *
Note: See TracChangeset for help on using the changeset viewer.